From 28ed21ef3ef03798442a65feb0d70cacd801cce9 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 21 May 2026 19:00:40 +0900 Subject: [PATCH] Some facelift --- autoload/fzf/vim.vim | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/autoload/fzf/vim.vim b/autoload/fzf/vim.vim index 7593f37..b9c50c2 100755 --- a/autoload/fzf/vim.vim +++ b/autoload/fzf/vim.vim @@ -652,7 +652,7 @@ function! s:history_source(type) endif let fmt = s:yellow(' %'.len(string(max)).'d ', 'Number') let list = filter(map(range(1, max), 'histget(a:type, - v:val)'), '!empty(v:val)') - return extend([' :: Press '.s:magenta('CTRL-E', 'Special').' to edit'], + return extend([' • Press '.s:magenta('CTRL-E', 'Special').' to edit'], \ map(list, 'printf(fmt, len(list) - v:key)." ".v:val')) endfunction @@ -688,7 +688,7 @@ function! fzf#vim#command_history(...) return s:fzf('history-command', { \ 'source': s:history_source(':'), \ 'sink*': s:function('s:cmd_history_sink'), - \ 'options': '+m --ansi --prompt="Hist:> " --header-lines=1 --expect=ctrl-e --tiebreak=index'}, a:000) + \ 'options': '+m --ansi --prompt="Hist:> " --inline-info --header-lines=1 --header-border=horizontal --no-separator --expect=ctrl-e --tiebreak=index'}, a:000) endfunction function! s:search_history_sink(lines) @@ -1283,7 +1283,7 @@ function! fzf#vim#commands(...) \ 'source': extend(extend(list[0:0], map(list[1:], 's:format_cmd(v:val)')), s:excmds()), \ 'sink*': s:function('s:command_sink'), \ 'options': '--ansi --expect '.s:conf('commands_expect', 'ctrl-x'). - \ ' --tiebreak=index --header-lines 1 -x --prompt "Commands> " -n2,3,2..3 --tabstop=1 -d "\t"'}, a:000) + \ " --tiebreak=index --header-lines 1 -x --prompt "Commands> " -n2,3,2..3 --tabstop=1 -d "\t" --list-border --header-border inline --inline-info --no-separator"}, a:000) endfunction " ------------------------------------------------------------------ @@ -1343,7 +1343,7 @@ function! fzf#vim#changes(...) return s:fzf('changes', { \ 'source': all_changes, \ 'sink*': s:function('s:changes_sink'), - \ 'options': printf('+m -x --ansi --tiebreak=index --header-lines=1 --cycle --scroll-off 999 --sync --bind start:pos:%d --prompt "Changes> "', cursor)}, a:000) + \ 'options': printf('+m -x --ansi --tiebreak=index --header-lines=1 --cycle --scroll-off 999 --sync --bind start:pos:%d --prompt "Changes> " --list-border --header-border inline --inline-info --no-separator', cursor)}, a:000) endfunction " ------------------------------------------------------------------ @@ -1379,7 +1379,7 @@ function! fzf#vim#marks(...) abort return s:fzf('marks', { \ 'source': extend(list[0:0], map(list[1:], 's:format_mark(v:val)')), \ 'sink*': s:function('s:mark_sink'), - \ 'options': '+m -x --ansi --tiebreak=index --header-lines 1 --tiebreak=begin --prompt "Marks> "'}, extra) + \ 'options': '+m -x --ansi --tiebreak=index --header-lines 1 --tiebreak=begin --prompt "Marks> " --list-border --header-border inline --inline-info --no-separator'}, extra) endfunction " ------------------------------------------------------------------ @@ -1509,7 +1509,7 @@ function! fzf#vim#windows(...) return s:fzf('windows', { \ 'source': extend(['Tab Win Name'], lines), \ 'sink': s:function('s:windows_sink'), - \ 'options': '+m --ansi --tiebreak=begin --header-lines=1 --tabstop=1 -d "\t"'}, a:000) + \ 'options': '+m --ansi --tiebreak=begin --header-lines=1 --tabstop=1 -d "\t" --list-border --header-border inline --inline-info --no-separator'}, a:000) endfunction " ------------------------------------------------------------------ @@ -1600,7 +1600,8 @@ function! s:commits(range, buffer_local, args) \ 'sink*': s:function('s:commits_sink'), \ 'options': s:reverse_list(['--ansi', '--multi', '--tiebreak=index', \ '--inline-info', '--prompt', command.'> ', '--bind=ctrl-s:toggle-sort', - \ '--header', ':: Press '.s:magenta('CTRL-S', 'Special').' to toggle sort, '.s:magenta('CTRL-Y', 'Special').' to yank commit hashes', + \ '--header-border=horizontal', '--no-separator', + \ '--header', '• Press '.s:magenta('CTRL-S', 'Special').' to toggle sort, '.s:magenta('CTRL-Y', 'Special').' to yank commit hashes', \ '--expect=ctrl-y,'.expect_keys]) \ }