Comments (3)
Interesting, that sounds like a nice idea (I nearly always search by just typing the beginning of the thing I'm looking for).
I think this probably should be combined with #49, and --fuzzy-match
replaced with --matching-algorithm
. This is also how rofi does it e.g. from the manpage:
-matching method
Specify the matching algorithm used. Currently, the following methods
are supported:
• normal: match the int string
• regex: match a regex input
• glob: match a glob pattern
• fuzzy: do a fuzzy match
• prefix: match prefix
I guess the tofi version would look like:
--matching-algorithm = normal | fuzzy | levenshtein | prefix
Tab completion of results also sounds interesting, but that would probably have to wait until (if) I make keybindings customisable.
from tofi.
Yes, this would be really neat.
Can't wait for it to be implemented :)
Thanks for the response, I hope it goes well.
from tofi.
Alright, this is done (without tab completion) in 574eff0. Sorry for the delay, I spent a while implementing Levenshtein distance, only to decide it isn't really any good for tofi 😅.
If you want to try it out from the AUR btw, there's a tofi-git package as well as the release package.
from tofi.
Related Issues (20)
- Window Positioning Issue on KDE Plasma 6
- [feature] interpret commands w arguments in drun mode? HOT 2
- [feature] Tofi as fast calculator HOT 3
- Issues with tofi on river and dual monitor setup HOT 2
- Tofi windows open on a different monitor when another window is active on the actual monitor. HOT 2
- che
- --auto-accept-single true should also close if there's nothing HOT 1
- Unable to open flatpak applications
- Segmentation Fault in GNOME HOT 3
- Running no match commands HOT 2
- Fully hide the input prompt + empty space?
- Minimal calculator function for tofi HOT 1
- `tofi-drun` does not list `.desktop`-file-missing apps, including some GUI and console apps
- Specify custom history file HOT 2
- Being able to put a title
- Segmentation fault when cache is not readable
- How do I make the window transparent? HOT 2
- Stretch issue with a taller geometry ratio on niri wm HOT 8
- -selected-row
- Text cuts at the bottom of the screen 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 tofi.