Skip to content

feat(browser): add path autocompletion and align popover with location entry - #388

Open
JoeJoeflyn wants to merge 1 commit into
lgse:mainfrom
JoeJoeflyn:feat/location-path-completion
Open

JoeJoeflyn wants to merge 1 commit into
lgse:mainfrom
JoeJoeflyn:feat/location-path-completion

Conversation

@JoeJoeflyn

@JoeJoeflyn JoeJoeflyn commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds path autocompletion to the location bar with live directory suggestions, keyboard navigation, and exact popover width alignment.

  • Dynamically matches popover width to the compact location input bar.
  • Prevents premature popup display when browsing folders in breadcrumbs mode.
  • Adds keyboard navigation support (/, PageUp/PageDown, Tab, Enter, Esc) with automatic scrolling into view.
  • Suggests child directories and files for absolute, relative, and ~/ home paths.

Visual evidence

N/A (UI layout alignment and navigation polish)

How to test

  1. Press Ctrl+L to open the location bar.
  2. Type a path (e.g. ~/ or / or /home/).
  3. Use , , PageDown, and PageUp to navigate through suggestions; verify the list automatically scrolls and aligns directly under the entry without overlapping.
  4. Press Tab to complete the selected path or common prefix.
  5. Press Enter to navigate to the path.

Expected result:
Suggestions popover cleanly displays directly below the location entry matching its width, scrolls through items smoothly, and auto-completes paths on Tab/Enter.

Related issue

Fixes path autocompletion UX in location entry.
screenrecording-2026-09-06_13-38-33

@JoeJoeflyn JoeJoeflyn added the fix label Sep 5, 2026
@l0gicgate l0gicgate changed the title fix(browser): add path autocompletion and align popover with location entry feat(browser): add path autocompletion and align popover with location entry Sep 6, 2026
@l0gicgate l0gicgate added feature and removed fix labels Sep 6, 2026
@JoeJoeflyn
JoeJoeflyn force-pushed the feat/location-path-completion branch 2 times, most recently from 54797a7 to 62997c6 Compare September 6, 2026 06:31
Defer the initial popup until the hidden location entry receives its first allocation so the suggestion list matches the input width. Suppress the synchronous text-change refresh while activating a suggestion so dismissal stays within one frame.

Refs lgse#217
@JoeJoeflyn
JoeJoeflyn force-pushed the feat/location-path-completion branch from 62997c6 to 07c6acc Compare September 6, 2026 06:47
@l0gicgate l0gicgate mentioned this pull request Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants