Comments (4)
Glad you're enjoying it!
I'll have a look into fuzzy matching but I don't particularly have a use for it - my use case is pretty much only ever using tofi-run
and typing the beginning of the command. Thanks for the links, from those it seems somewhat complex (at least more than the current strcasestr()
search), but not too bad. Either way, I'll give it a go.
from tofi.
Alright, I've added a --fuzzy-match
option in 8e45592. I found a much simpler fuzzy match in the public domain here, and wrote an even simpler (but very nearly as good) version in fuzzy_match.c. It's pretty basic, but it works well enough:
from tofi.
I've improved the fuzzy matcher in aaccdaa. It should now always find the best possible match (according to the chosen scoring criteria).
from tofi.
Thank you for taking your time do implement this (and so quickly), it works great!
from tofi.
Related Issues (20)
- Add support for Alt key HOT 3
- Customisable keybindings HOT 3
- integration with cliphist HOT 7
- wl_seat@11: error 0 HOT 4
- Add option to set default selection to other than the first HOT 1
- Tofi doesn't open the programs HOT 3
- new desktop entries not recogonized HOT 3
- include aliases in tofi? HOT 1
- Feature Request:support fcitx input HOT 1
- [Bug]nautilus and gnome-disks require two operations to start HOT 3
- How do I make background completely transparent? HOT 1
- tofi-drun is missing correctly configured .desktop files HOT 2
- [FR] Add a configuration to allow matching filenames of .desktop files HOT 2
- Launch Desktop Action HOT 1
- Could we please have another release tag?
- Prefix Matching? HOT 3
- Fallback matching HOT 1
- Add Ctrl-[ keybind to close tofi HOT 5
- How to enter a result that is not listed HOT 2
- Tests fail on i686 HOT 2
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.