picker: handle wrapped/long lines #4

Open
opened 2026-05-20 15:19:34 +02:00 by thibault · 0 comments
Owner

Currently, it seems I handle long text lines inside a LSP symbol by replacing each "\n" character with a continuation character for the "tree structure". However, if the line is too long compared to the window displaying it, it wraps in a weird way: no carriage returns are printed and the "tree" is broken by the wrapped line.

Could I:

  • break on the current window's width (only one line, add ellipsis at the end if necessary) ;
  • break on the current window's width and stop at the first newline found (thus breaking the full description) ;
  • break on the current window's width and on new lines, with a proper continuation character printed at each step (and print all lines).

To investigate. Good candidate: any TeX file with a figure and a long description.

Currently, it seems I handle long text lines inside a LSP symbol by replacing each "\n" character with a continuation character for the "tree structure". However, if the line is too long compared to the window displaying it, it wraps in a weird way: no carriage returns are printed and the "tree" is broken by the wrapped line. Could I: - break on the current window's width (only one line, add ellipsis at the end if necessary) ; - break on the current window's width _and_ stop at the first newline found (thus breaking the full description) ; - break on the current window's width _and_ on new lines, with a proper continuation character printed at each step (and print all lines). To investigate. Good candidate: any TeX file with a figure and a long description.
thibault changed title from picker: handle wrapped lines to picker: handle wrapped/long lines 2026-05-20 15:19:42 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thibault/telescope-lsp-symbols.nvim#4
No description provided.