Replies: 2 comments 3 replies
-
Ty for the kind words @jmarquis. I like the approach you took combining the results into a shell command and into
Not yet, as this would require supporting all the buffer flags, options, sorting, etc as well as a windows adaptation of the command (may or may not be annoying, such as Windows :)). Your solution is wonderful, with a bit of effort you can make the display equal to the fzf-lua buffer entries with flags, buffer numbers and ansi colors, since |
Beta Was this translation helpful? Give feedback.
-
Btw, IMHO you’re missing out on a very important motion, in normal mode, once you find a character with |
Beta Was this translation helpful? Give feedback.
-
I've recently been trying out LazyVim and figured I'd give Telescope another shot as part of that since it's LazyVim's default picker, and I installed smart-open.nvim in an attempt to give me that "magic" ordering that I've come to love from fzf-lua (and previously fzf.vim). Long story short, smart-open is pretty cool but ultimately it didn't scratch the itch the same way that fzf-lua does for me, for various reasons. (Also Telescope's performance with gigantic codebases still isn't even close to fzf-lua or fzf.vim all these years later, even with fd/rg/etc.) All this has really made me appreciate the thoughtfulness you and @junegunn have put into this space even more than I already did.
While I didn't care for the "smart" aspects of smart-open, one thing I came to appreciate was that it combines a bunch of file-related sources into one "open anything" list, and I particularly got used to being able to swap to open buffers or search all files in my cwd using the same keybind. I used
;
for it, so I could just hit;
and see all my open buffers at the top, followed by the usual live file results, and search all of them at once (with buffers prioritized in the results). This means if I want to jump to a file, I don't have to remember if I have it open in a buffer or not, I can just hit;
and start typing. This is particularly nice in massive codebases where thefd
results can take a few seconds to come back, so I can still search my open buffers very quickly.Anyway I'm happily back on fzf-lua, but now I have muscle memory to jump to any buffer or file using
;
. So, here's my initial attempt at recreating this functionality. I haven't tested it a ton yet but it seems to be working in a few smaller directories so far. I'm curious if anyone has suggestions for improvements, particularly any way to take any advantage of the more nuancedbuffers
logic built in to fzf-lua. (Or you know, if @ibhagwan wants to ship a built in buffers_and_files picker that does something like this.... ;) )Beta Was this translation helpful? Give feedback.
All reactions