fzf icon indicating copy to clipboard operation
fzf copied to clipboard

Ctrl-T binding for bash and zsh should optionally use the current command-line as the root directory for the recursive search

Open mcepl opened this issue 8 months ago • 3 comments

  • [x] I have read through the manual page (man fzf)
  • [x] I have the latest version of fzf
  • [x] I have searched through the existing issues

Info

  • OS
    • [x] Linux
    • [ ] Mac OS X
    • [ ] Windows
    • [ ] Etc.
  • Shell
    • [x] bash
    • [x] zsh
    • [ ] fish

Problem / Steps to reproduce

This is basically reverse of https://github.com/junegunn/fzf/issues/2562

When I am in some random directory (e.g., build/) and I write on the command line:

$ ls ~/Books<Ctrl-T>

I would expect that fzf completion mechanism starts searching through ~/Books/ directory. It does in fish, but not in bash (and according to https://github.com/junegunn/fzf#fish-shell not in zsh as well), where it still searches through pwd.

Would it be possible to optionally make this completion work in bash in the same manner as described here (and how it works with fish), please?

For me currently it is the only reason why I cannot switch back to bash.

mcepl avatar Oct 15 '23 18:10 mcepl