fzf icon indicating copy to clipboard operation
fzf copied to clipboard

[Feature] Enhance ctrl-t behaviour in bash

Open eli-percepto opened this issue 1 year ago • 5 comments

Implement the following ctrl-t behaviour:

  1. Change the default setting (current dir) to present first the files and directories of depth 0 in order of decreasing modification time (as in ls -t1)
  2. If the cursor follows immediately a word which is a path to an existing dir, fzf this dir instead of the current.

PR #3918

eli-percepto avatar Jul 09 '24 13:07 eli-percepto

  1. already works for fish shell, but not for bash

phanirithvij avatar Dec 24 '24 05:12 phanirithvij

I've opened this PR https://github.com/junegunn/fzf/pull/3918 What do you tihnk?

eli-percepto avatar Dec 24 '24 07:12 eli-percepto

I haven't had the time to test it out. will check it out and get back to you.

just fyi I am just a regular fzf user.

phanirithvij avatar Dec 24 '24 08:12 phanirithvij

If the cursor follows immediately a word which is a path to an existing dir, fzf this dir instead of the current.

Do I understand this correctly? You intend to make it so that in this screenshot, pressing ctrl+t would search from the ~/ root instead of the current dir ~/.local/share/chezmoi?

Then +1 from me, since my intuition thought this was how it already should work.

Image

thernstig avatar Feb 07 '25 12:02 thernstig

If the cursor follows immediately a word which is a path to an existing dir, fzf this dir instead of the current.

Do I understand this correctly? You intend to make it so that in this screenshot, pressing ctrl+t would search from the ~/ root instead of the current dir ~/.local/share/chezmoi?

Then +1 from me, since my intuition though this was how it already should work.

Image

Exactly!

eli-percepto avatar Feb 08 '25 20:02 eli-percepto