Skip to content

Commit

Permalink
fix: Fix non-functional vim plugin (#659)
Browse files Browse the repository at this point in the history
The vim plugin uses --expect and expects the key used to accept the
selection on the first line of output. Commit bcee1f4 "feat!: do not
check for expect before printing the argument of accept… (#625)" broke
that by not outputting anything if the selection was made using the
default "enter" key. We can workaround that by explicitly adding
"enter" to the --expect argument, so that it once again shows up in the
output.

Fixes skim-rs/skim.vim#25
  • Loading branch information
dotdash authored Dec 8, 2024
1 parent 1121509 commit 3eb5591
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/skim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -937,6 +937,7 @@ function! s:popup(opts) abort
endfunction

let s:default_action = {
\ 'enter': 'edit',
\ 'ctrl-t': 'tab split',
\ 'ctrl-x': 'split',
\ 'ctrl-v': 'vsplit' }
Expand Down

0 comments on commit 3eb5591

Please sign in to comment.