Comments (5)
OK, it's in. It just updates the filter after every key press, otherwise it works just as before, so there's no regex/wildcard support or anything like that. Might add that later.
Searching is also incremental now.
from hunter.
By the way, it's now possible to select files using an external program like fzf. You can also select a directory which you wan to enter. You need fzf for this to work in the default configuration, but you can also use something else that shows a selection on stderr and prints the final files to select/directory to enter on stdout.
The key bindings are: Alt(space) to select files and Alt(/) to select a directory to enter.
It's not quite incremental search (and incremental filtering would be nice, too), but it might be useful to you.
from hunter.
You're right.
Currently, when the minibuffer opens it (exec, search, filter, etc) it actually completely takes over the event loop like the process and log viewer, so it would need a kludgy workaround, like when resizing. I need to build a VBox, so that it can be used like any other widget. Then I can make filtering incremental as well.
Or maybe I just kludge it for now. Definitely on the todo list!
from hunter.
Would https://github.com/lotabout/skim#use-as-a-library be helpful for this?
from hunter.
Only in so far as that you can use it as external searcher/selector.
The problem is that the prompt completely takes over the event loop at the moment, so there is no straightforward way to get input back to the rest of the program. It's essentially frozen until you hit enter. It also doesn't react to FS-events, etc. If that was fixed, or worked around, it would be as easy as updating the filter setting for the current folder with each letter one by one as they come, the rest is handled automatically.
I mean, it's not THAT hard, I just didn't get to it yet. Soon :).
from hunter.
Related Issues (20)
- How to use filename substitutions in scripts? HOT 1
- Requested 'gstreamer-video-1.0 >= 1.12' but version of GStreamer Video Library is 1.10.4
- Files size decimals
- Hunter not indexing in vim/nvim :terminal
- Feature proposal: using xattr to tag files with querying and such.
- Colors/themeing
- please do a release
- How to open files? HOT 2
- Another file manager named hunter ? HOT 2
- compilation failure due to libsixel custom build command HOT 1
- Autodetect sixel support with escape codes
- mv, cp, rm selected files
- No method named remove_item HOT 7
- Error occures while compiling from Arch AUR repository HOT 1
- Fatal issue has happened. My heart was broken due to this project closure... HOT 6
- provide a brew package
- MacOS build fail HOT 3
- Upgrade dependencies to the new version
- Compile under Rust stable HOT 1
- Compile under Rust stable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hunter.