Skip to content

Complete directory arguments with "/" after menu completion? #297

Answered by akinomyoga
mozirilla213 asked this question in Q&A
Discussion options

You must be logged in to vote

A trailing slash is added when the completion is completed.

When there's a single option for completion ble adds a trailing slash to directories:

$ cd /e<TAB>
$ cd /etc/

This is because the completion immediately completes when there is a unique candidate.

But if there are multiple choices it doesn't:

$ cd /s<TAB><TAB><TAB>
/sbin@ /srv/ /sys/
$ cd /srv

While selecting a completion candidate in the menu, the trailing slash isn't added but will later be added on the completion of the menu completion. You need to press RET to complete the completion, or otherwise the completion would be canceled prematurely.

bind 'set mark-directories on' only makes trailing slashes to show,

That's bin…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mozirilla213
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants