junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
61.81k stars 2.35k forks source link

Switching to a dir outside of current dir with ALT-C #3868

Closed backpropper closed 2 weeks ago

backpropper commented 2 weeks ago

Checklist

Output of fzf --version

0.52.1

OS

Shell

Problem / Steps to reproduce

I'm trying to navigate the file system with ALT-C. I would like to switch to a dir outside of the scope of the current dir using this shortcut. In particular, I want to modify the ALT-C FZF command to something like fd --type directory --follow --hidden --color=always --exclude '.git' . $HOME and combine it with __fzf_cd__. Can you please guide me on who to achieve this? Thanks a lot!

junegunn commented 2 weeks ago

What have you tried? What did and didn't work? Have you tried reading through ADVANCED.md to learn how to script with fzf?

backpropper commented 2 weeks ago

I fixed it by specifying --walker-root $HOME in FZF_ALT_C_OPTS.

I wanted to ask if there is any plan to support the feature request mentioned in #3597 I'm trying to build the exact same functionality but have to rely on CTRL-T for opening files and ALT-C for switching directories.

junegunn commented 2 weeks ago

No, I'm not interested in doing that. I'd like to focus on improving fzf itself. Such additional functionality can be provided by third-party projects.