Comments (4)
You could try fzf -x
(extended mode) and then input 'login
(notice the apostrophe at the beginning that indicates "non-fuzzy match".
from fzf.
It will work for that specific example, but it won't in many others where
the input is partially present on some of the entries. Still chooses other
entries, not evaluating how "similar" they are to the search text.
And that solution doesn't work for zsh or bash integration (ctrl-r, ctrl-t,
...), where fzf is called not by the user, but a function.
Improving the priorization will make it work better in all scenarios, it's
something CtrlP and Command-T already do, is common behaviour in any fuzzy
search mechanism.
I would implement it myself, but my ruby-fu isn't good enough to modify
your code :)
2013/12/18 justinmk [email protected]
You could try fzf -x (extended mode) and then input 'login (notice the
apostrophe at the beginning that indicates "non-fuzzy match".—
Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-30880600
.
fisa - Juan Pedro Fisanotti
from fzf.
Hi, fzf does prioritize the candidates, first by the length of the matched substring, then by the length of the whole string. Thus, login
comes before loogin
or login.sh
. However it only does so when the number of the candidates is less than the limit which is by default 1000, in order to avoid the cost of sorting a large list and limit the response time of the query.
This limit can be adjusted with -s
option, or with the environment variable FZF_DEFAULT_SORT
(the latter is actually undocumented though)
from fzf.
Then the problem was the number of files on the folder I was using it (17.000).
Tried setting FZF_DEFAULT_SORT to 100000, it worked like a charm, and with no noticeable difference in response times.
Thanks for your help! and for the project :)
from fzf.
Related Issues (20)
- Preserve fzf fuzzy list view? HOT 11
- Preserve color output of `kubecolor get pods -A | fzf --ansi`? HOT 1
- Is it possible to create new bind on action from transform HOT 2
- Unknown command fzf_key_bindings error when invoking read in a Fish shell script HOT 3
- Header line at bottom? HOT 1
- `{q}` isn't escaped properly on Windows HOT 12
- last good fzf for fzf.vim on Windows 10 HOT 4
- FZF ignores nested files from $FZF_DEFAULT_COMMAND='fd' but not when piping fd into FZF HOT 3
- Can't input non ascii characters HOT 6
- Hang on SIGSTP when session leader
- simplify cygwin handling in Git Bash
- Action to clear selections if there are any else exit fzf. (Feature request) HOT 1
- Feature request: no-clear option that affects execute action (no clear before executing)
- On fzf.vim opening in new cmd Window in Git Bash HOT 42
- [Feature Request] Combining `--expect` and `--bind` HOT 4
- left-align preview window to the right of the finder HOT 1
- Does it support using fzf inside lldb debugger for searching command history HOT 1
- --preview-window=auto to place the preview window based on terminal size HOT 4
- Neovim: Opening a file via `:FZF` clears messages (e.g. warning W325 for existing swapfile is not shown) HOT 2
- Key Bindings For Windows Muscle Memory 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 fzf.