Commit Graph

290 Commits (master)

Author SHA1 Message Date
Junegunn Choi 835d2fb98c
[vim] Fix argument escaping for Windows batch file
Fix #3620
4 days ago
Junegunn Choi 2024010119
0.45.0 4 months ago
Junegunn Choi 3a965856a5
[vim] Keep jump list unaffected when calling term_start
Fix #3415
8 months ago
Junegunn Choi 3e9efd1401
[vim] Only prepend --border option in $FZF_DEFAULT_OPTS
Fix #3318
11 months ago
Junegunn Choi 265040a78c
[vim] Respect --border optin in $FZF_DEFAULT_OPTS 11 months ago
psarlov 44cfc7e62a
[vim] Add check for powershell 7 users (#3257)
Co-authored-by: Pavel Sarlov <psarlov@asteasolutions.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
1 year ago
Junegunn Choi 0f4af38457
[vim] Simplify --border injection
Prepend the border options so that the user can override them in
'options' entry of the spec.
1 year ago
Junegunn Choi aef39f1160
[vim] Fix missing --border when --border-label is present 1 year ago
Junegunn Choi 2023011763
0.36.0 1 year ago
Junegunn Choi b46e40e86b
[vim] Automatically set RUNEWIDTH_EASTASIAN=1 when &ambiwidth == double 1 year ago
Junegunn Choi a6d6cdd165
[vim] Use system-default border style
* 'rounded' on non-Windows platforms
* 'sharp' on Windows
1 year ago
Junegunn Choi 2eec9892be
[neovim] Use Normal group colors for floating window
Instead of NormalFloat.

https://github.com/junegunn/fzf/issues/3035#issuecomment-1305094043
2 years ago
Junegunn Choi 0881a6bc17
[neovim] Do not use Pmenu group colors for floating window
In Neovim, the foreground and background colors of a floating window
defaults to those of Pmenu highlight group, which yields unexpected
results.

This commit makes the colors of fzf window defaults to those of 'Normal'
group (or 'NormalFloat' if defined), by ignoring Pmenu group.

Then the colors can be configured via --color option of fzf.

NOTE: An error from setwinvar call is ignored because the exact
behavior of &winhighlight with an empty target group is not clearly
documented.

Close #3035
Close https://github.com/junegunn/fzf.vim/issues/1431
See https://github.com/neovim/neovim/pull/9722#discussion_r264777602
2 years ago
Junegunn Choi 0de1aacb0c
[vim] Fix version check on Windows when shellslash is set 2 years ago
Junegunn Choi f9d53303bb
[vim] Remove unnecessary powershell check
&shell is guaranteed to be cmd.exe on windows because we call s:use_sh()
2 years ago
Junegunn Choi d04faa6505
[vim] Fix escaping of fzf binary path containing spaces on Windows
Fix #2992
2 years ago
Kyle L. Davis 07da058eae
[vim] Update fzf#install to handle spaces on Windows (#2993) 2 years ago
Junegunn Choi e5d8cbd383
[vim] Fix version check on windows/powershell (addendum)
Should handle powershell.exe as well

Fix https://github.com/junegunn/fzf.vim/issues/1411
2 years ago
Carl Kamholtz d083f01d22
[vim] Add option to force 24 bit colors on Windows (#2889) 2 years ago
Carl Kamholtz 728f735281
[vim] Fix version check on windows/powershell (#2894)
- Replace fzf#shellescape with shellescape
- Prepend command with '&' in powershell to deal with quoted exe
2 years ago
Junegunn Choi ccc4677252
[vim] fzf#exec: Shell-escape fzf binary path
Fix #2877
2 years ago
Daniel Zhang 3b7a962dc6
[vim] Fix fzf#shellescape when shell=fish (#2828)
`shellescape()` behavior is different when `shell=fish`, so we should set `shell` before calling `shellescape()`, otherwise an unexpected result may occur (e.g. https://github.com/kevinhwang91/nvim-bqf/issues/56).

Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
Junegunn Choi 13c8f3d3aa
[vim] Handle writefile() failure gracefully
Fix #2676
2 years ago
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>
3 years ago
Junegunn Choi 391237f7df
[vim] Compare binary versions
Close #2410
3 years ago
Junegunn Choi 977e5effd9
[vim] Fix paste on MacVim
Close https://github.com/junegunn/fzf.vim/issues/1233
3 years ago
Junegunn Choi cbfbb49ab4
[vim] Vim 8.0 compatibility
Fix #2367
3 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.
3 years ago
Hiroki Konishi 806a47a7cc
[vim] Remove unnecessary `border` management in nvim floating window (#2370) 3 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
3 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
3 years ago
Junegunn Choi bedf1cd357
[vim] Use tnoremap only when it's available
Fix #2357
3 years ago
Junegunn Choi 13f180a70c
[vim] Stay in terminal mode if fzf#run is called from sink
Fix #2352
3 years ago
Junegunn Choi fcd896508b
[vim] fzf#run should ignore empty 'dir' argument
Fix #2343
3 years ago
Olivier Roques 1a76bdf891
[vim] Exit terminal mode before closing FZF window (#2326)
Fix https://github.com/junegunn/fzf.vim/issues/1216
3 years ago
Junegunn Choi ab3937ee5a
[vim] Allow closing Vim running fzf without confirmation
Close #2287
3 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