Junegunn Choi
2736a2f69e
[vim] Empty out $FZF_DEFAULT_COMMAND before unletting it
...
For Vim 8.0.1831 and below
* https://github.com/vim/vim/issues/1116
Fix https://github.com/junegunn/fzf.vim/issues/1301
3 years ago
Junegunn Choi
4173e94c6f
Do not check for --height support on --version
...
https://github.com/junegunn/fzf.vim/issues/1329
3 years ago
Junegunn Choi
a74731d7f5
[vim] Add 'sinklist' as a synonym to 'sink*'
...
So that it's easier to add a sinklist function to a spec dictionary.
let spec = { 'source': source, 'options': ['--preview', preview] }
function spec.sinklist(matches)
echom string(a:matches)
endfunction
call fzf#run(fzf#wrap(spec))
3 years ago
Junegunn Choi
cbedb57511
[vim] Workaround for Neovim bug of unconditionally evaluating `unlet $ENV_VAR`
...
See #2495
3 years ago
Junegunn Choi
85ae745910
[vim] Use terminal buffer on 'down' layout on regular Vim on terminal
...
When 'down' layout was used on regular Vim on terminal, fzf would open
below the editor using `--height` option. This was the only case where
terminal buffer was not used (the code was written when Vim didn't have
builtin terminal) and this exception has been a constant source of
confusion.
This commit makes fzf open in a terminal buffer even in that case.
3 years ago
Junegunn Choi
7411da8d5a
[vim] Use FZF_DEFAULT_COMMAND instead of STDIN pipe
...
So that fzf can finish immediately even when the input process doesn't
handle SIGPIPE and keeps running.
Fix #2481
3 years ago
Junegunn Choi
6e3a2fe0bf
[vim] Fix screen offset of relatively positioned popup window
...
Fix #2461
3 years ago
Tom Picton
8b0e1f941a
[vim] Support relative-to-window positioning of popup ( #2443 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
Junegunn Choi
391237f7df
[vim] Compare binary versions
...
Close #2410
4 years ago
Junegunn Choi
977e5effd9
[vim] Fix paste on MacVim
...
Close https://github.com/junegunn/fzf.vim/issues/1233
4 years ago
Junegunn Choi
cbfbb49ab4
[vim] Vim 8.0 compatibility
...
Fix #2367
4 years ago
Jonathan Müller
1137404190
[vim] Add keepjump to switch_back() function ( #2363 )
...
Otherwise, the jump list will contain a (hidden) entry for the FZF buffer if `window: enew` is used.
4 years ago
Hiroki Konishi
806a47a7cc
[vim] Remove unnecessary `border` management in nvim floating window ( #2370 )
4 years ago
Junegunn Choi
29851c18aa
[vim] Force redraw by exiting and re-entering terminal mode
...
Workaround for Neovim v0.5.0-dev
https://github.com/junegunn/fzf/issues/2352#issuecomment-782894123
4 years ago
Junegunn Choi
dea950c2c8
[vim] Call feedkeys only when the destination buffer is a terminal
...
Fix #2352
Fix https://github.com/junegunn/fzf.vim/issues/1216
Close #2364
4 years ago
Junegunn Choi
bedf1cd357
[vim] Use tnoremap only when it's available
...
Fix #2357
4 years ago
Junegunn Choi
13f180a70c
[vim] Stay in terminal mode if fzf#run is called from sink
...
Fix #2352
4 years ago
Junegunn Choi
fcd896508b
[vim] fzf#run should ignore empty 'dir' argument
...
Fix #2343
4 years ago
Olivier Roques
1a76bdf891
[vim] Exit terminal mode before closing FZF window ( #2326 )
...
Fix https://github.com/junegunn/fzf.vim/issues/1216
4 years ago
Junegunn Choi
ab3937ee5a
[vim] Allow closing Vim running fzf without confirmation
...
Close #2287
4 years ago
Junegunn Choi
7acdaf0b43
[vim] &termwinkey may not be available
...
/cc @Caid11
4 years ago
Michal Domonkos
1ed25d76ba
[vim] Clean up temp files on interrupt ( #2252 )
...
The clean-up is done in s:collect(), so let's make sure it's run before
we may terminate due to CTRL-C or ESC (or some other error code) in
s:exit_handler().
4 years ago
Junegunn Choi
474c1f5e32
[vim] Map CTRL-Z to <nop>
4 years ago
Junegunn Choi
8b71fea5dc
[vim] Set termwinkey to allow CTRL-W
...
Fix https://github.com/junegunn/fzf.vim/issues/1176
4 years ago
Junegunn Choi
d099941360
[vim] Fix double path separator issue on Windows
...
Fix https://github.com/junegunn/fzf.vim/issues/1141
4 years ago
Junegunn Choi
c144c95cda
[vim] Set maxwidth and maxheight when creating a popup
...
For me, this fixes invalid popup size problem on Windows GVim
4 years ago
Junegunn Choi
f08f4fd87d
[vim] Remove dead code
4 years ago
Junegunn Choi
1c68f81c37
[vim] See the last line of "fzf --version" output
...
The output may contain some unexpected warning messages from the shell
if it's not properly configured. While such extra messages should be
properly addressed by the user, we can ignore them by checking the
last line of the output instead of the first line.
Related: bd3a021ec1
4 years ago
Junegunn Choi
569be4c6c9
[vim] Allow 'border': 'no' to be consistent with --color=no
4 years ago
Junegunn Choi
0d5f862daf
0.24.0
4 years ago
Junegunn Choi
51dfacd542
Merge branch 'devel' into master
4 years ago
Junegunn Choi
de3d09fe79
fixup
4 years ago
nekowasabi
407205e52b
Fix: barbled multibyte text(exe. Japanese).
4 years ago
Junegunn Choi
607081bbaa
[vim] Download latest binary to meet version requirement
4 years ago
Junegunn Choi
e73383fbbb
[vim] Add 'none' option for popup border
4 years ago
Junegunn Choi
2e8e63fb0b
Add more --border options
...
Instead of drawing the window border in Vim using an extra window,
extend the --border option so that we do can it natively.
Close #2223
Fix #2184
4 years ago
Junegunn Choi
c60ed17583
[vim] Change the default layout to use popup window
...
The new default is
{ 'window' : { 'width': 0.9, 'height': 0.6, 'highlight': 'Normal' } }
The default highlight group for the border of the popup window is
'Comment', but 'Normal' seems to be a safer choice.
If you prefer the previous default, add this to your Vim configuration file:
let g:fzf_layout = { 'down': '40%' }
(fzf will fall back to this if popup window is not supported)
4 years ago
Junegunn Choi
9e96073128
[vim] Expose fzf#exec() function
4 years ago
Junegunn Choi
0db65c22d3
[vim] Allow specifying popup width and height in absolute integer value
...
Fix https://github.com/junegunn/fzf.vim/issues/1116
4 years ago
yuki yano
c0a83b27eb
Fix failure of w:fzf_pushd unlet depending on timing ( #2119 )
4 years ago
Yanlin Sun
f79b1f71b8
[vim] Preserve current directory in case someone changes it ( #2096 )
...
Preserve current directory in case current directory is changed by others
after the call of s:open
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
Junegunn Choi
bdde69d011
[vim] Disable height calculation when 'preview' is found in the option string
...
Fix #2093
And we'll phase out height specification with `~` prefix.
4 years ago
Jan Edmund Lazo
3e36f2b0ac
[nvim] Fix floating window requirements ( #2089 )
...
Vim 8.1.2371
05ad5ff0ab
Nvim 0.4.0
9a1675b065
4 years ago
Junegunn Choi
07a03b3e73
[vim] Make fzf#wrap support v:true and v:false as well
...
Fix #2087
4 years ago
lacygoill
ace92ba281
[vim] Don't set wfw, wfh, bh options when opening popup ( #2042 )
...
* No need to restore &wfw and &wfh when using popup window
Co-authored-by: lacygoill <lacygoill@lacygoill.me>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
ichizok
d631c76e8d
[vim] Don't start extra process when opening popup ( #2000 )
...
Fix #2038
4 years ago
Junegunn Choi
71e573d082
[vim] Add 'tmux' layout option to use fzf-tmux
...
e.g.
if exists('$TMUX')
let g:fzf_layout = { 'tmux': '-p90%,60%' }
else
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
endif
5 years ago
lacygoill
0f5c6e8f04
[vim] Fix issue with multiple popups ( #1927 )
...
Invoking fzf from an existing Vim popup terminal is a special case.
It requires some new code to avoid E994 from being raised and the user
being stuck in a non-closable popup window.
Fix #1916
5 years ago
Junegunn Choi
242c0db26b
[vim] Fix height calculation
...
Fix #1418
e.g.
call fzf#run({'source': [1, 2, 3], 'down': '~50%', 'options': "--border --header $'1\n2'"})
5 years ago
Junegunn Choi
6db15e8693
[vim] Throw error when popup support is unavailable
...
https://github.com/junegunn/fzf.vim/issues/943
https://github.com/junegunn/fzf.vim/issues/959
5 years ago