bash-completion icon indicating copy to clipboard operation
bash-completion copied to clipboard

feat(_filedir): add `-f` to manually suffix / to directory names

Open scop opened this issue 3 years ago • 3 comments

This attempts to implement _filedir -C as discussed in #827.

scop avatar Nov 21 '22 22:11 scop

Obsoleted by https://github.com/scop/bash-completion/pull/973

scop avatar May 11 '23 19:05 scop

Let me reopen this. The problem that the suffix slash is not added to directory names for the paths generated in another directory is not solved.

Also, I'd like to use the feature to suffix slashes to directory names to use it in another PR. There are many cases where the suffix slash is not added because the generated word does not exactly match a directory name in the current directory. In addition to the cases we change the directory, this also happens when the generated words are suffixed by xxx,yyy,, @, etc.

akinomyoga avatar Sep 24 '23 10:09 akinomyoga

Rebased and added a fix. Now -C dir is not needed because it is supported by _comp_compgen, but I'd like to have another flag -f to instruct _filedir that a slash needs to be manually suffixed to directory names.

akinomyoga avatar Sep 24 '23 10:09 akinomyoga