Needing to manually down/up to navigate large directories is cumbersome.
Adding a mechanism to filter the list (either by highlighting matching strings and/or displaying only matching line items) and allowing "n/p" (next/previous) selection would speed flirt's usability.
With realtime filtering as the search criteria is entered. Perhaps add "esc" to clear the search so additional searches can be made to build the desired match list.
Hey,
Needing to manually down/up to navigate large directories is cumbersome.
I completely agree. Some other users have mentioned the need for page up / down, which is something I would eventually like to do.
Adding a mechanism to filter the list (either by highlighting matching strings and/or displaying only matching line items) and allowing "n/p" (next/previous) selection would speed flirt's usability.
I’ve been wanting to do that, but never really thought too much about it in terms of how. For instance, I could do a simple sticky filter (what you described), which is pretty simple to implement; or I could use an external tool for integration. I’m not entirely sure just yet. I was thinking of maybe using the
regex
crate.In terms of UX, I’m not entirely sure whether we should have something like editors where we could (as you suggested) do n / p to navigate the view, or actually visually reduce it, which I also kind of like. That would allow to have the same keybindings, and remove everything that is visually not interesting.
With realtime filtering as the search criteria is entered. Perhaps add "esc" to clear the search so additional searches can be made to build the desired match list.
Yeah, that’s the spirit!
i have already been finding flirt quite useful :)
Adding one more wrinkle to the file list that would be of use for coders: toggling the list sort above
- filename case insensitive/sensitive
- mixed folders and files OR folders on top
- by modified date
- reverse sort of the above
Much of this is stolen from nnn. But i am much preferring flirt.. even though nnn is an ncurses tool.
One more thing (for now :)..
Some quick keybinds. Perhaps..
"h" to move up the directory tree (or maybe "backspace")
"H" to jump to the root directory flirt opened on (or shift-backspace)
maybe ctrl-h to set a new root directory for the above? (or ctrl-backspace)
shift-space to mark the current file and move down one row in the list
(Not sure what keybinds make most sense.. Maybe a flirt config file for the most flexibility of assignment?)
Whew! :)
i have already been finding flirt quite useful :)
I’m glad to hear that! It’s meant to be lightweight and composable, so it’s nice to hear!
Adding one more wrinkle to the file list that would be of use for coders: toggling the list sort
- filename case insensitive/sensitive
- mixed folders and files OR folders on top
- by modified date
- reverse sort of the above
All of that is legitimate. I think it’s worth splitting in several issues. The current sorting functions uses path names, but it should be fairly easy to customize the sorting. However, it would probably require some UX/UI discussions.
Some quick keybinds. Perhaps..
"h" to move up the directory tree (or maybe "backspace")
It’s already bound to
o
by default (to mimick the C-o of vim). You can find the list of available actions here."H" to jump to the root directory flirt opened on (or shift-backspace)
This one should be fairly simple to implement too, and might be useful indeed!
maybe ctrl-h to set a new root directory for the above? (or ctrl-backspace)
If you find a real-world use-case, why not. But for now I don’t see one.
shift-space to mark the current file and move down one row in the list
I can translate this one to a more general feature: multi-action bindings. Your
S-<spc>
could simply be implemented as["toggle-select", "next"]
Cheers!
Dimitri Sabadie referenced this ticket in commit a6bef66.