Skip to content

fix(telescope): Show full locations and confirm from normal mode - #51

Merged
mhiro2 merged 2 commits into
mainfrom
fix/telescope-entry-display
Oct 3, 2026
Merged

mhiro2 merged 2 commits into
mainfrom
fix/telescope-entry-display

Conversation

@mhiro2

@mhiro2 mhiro2 commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Telescope picker entries now show the symbol, file path, line and column instead of only the first fragment
  • Confirming a selection with <CR> in normal mode now opens a peekstack popup instead of falling through to Telescope's default edit

Changes

  • 78f4560 : fix(telescope): show the full location in picker entries
    • Entries return the joined text with byte-range highlights, matching the contract Telescope resolves for entry.display, instead of a single-column entry_display layout that dropped every chunk after the first
    • Specs assert the rendered text and highlight ranges with and without a symbol, including multibyte symbols and paths, without a mock that concatenated chunks unconditionally
  • e7602bc : fix(telescope): confirm picker selections from normal mode
    • Insert-mode and normal-mode <CR> share the same selection callback, covered by the spec for both modes

mhiro2 added 2 commits October 3, 2026 09:12
The single-column entry_display layout dropped every chunk after the
first, so entries showed only the symbol, or only the directory when
there was no symbol. Entries now return the joined text with byte-range
highlights directly, which is the contract Telescope resolves for
entry.display, and the spec no longer relies on a mock that concatenated
chunks unconditionally.
Only the insert-mode <CR> was routed to peekstack, so confirming after
switching to normal mode fell through to Telescope's default edit and
opened the file instead of a popup. Both modes now share the same
selection callback.
@mhiro2 mhiro2 self-assigned this Oct 3, 2026
@mhiro2 mhiro2 added the enhancement New feature or request label Oct 3, 2026
@mhiro2
mhiro2 merged commit ec3cc96 into main Oct 3, 2026
3 checks passed
@mhiro2
mhiro2 deleted the fix/telescope-entry-display branch October 3, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant