How to make tab completion sorted by last modified? #3793
-
if doing tab completion to select a file? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Is this working for you ? source <(fzf --zsh)
_fzf_compgen_path() {
rg --hidden --files --sortr=modified --glob '!.git/*' -- "$1"
} Note Ensure the correct widget is assigned to ⇥ Tab, rather than a different widget, such as from Lines 365 to 368 in 01e7668 bindkey | grep -F "^I"
# Expected output: "^I" fzf-completion See also: Relevant code sections: Lines 189 to 194 in 01e7668 Lines 162 to 164 in 01e7668 |
Beta Was this translation helpful? Give feedback.
-
i got an sketchy solution for this https://github.com/niksingh710/cdots/blob/master/home/.shell/fzf.zsh#L100-L108 i was not aware of this path_completion and functions will look into them. |
Beta Was this translation helpful? Give feedback.
Have a look at Recommended way to sort results · Issue #196 · sharkdp/fd.