summaryrefslogtreecommitdiff
path: root/plugin/fzf.vim
AgeCommit message (Collapse)Author
2020-11-19[vim] &termwinkey may not be availableJunegunn Choi
/cc @Caid11
2020-11-17[vim] Clean up temp files on interrupt (#2252)Michal Domonkos
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().
2020-11-15[vim] Map CTRL-Z to <nop>Junegunn Choi
2020-11-15[vim] Set termwinkey to allow CTRL-WJunegunn Choi
Fix https://github.com/junegunn/fzf.vim/issues/1176
2020-11-05[vim] Fix double path separator issue on WindowsJunegunn Choi
Fix https://github.com/junegunn/fzf.vim/issues/1141
2020-10-31[vim] Set maxwidth and maxheight when creating a popupJunegunn Choi
For me, this fixes invalid popup size problem on Windows GVim
2020-10-31[vim] Remove dead codeJunegunn Choi
2020-10-30[vim] See the last line of "fzf --version" outputJunegunn Choi
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: https://github.com/junegunn/fzf.vim/commit/bd3a021ec11617c56e6aa95578fee619445b029d
2020-10-29[vim] Allow 'border': 'no' to be consistent with --color=noJunegunn Choi
2020-10-270.24.0Junegunn Choi
2020-10-27Merge branch 'devel' into masterJunegunn Choi
2020-10-27fixupJunegunn Choi
2020-10-27Fix: barbled multibyte text(exe. Japanese).nekowasabi
2020-10-27[vim] Download latest binary to meet version requirementJunegunn Choi
2020-10-26[vim] Add 'none' option for popup borderJunegunn Choi
2020-10-26Add more --border optionsJunegunn Choi
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
2020-09-12[vim] Change the default layout to use popup windowJunegunn Choi
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)
2020-09-09[vim] Expose fzf#exec() functionJunegunn Choi
2020-09-06[vim] Allow specifying popup width and height in absolute integer valueJunegunn Choi
Fix https://github.com/junegunn/fzf.vim/issues/1116
2020-07-26Fix failure of w:fzf_pushd unlet depending on timing (#2119)yuki yano
2020-07-15[vim] Preserve current directory in case someone changes it (#2096)Yanlin Sun
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>
2020-06-29[vim] Disable height calculation when 'preview' is found in the option stringJunegunn Choi
Fix #2093 And we'll phase out height specification with `~` prefix.
2020-06-21[nvim] Fix floating window requirements (#2089)Jan Edmund Lazo
Vim 8.1.2371 https://github.com/vim/vim/commit/05ad5ff0ab34ed9a5296dedd420ca81698b8ce22 Nvim 0.4.0 https://github.com/neovim/neovim/commit/9a1675b065394734ddaef91a314896028e2b1d46
2020-06-20[vim] Make fzf#wrap support v:true and v:false as wellJunegunn Choi
Fix #2087
2020-05-17[vim] Don't set wfw, wfh, bh options when opening popup (#2042)lacygoill
* 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>
2020-05-15[vim] Don't start extra process when opening popup (#2000)ichizok
Fix #2038
2020-04-05[vim] Add 'tmux' layout option to use fzf-tmuxJunegunn Choi
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
2020-03-30[vim] Fix issue with multiple popups (#1927)lacygoill
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
2020-03-03[vim] Fix height calculationJunegunn Choi
Fix #1418 e.g. call fzf#run({'source': [1, 2, 3], 'down': '~50%', 'options': "--border --header $'1\n2'"})
2020-03-01[vim] Throw error when popup support is unavailableJunegunn Choi
https://github.com/junegunn/fzf.vim/issues/943 https://github.com/junegunn/fzf.vim/issues/959
2020-02-16[vim] Pick up fzf-tmux on $PATH when bin/fzf-tmux is not foundJunegunn Choi
Close #1874
2020-02-14[vim] Remove unnecessary statementJunegunn Choi
2020-02-14[vim] Add fzf#install() for downloading fzf binaryJunegunn Choi
2020-02-14[vim] More border stylesJunegunn Choi
e.g. let g:fzf_layout = { 'window': { 'width': 0.4, 'height': 1, 'xoffset': 0, 'border': 'right' } } let g:fzf_layout = { 'window': { 'width': 0.4, 'height': 1, 'xoffset': 1, 'border': 'left' } } let g:fzf_layout = { 'window': { 'width': 1, 'height': 0.5, 'yoffset': 1, 'border': 'top' } } let g:fzf_layout = { 'window': { 'width': 1, 'height': 0.5, 'yoffset': 0, 'border': 'bottom' } }
2020-02-13[vim] Do not pipe FZF_DEFAULT_COMMANDJunegunn Choi
Revert the change introduced in #552. It seems that the startup time difference between bash and fish is not much of an issue now. > time bash -c 'date' Thu Feb 13 21:15:03 KST 2020 real 0m0.008s user 0m0.003s sys 0m0.003s > time fish -c 'date' Thu Feb 13 21:15:05 KST 2020 real 0m0.014s user 0m0.007s sys 0m0.006s When we explicitly *pipe* $FZF_DEFAULT_COMMAND instead of making fzf internally start the process ($FZF_DEFAULT_COMMAND | fzf), fzf may hang if the input process doesn't quickly process SIGPIPE and abort. Also, fzf#vim#grep temporarily swaps $FZF_DEFAULT_COMMAND instead of setting 'sink' so fzf can kill the default command on 'reload'. https://github.com/junegunn/fzf.vim/issues/927 However, because of the "pipe conversion", the trick wasn't working as expected. https://github.com/junegunn/fzf.vim/blob/467c3277884240f7b5430f8f4d600e3415c38f3b/autoload/fzf/vim.vim#L720-L726 We can go even further and always set $FZF_DEFAULT_COMMAND instead of piping source command.
2020-02-12[vim] Use install.ps1 to download binary on WindowsJunegunn Choi
Credits to @jiangjianshan
2020-02-10[vim] Consider ambiwidth for border (#1861)Kyoichiro Yamada
Close #1856 Close #1857
2020-02-06[vim] Border style for popup window (rounded | sharp | horizontal)Junegunn Choi
2020-02-06[vim] Add support for xoffset and yoffset options for popupJunegunn Choi
Close https://github.com/junegunn/fzf.vim/issues/942
2020-02-05[vim] Set &bufhidden=hide before starting terminal bufferJunegunn Choi
2020-02-04[vim] Popup window support for both Vim and NeovimJunegunn Choi
e.g. let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } } Based on the code from https://github.com/junegunn/fzf.vim/issues/821#issuecomment-581273191 by @lacygoill.
2020-01-07[vim] Use iconv only if +iconv is enabled (#1813)Jan Edmund Lazo
2019-12-16[vim] Encode list source to codepage (#1794)Jan Edmund Lazo
2019-12-15[vim] Use cterm colors on Windows (#1793)Jan Edmund Lazo
Truecolor does not work on default Windows terminal. It is a problem in neovim GUIs. https://github.com/sainnhe/edge/issues/5#issuecomment-565748240
2019-12-15Add MSYS2 support as a vim plugin (#1677)msr1k
* Add MSYS2 support as a vim plugin Add &shellcmdflag and TERM environment variable treatment. - Make &shellcmdflag `/C` when &shell turns into `cmd.exe` - Delete %TERM% environment variable before fzf execution * Change shellescape default value depending on s:is_win flag * Make TERM environment empty only when gui is running * Stop checking &shell in fzf#shellescape function This funcion's behavior is controlled by only if it is Windows or not. So there is no need to check &shell. * Take neovim into consideration when to set shellcmdflag * Add &shellxquote control
2019-12-12[windows/vim] Encode batchfile in current codepageJunegunn Choi
Backport https://github.com/junegunn/vim-plug/pull/913
2019-11-12[nvim] Handle SIGHUP in exit handler (#1749)Marco Hinz
In recent Nvim versions, an "Error running ..." message is shown even for normal use cases, such as: :Files <c-\><c-n> :close Closing the window will :bwipeout! the terminal buffer, because fzf sets bufhiden=wipe. When deleting the terminal buffer while fzf is still running, Nvim sends SIGHUP. This happens for quite some time already, but the bug only manifests since this commit: https://github.com/neovim/neovim/commit/939d9053b It's The Right Thing to do when the application exited due to a signal. Before that commit, no "Error running ..." message was shown, because 1 (instead of 128 + 1 == SIGHUP) was returned which the exit handler in fzf.vim treats as "NO MATCH".
2019-11-02[vim/windows] Use chcp only if sed is in PATHJunegunn Choi
https://github.com/junegunn/vim-plug/pull/891
2019-10-08[vim/windows] Fix chcp parsing for the current codepageJunegunn Choi
https://github.com/junegunn/vim-plug/pull/888
2019-09-29[vim] Output of chcp was not parsed correctlyJunegunn Choi
By @gh4w and @janlazo See https://github.com/junegunn/vim-plug/commit/68b31a4a66ec945ff299db25a8a6382cd48edf14