[mini.pick] fff.nvim integration #1974
diego-velez
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Thanks for sharing! I personally don't really like the (subjectively) over complicated approach to how 'fff.nvim' handles file picking, but guess it is a matter of taste :) Nothing particularly wrong stood out to me after scanning code. One question though: why do use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ever since fff.nvim came out, I've been wanting to use it, but I did not want to use their picker UI. Now, I managed to integrate their backend with mini.pick :)
Screenshot
Install fff.nvim
I use rustup to manage my rust toolchains, you could change the cmd to just
cargo build --release
if you don't use that. Also, I have a lot ofvim.notify
because I like to let myself know what is happening. You could remove that if you wanted to.fff.nvim picker
Remember to source this after adding the fff.nvim plugin. You can run the picker from anywhere by using
MiniPick.registry.fffiles()
.PS
The end result should be the same UI as the default mini.pick file picker, except that it also has the frecency score for each file. You can also add Git status if you wanted too. The
search_files
function from fff.nvim returns a few things per file (as I documented with theFFFItem
LuaDoc class) like size, modified time and git status.Beta Was this translation helpful? Give feedback.
All reactions