Prevent cd
tab completion from completing to a file
#562
-
From my observation, when I type Meanwhile, I do find it useful to see the last-level files during cd. Is there a way to possibly just show the filenames in the completion menu, but not autocompletes the path all the way? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
If you just want to show the completion names and do not want to complete them, you may bind # blerc
# For emacs editing mode (default)
ble-bind -m emacs -f C-i 'complete show_menu'
ble-bind -m emacs -f TAB 'complete show_menu'
# For vi editing mode
ble-bind -m vi_imap -f C-i 'vi_imap/complete show_menu'
ble-bind -m vi_imap -f TAB 'vi_imap/complete show_menu' However, with this setting, the completion doesn't happen at all, which may not be what you want. If you want to disable the fallback completion of filenames, you need to modify the completion setting for # blerc
ble-import core-complete -C '
ble/function#advice after ble/cmdinfo/complete:cd "ble/opts#remove comp_opts ble/default"' Note: The above setting uses an internal interface, so it can possibly be broken in the future, though I currently don't have a plan to change it. In this case, the filename list is not shown on attempting the completion for |
Beta Was this translation helpful? Give feedback.
-
You can actually |
Beta Was this translation helpful? Give feedback.
If you just want to show the completion names and do not want to complete them, you may bind
complete show_menu
toC-i
(TAB).However, with this setting, the completion doesn't happen at all, which may not be what you want.
If you wan…