Open rodhash opened 1 month ago
The same issue happens when using https://github.com/scottmckendry/telescope-resession.nvim, which seems to be a better option than mksession
.
The buffer names get truncated after restoring a session:
But if I go back to the standard config, buffer names appear as expected (not truncated):
My main issue with the standard config (which works fine) is, sometimes it shows long path before the filename.. so it gets messy .. that's why I'm looking for the leaderF style
Hmm... I'm not able to replace this
Looks like the custom gen_from_buffers_like_leaderf
is handling the getting of the buffer filename with the longest length.
You may need to do some debugging on your end.
Alternatively, on the master branch, there is a path_display = { 'filename_first' }
option that yields similar results.
eg: :Telescope buffers path_display={'filename_first'}
Description
This snippet below works just fine if we open many buffers manually: https://github.com/nvim-telescope/telescope.nvim/wiki/Configuration-Recipes#customize-buffers-display-to-look-like-leaderf
For instance:
Now, if we save a session with many opened buffers (mksession) and later open all of them with "so", this snippet doesn't work very well, the buffer name gets truncated:
Neovim version
Operating system and version
macOS 14.6.1
Telescope version / branch / rev
0.1.8
checkhealth telescope
Steps to reproduce
Telescope buffers
This works just fine and all buffers are shown. Now, continuing ...
Telescope buffers
The buffer names are not shown when using the snippet "to look like leaderF" .. but using the standard Telescope Buffers then it works fine.
Expected behavior
Snippet "Customize buffers display to look like LeaderF" to display the buffers names properly, as the standard "Buffers" do.
Actual behavior
Snippet "Customize buffers display to look like LeaderF" does not display buffers name, after loading a saved session.
ps:
The minimal version works fine with standard config but after adding the buffers display configuration to look like LeaderF, then "Telescope buffers" is not showing anything
Any idea what's wrong with this minimal?
Minimal config