Skip to content
Discussion options

You must be logged in to vote

You may define a custom completion context for the directory names and bind it to a specific key. This is an example:

# blerc
function ble/complete/context:dirname/generate-sources {
  ble/complete/context:syntax/generate-sources || return "$?"
  ble/complete/context/overwrite-sources file:directory
}
# For emacs editing mode
ble-bind -m emacs -f 'C-x d' 'complete show_menu:context=dirname'
ble-bind -m emacs -f 'M-d' 'complete context=dirname'
# For vi editing mode
ble-bind -m vi_imap -f 'C-x d' 'vi_imap/menu-complete context=dirname'
ble-bind -m vi_imap -f 'M-d' 'complete context=dirname'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mcepl
Comment options

Answer selected by mcepl
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