Comments (9)
fzf still seems to follow symbolic links.
Yes, that's the default.
Directory traversal
--walker=[file][,dir][,follow][,hidden]
Determines the behavior of the built-in directory walker that is used when
$FZF_DEFAULT_COMMAND is not set. The default value is file,follow,hidden.
* file: Include files in the search result
* dir: Include directories in the search result
* hidden: Include and follow hidden directories
* follow: Follow symbolic links
I also tried to add the folders to --walker-skip, but that still does not work.
And please provide the exact steps to reproduce the problem.
from fzf.
Thanks for a very quick reply.
I add this to .zhsrc
export FZF_CTRL_T_OPTS="
--walker-skip .git,node_modules,target,o_drev_da1943,analyse,batch,Dataudveksling,eg_source
--preview 'bat -n --color=always {}'
--bind 'ctrl-/:change-preview-window(down|hidden|)'"
When i pres CTRL + T i still get results for e.g. analyse in my results. the folder analyse
is a symbolig link.
from fzf.
Do you also have FZF_CTRL_T_COMMAND
? If the variable is defined, fzf will use it instead of its built-in walker.
from fzf.
Sorry. It seems no to work either way
from fzf.
Okay, I can see what's going on. --walker-skip
is applied to directories, and currently, it is not applied to a "symlink" to a directory. I agree that this is confusing. I'll look into it.
Anyway, if you don't want fzf to follow symlinks, consider setting --walker
instead of --walker-skip
.
export FZF_DEFAULT_OPTS='--walker file,hidden
from fzf.
So that file
is a list of folders that should be included? Think that will be hard to maintian.
But thanks for your reply. Cool if it can be implemented in a comming release.
from fzf.
Directory traversal
--walker=[file][,dir][,follow][,hidden]
Determines the behavior of the built-in directory walker that is used when
$FZF_DEFAULT_COMMAND is not set. The default value is file,follow,hidden.* file: Include files in the search result * dir: Include directories in the search result * hidden: Include and follow hidden directories * follow: Follow symbolic links
No, file
means walker should list "files", it's a type.
from fzf.
from fzf.
Correct.
from fzf.
Related Issues (20)
- 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
- Winget: latest version is v0.54.0 instead of 0.54.0 HOT 3
- Commit 83b60339 broke use of pbogut/fzf-mru.vim plugin HOT 6
- arrow up keybinding is showing no scrollable list HOT 11
- unknown option --no-tmux error HOT 1
- consider adding `--head` option? HOT 1
- Security Alert: Potential Trojan Detected in Windows Release v0.54.1 HOT 4
- [Feature Request] Line numbers for selectable results HOT 2
- Fzf 0.54.1 mac arm64 release contains a `._fzf` file 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.