mirror of
https://github.com/junegunn/fzf.vim.git
synced 2025-12-07 13:14:30 +08:00
Display bindkey in magenta
This commit is contained in:
@@ -246,7 +246,7 @@ function! s:history_source(type)
|
|||||||
let max = histnr(a:type)
|
let max = histnr(a:type)
|
||||||
let fmt = '%'.len(string(max)).'d'
|
let fmt = '%'.len(string(max)).'d'
|
||||||
let list = filter(map(range(1, max), 'histget(a:type, - v:val)'), '!empty(v:val)')
|
let list = filter(map(range(1, max), 'histget(a:type, - v:val)'), '!empty(v:val)')
|
||||||
return extend([' :: Press CTRL-E to edit'],
|
return extend([' :: Press '.s:magenta('CTRL-E').' to edit'],
|
||||||
\ map(list, 's:yellow(printf(fmt, len(list) - v:key)).": ".v:val'))
|
\ map(list, 's:yellow(printf(fmt, len(list) - v:key)).": ".v:val'))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
@@ -675,7 +675,7 @@ function! s:commits(buffer_local, args)
|
|||||||
if a:buffer_local
|
if a:buffer_local
|
||||||
let options.options .= ',ctrl-d --header ":: Press '.s:magenta('CTRL-S').' to toggle sort, '.s:magenta('CTRL-D').' to diff"'
|
let options.options .= ',ctrl-d --header ":: Press '.s:magenta('CTRL-S').' to toggle sort, '.s:magenta('CTRL-D').' to diff"'
|
||||||
else
|
else
|
||||||
let options.options .= ' --header ":: '.s:magenta('CTRL-S').' to toggle sort"'
|
let options.options .= ' --header ":: Press '.s:magenta('CTRL-S').' to toggle sort"'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
call s:fzf(options, a:args)
|
call s:fzf(options, a:args)
|
||||||
|
|||||||
Reference in New Issue
Block a user