Comments (2)
I still don't think it's the right thing to do. fzf is a line filter, and it shouldn't be matching against what's not directly shown on the line. Implementing it properly will add additional complexity (highlighting, horizontal scrolling, scoring, etc) so I don't think it's worth it.
You could maybe repeat the name part again after the directory, maybe in a dimmer color, to allow searching against it.
file.txt foo/bar/file.txt
And then --nth ..,2
to allow anchors on both. ^file.txt
, ^foo
, etc.
from fzf.
I still don't think it's the right thing to do. fzf is a line filter, and it shouldn't be matching against what's not directly shown on the line. Implementing it properly will add additional complexity (highlighting, horizontal scrolling, scoring, etc) so I don't think it's worth it.
You could maybe repeat the name part again after the directory, maybe in a dimmer color, to allow searching against it.
file.txt foo/bar/file.txt
And then
--nth ..,2
to allow anchors on both.^file.txt
,^foo
, etc.
Ty @junegunn for the prompt response and suggestion.
Although I could repeat the filename, that changes the display (undesirable) and probably also has some other unintended consequences for matching that I cannot yet foresee.
from fzf.
Related Issues (20)
- Allow CTRL-C to cancel transform actions
- fzf-completion doesn't work on fresh archlinux install HOT 8
- --marker '═' --marker-multi-line '╔║╚' does not take effect? HOT 1
- "panic: runtime error" if tty is 1 line high HOT 1
- panic: runtime error: invalid memory address or nil pointer dereference HOT 21
- fzf `CTRL+R` only working in zsh `vicmd` mode HOT 1
- Crash when piping output from node/nodemon web server HOT 6
- Running `fzf -f whatever` with an `i3` keybinding fails HOT 1
- Re-evaluate --bind each time bindkey pressed HOT 1
- Select candidate if it's multi lines? HOT 1
- Option to show --marker and --marker-multi-line if it's multi lines? HOT 1
- Constraint to only exit fzf if processes base on key press are done? HOT 6
- History search not working HOT 7
- fzf executing before sudo prompts for password HOT 1
- How to restore old execute behavior? (so it doesn't output to /dev/tty) HOT 2
- [Feature] Enhance ctrl-t behaviour
- `--bind=… execute` works differently in 0.53.0, breaks functionality HOT 1
- Repository tag name HOT 1
- Allow filtering on un-rendered fields. HOT 2
- Cygwin reports ps: unknown option -- o for wildcard completion
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.