[Feature] Enhance ctrl-t behaviour in bash
Implement the following ctrl-t behaviour:
- 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) - If the cursor follows immediately a word which is a path to an existing dir, fzf this dir instead of the current.
PR #3918
- already works for fish shell, but not for bash
I've opened this PR https://github.com/junegunn/fzf/pull/3918 What do you tihnk?
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.
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.
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.
![]()
Exactly!