mirror of
https://github.com/junegunn/fzf.vim.git
synced 2026-01-08 20:43:32 +08:00
Apply -x to Buffers and Marks
This commit is contained in:
@@ -233,7 +233,7 @@ function! s:bufselect(bang)
|
||||
call fzf#run(extend({
|
||||
\ 'source': reverse(bufs),
|
||||
\ 'sink*': function('s:bufopen'),
|
||||
\ 'options': '+m --tiebreak=index --ansi -d "\t" -n 2,1..2 --prompt="Buf> "'.s:expect(),
|
||||
\ 'options': '+m -x --tiebreak=index --ansi -d "\t" -n 2,1..2 --prompt="Buf> "'.s:expect(),
|
||||
\}, a:bang ? {} : {'down': height + 2}))
|
||||
endfunction
|
||||
|
||||
@@ -426,7 +426,7 @@ function! s:marks(bang)
|
||||
call s:fzf({
|
||||
\ 'source': extend(list[0:0], map(list[1:], 's:format_mark(v:val)')),
|
||||
\ 'sink*': function('s:mark_sink'),
|
||||
\ 'options': '+m --ansi --tiebreak=index --header-lines 1 --tiebreak=begin --prompt "Marks> "'.s:expect()}, a:bang)
|
||||
\ 'options': '+m -x --ansi --tiebreak=index --header-lines 1 --tiebreak=begin --prompt "Marks> "'.s:expect()}, a:bang)
|
||||
endfunction
|
||||
|
||||
command! -bang Marks call s:marks(<bang>0)
|
||||
|
||||
Reference in New Issue
Block a user