Skip to content
Myr

bash: set keybinding right before printing special character (#4377)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ajeet D'Souza · committed by GitHub · parent d226d84 · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:shell/completion.bash+3 added-3 removed
29 unmodified lines
30# }3132###########################################################3334# To redraw line after fzf closes (printf '\e[5n')35bind '"\e[0n": redraw-current-line' 2> /dev/null3634__fzf_defaults() {35 # $1: Prepend to FZF_DEFAULT_OPTS_FILE and FZF_DEFAULT_OPTS36 # $2: Append to FZF_DEFAULT_OPTS_FILE and FZF_DEFAULT_OPTS37 echo "--height ${FZF_TMUX_HEIGHT:-40%} --min-height 20+ --bind=ctrl-z:ignore $1"
286 unmodified lines
324 COMPREPLY=( "$matches" )325 else326 COMPREPLY=( "$cur" )327 fi328 # To redraw line after fzf closes (printf '\e[5n')329 bind '"\e[0n": redraw-current-line' 2> /dev/null330 printf '\e[5n'331 return 0332 fi333 dir=$(command dirname "$dir")
48 unmodified lines
382 COMPREPLY=("$selected")383 else384 COMPREPLY=("$cur")385 fi386 bind '"\e[0n": redraw-current-line' 2> /dev/null387 printf '\e[5n'388 return 0389 else390 _fzf_handle_dynamic_completion "$cmd" "${rest[@]}"
235 unmodified lines