Skip to content

tools: project-browser: add address bar#777

Open
KaindraDjoemena wants to merge 1 commit intocrownengine:masterfrom
KaindraDjoemena:master
Open

tools: project-browser: add address bar#777
KaindraDjoemena wants to merge 1 commit intocrownengine:masterfrom
KaindraDjoemena:master

Conversation

@KaindraDjoemena
Copy link
Contributor

Adds an address bar with back/forward navigation buttons to the project browser panel, as described in the issue.

Changes:

  • Added back (<) and forward (>) navigation buttons
  • Added address bar showing the current folder path (e.g. /parentFolder/childFolder/)
  • Navigation with the address bar
  • Address bar updates when clicking folders in the tree view
  • Address bar shows parent folder when a file is selected
  • Invalid paths are rejected and logged to the console

Screenshot:
navigationBar

Closes #216

@KaindraDjoemena
Copy link
Contributor Author

Note: uncrustify reformatted a bunch of the code, resulting in a big diff file. Here are the changes i made:

  • New fields: _nav_history_back, _nav_history_forward, _navigating_history, _btn_back, _btn_forward, _address_bar
  • New methods: navigate_to, navigate_back, navigate_forward
  • Modified: ProjectBrowser constructor (nav bar UI), on_open_directory, _tree_selection.changed handler

@dbartolini
Copy link
Collaborator

A problem is sometimes buttons need two clicks to activate:

Screencast.From.2026-03-09.16-27-57.mp4

Formatting problem is odd since project_browser.vala is excluded from linting:

| grep -v 'project_browser.vala' \

Use git reset HEAD~ && git add -p to add only relevant changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tools: project-browser: add address bar

2 participants