Comments (3)
--scheme=path
does exactly what I need. I haven't really had many problems with the default beyond this, so I wouldn't worry about it too much. Plus, it would hurt results if you were, for example, looking through man pages. Thank you!
from fzf.
Does --scheme=path
help?
fzf --tiebreak end --scheme path --query engine << EOF
Documents/c++code/pascal.wiki/engine.md
Documents/Archive/College/ME4201/AIAA EOP/Gas Turbine Engine Pictures/J79.JPG
Documents/Archive/College/ME4201/AIAA EOP/Gas Turbine Engine Pictures/CFM56 High Bypass Turbofan Engine.jpg
EOF
It's because in the default scheme, Engine
after a space gets a higher bonus score than engine
after /
.
Lines 178 to 189 in 3ee1fc2
--scheme=path
makes fzf use the same bonus point for both cases.
Come to think of it, it's a little strange that we don't use --scheme=path
as the default when using fzf for files (i.e. using its default walker), let me see what I can do.
On second thought, I think it can be confusing to use different defaults on different contexts. While the default scheme gives a less desirable result in this case, it works okay in most cases where file names don't contain spaces.
from fzf.
Hopefully, 64faaf61f3030c006392bce7e370200b912ad001 will help users better understand the options.
from fzf.
Related Issues (20)
- Help creating custom fuzzy seach command script. HOT 1
- [Feature Request] Handle pytest command the same as python HOT 10
- Requires tmux 3.2 or above not only popup window HOT 1
- Support comments within FZF_DEFAULT_OPTS_FILE content HOT 5
- Matching with word boundaries HOT 7
- fzf version for linux too outdated HOT 1
- "Error: Not support reporting screen sizes in pixels" when previewing images in kitty from tmux with `--tmux` option. HOT 2
- feature request: add support for `-S fg=<color> -s fg=<color>` tmux popup flags in fzf-tmux HOT 2
- Support elvish shell condition in --bind HOT 9
- unknown option: --bash HOT 1
- on windows, using gitbash/mintty, fzf reverse history search (ctrl-r) hangs the terminal indefinitely HOT 4
- The `--txux` flag ignored when set from the config file HOT 4
- Santa blocking execution HOT 1
- vim fzf doesn't work with the latest vim junegunn/fzf HOT 2
- Please add 'command' bindkey in Macos
- Anchor match (specifically the "suffix-exact-match") doesn't seems to be working as expected! HOT 3
- [Feature request] improve performance handling iterm2 image protocol in `--preview`
- Sort by length with --disabled HOT 2
- Placeholder expression for accept/print actions
- Bash history integration on Mac prefixing selected command with reverse index 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.