Comments (5)
We currently override --walker
option because it should be different depending on the command.
Line 300 in 4bedd33
If we universally apply --walker=file,dir,hidden
, then cd **
will also list files and cat **
will also list directories, and that is not what we want.
The only option at the moment is to define _fzf_compgen_path
and _fzf_compgen_dir
but that is not ideal because we can't use the built-in walker in that case.
from fzf.
is there a way i can have a general case that uses what i want it to use and then only override it for the specific cases already implemented?
or if i just change that line can i get the functionality i want?
also im using zsh so itd be
[[ $compgen =~ dir ]] && walker=dir,follow || walker=file,dir,follow,hidden
in completion.zsh right?
from fzf.
One way is to define _fzf_comprun
function as shown in the README page. But then you'll have to list all the commands in the function.
We probably need to add $FZF_COMPLETION_PATH_OPTS
and $FZF_COMPLETION_DIR_OPTS
.
from fzf.
With cd8d736 you can,
FZF_COMPLETION_PATH_OPTS="--walker=file,dir,hidden"
FZF_COMPLETION_DIR_OPTS="--walker=dir,hidden"
from fzf.
thank you
from fzf.
Related Issues (20)
- Use `builtin cd` in fzf Alt+C Key Bindings for Fish Shell HOT 1
- Update fedora repository version (Rawhide and Fedora 40) HOT 2
- Reloading on windows seems broken HOT 2
- Breaking Change in Keybinding Behavior due to Commit 6b4358f HOT 2
- Command history sorting order HOT 1
- Directories not walked recursively in FUSE mounted directories HOT 1
- Issue with single key binding to toggle file and directory mode HOT 7
- Examine Profile-guided optimization (PGO) HOT 1
- Allow for external shell script in --preview HOT 2
- [Feature Request] History syntax highlighting HOT 4
- Tiebreak parameter of length or end does not produce the expected results HOT 3
- Can't bind C-z to a readline function without getting 'readline: maximum macro execution nesting level exceeded' with fzf-cd - Alt-C HOT 5
- preserve whitespace flag s not working? HOT 1
- How to find file from zoxide result ? HOT 1
- Broken zsh shell integration on 0.51+ HOT 1
- last commit broke fzf.vim integration HOT 1
- code **<TAB> doesn't execute fzf HOT 4
- execute(echo {}) does not work with tmux integration on v0.53.0 HOT 2
- Divide by zero with --tiebreak=end for long-line inputs HOT 1
- Windows: Mouse-clicking doesn't work properly in bash 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 fzf.