100 Commits
Author SHA1 Message Date
Junegunn Choi d2a59a992a Use --footer for key binding hints
- Buffers: CTRL-ALT-X replaces SHIFT-DELETE to unload buffers
- History:, History/, Commits: use --scheme=history
- Bump min fzf version to 0.63.0 for --footer
2026-06-12 09:06:10 +09:00
Junegunn Choi 7fd26e3609 Experiment: Replace '--info inline' with '--info inline-right' (#1617) 2026-05-31 23:41:34 +09:00
Junegunn Choi c2b97c62b9 Add ALT-ENTER to paste selected items into the buffer
- New fzf#vim#paste inserts selections instead of opening them
  - First item after cursor (space-padded), rest on following lines
  - Leading whitespace stripped only when pasting after text
- Commands opt in via `_paste`; key configurable with g:fzf_vim.paste_key
- Skip the key when buffer is not &modifiable
- Per command, paste:
  - path: Files, GFiles, GFiles?, Buffers, History, Locate
  - line text: Lines, BLines, Marks, Changes
  - matched text: Rg, Ag, Grep
  - tag name: Tags, BTags
  - commit hash: Commits, BCommits
2026-05-31 23:26:55 +09:00
Junegunn Choi e5b53de3d3 [Buffers] Allow selecting the current buffer
But place the initial cursor on the second item so quick switching is
still possible as before.
2026-05-24 10:51:04 +09:00
Junegunn Choi 11d44b1805 Make the appearance of History: and History/ consistent 2026-05-24 10:27:28 +09:00
Junegunn Choi b9b98ac574 Commands: Fix quotation mistake 2026-05-21 20:35:33 +09:00
Junegunn Choi 31e338e314 Buffers: SHIFT-DELETE to unload buffers
Close #75
Close #733
2026-05-21 19:04:45 +09:00
Junegunn Choi 28ed21ef3e Some facelift 2026-05-21 19:00:40 +09:00
Junegunn Choi b9624aa012 Do not display statusline when fzf is running in a floating window
Related: #1615
2026-04-10 21:30:27 +09:00
Junegunn Choi 34a564c81f Update README 2026-02-02 09:42:52 +09:00
Junegunn Choi 98dcd77a18 Fix dictionary alignments 2025-06-08 10:51:25 +09:00
Junegunn Choi 1fff637559 Use FugitiveWorkTree() to find the git root
Fix #1586
2025-03-21 17:31:10 +09:00
Junegunn Choi 245eaf8e50 Allow specifying command-level fzf options
Close #1583
2025-03-03 19:35:54 +09:00
Junegunn Choi 6cda389bde Update README 2025-02-02 23:27:53 +09:00
Junegunn Choi b3a49d7993 Apply --scheme=path where appropriate
See https://github.com/junegunn/fzf/pull/4192
2025-01-30 00:26:53 +09:00
Junegunn Choi 80d1cc2e68 Clean up scroll offset expression 2025-01-30 00:19:58 +09:00
Junegunn Choi 556f45e79a Use --gap option for rendering g:fzf_vim.grep_multi_line = 2+
Requires fzf 0.56.0

https://github.com/junegunn/fzf/releases/tag/v0.56.0
2024-10-29 14:09:47 +09:00
Junegunn Choi ec75ffbfd5 [Ag/Rg] Fix quickfix list when multi-line mode is enabled
Fix #1568
2024-10-01 18:40:44 +09:00
Junegunn Choi c5ce7908ee Require fzf 0.53.0 or above with --tmux
Close https://github.com/junegunn/fzf/issues/3980
2024-08-28 13:44:08 +09:00
Junegunn Choi 04bfa81157 [Colors] Change color scheme on the fly (experimental) 2024-08-24 16:10:24 +09:00
Junegunn Choi 6f28c8c7bb [Tags] Fix preview on Vim 9.1
Fix #1555
2024-08-01 15:20:41 +09:00
Junegunn Choi f7c7b44764 Rename issue template file 2024-07-19 21:54:33 +09:00
Junegunn Choi 0337b09394 Update issue template 2024-07-19 21:49:07 +09:00
Junegunn Choi 8f3846f968 Show how to download the latest binary in ISSUE_TEMPLATE.md 2024-07-19 21:42:56 +09:00
Junegunn ChoiandGitHub 279e1ec068 [fzf#vim#grep / Ag / Rg / RG] Multi-line display for narrow screens (#1549) 2024-06-07 08:38:27 +09:00
Junegunn Choi 47077d0b17 Fix missing quote
Thanks @arekt
2024-05-25 17:02:44 +09:00
Junegunn Choi 19de6507ff Fix Ag/Rg sink for win32unix (git bash, mintty) 2024-05-23 21:38:15 +09:00
Junegunn Choi 71b0e0fb94 [Changes] Fix 'List index out of range: 0' error
Ignore change item that points to a non-existent line
2024-05-17 21:48:08 +09:00
Junegunn Choi 3656cbb9ef [preview.sh] Rename $BATNAME to $BATCAT (#1457) 2024-05-14 17:54:37 +09:00
Junegunn Choi 61edb0ca42 [preview.sh] Use $BATNAME if defined
Close #1457
2024-05-14 17:52:23 +09:00
Junegunn Choi a50c2640b9 Fix Commands and Windows on Windows
Use tab character with --tabstop=1 instead of non-breaking space

Fix #1542
2024-05-14 17:39:29 +09:00
Junegunn Choi d91dd754a9 [preview.sh] Fix handling of backslashes in paths on Windows 2024-05-14 09:34:55 +09:00
Junegunn Choi 99093bd103 [RG] Use 'cd .' as the dummy command on Windows 2024-05-08 00:06:01 +09:00
Junegunn Choi 269c08641e [RG] Do not append '|| :' on Windows 2024-04-29 00:09:13 +09:00
Junegunn Choi 503bb6fe9c [Tags] Require readtags from universal-ctags
Close #1540
2024-04-25 20:03:30 +09:00
Junegunn Choi 45d96c9cb1 Do not omit argument to bufnr() for Vim 8 compatibility
bufnr() requires an argument in Vim 8.0

Close #1521
2024-03-22 11:17:34 +09:00
Junegunn Choi e69f2dcdad [Tags] Add '-' argument to readtags to split options and the search string 2024-03-11 12:08:01 +09:00
Junegunn Choi 0b3e015ad8 [Tags] Use 'readtags' if query string is given
This pre-filtering is critical when working with large tag files.

'readtags' can perform a binary search for the given prefix string
but fzf has to load the entire file into memory just to start searching.

Close #1529
Close #1524
2024-03-11 12:00:49 +09:00
Junegunn Choi 8ea9574b3e Update README: warp.dev 2024-02-15 14:30:15 +09:00
Junegunn Choi 20a1c014b5 Update README: warp.dev 2024-02-13 08:45:27 +09:00
Junegunn Choi f6cb5b1789 [Helptags] Do not use 'Fatal'
Fix #1506
2024-01-08 16:43:32 +09:00
Junegunn Choi 1e054c1d07 [History] Fix error when there are no entries
Fix #1512
2023-10-27 11:43:42 +09:00
Junegunn Choi d1016dbd7c [fzf#vim#buffers] Allow users to pass a custom list of buffer numbers
Introducing a global configuration variable may seem easier but this
method is more flexible in that it allows you to define multiple
variations of the command without having to repeatedly setting and
unsetting the variable.

  function! MyBuffers()
    return filter(range(1, bufnr('$')), 'buflisted(v:val) && getbufvar(v:val, "&filetype") != "qf"')
  endfunction

  command! -bar -bang Buffers call fzf#vim#buffers(MyBuffers(), fzf#vim#with_preview({'placeholder': '{1}'}), <bang>0)

Close #831
Close #393
2023-10-14 23:57:35 +09:00
Junegunn Choi fe362d413a Restore the behavior of custom actions on Ag/Rg/Tags/Commits
Fix #1505
2023-09-16 19:36:06 +09:00
Junegunn Choi 937f430ce3 Add :Changes command
Close #1478
Close #1479
2023-09-14 22:45:00 +09:00
Junegunn Choi 7ba5be32bc [Buffers] Do not preview '[No Name]' 2023-09-06 18:26:23 +09:00
Junegunn Choi 2c501dc5a2 [Windows] Add preview
Close #1487
2023-09-06 18:26:23 +09:00
Junegunn Choi 1be10b0e50 Update README 2023-09-06 00:48:04 +09:00
Junegunn Choi 5c218e982d [Lines] Allow multiple selections 2023-09-06 00:46:24 +09:00
Junegunn Choi 832a090870 Add option to use location list instead of quickfix list
Close #432
Close #448
Close #846
Close #1095
Close #1500
2023-09-06 00:46:24 +09:00
Junegunn Choi f5ba993af3 Require the latest fzf
It has a crucial fix for fzf#vim#grep2
2023-06-04 15:50:44 +09:00
Junegunn Choi fd812b5710 [fzf#vim#grep[2]] Deprecate has_column argument
The boolean value tells the function if the output of the command
contains column numbers, but we can just see the selected lines if they
contain column numbers.

The argument is now removed from the documentation, and will be silently
ignored for backward compatibility.

Close #1480
2023-06-04 15:49:16 +09:00
Junegunn Choi 87b60bb133 Add :RG command and fzf#vim#grep2 function 2023-06-04 15:27:45 +09:00
Junegunn Choi dc71692255 Update documentation and comments 2023-01-27 10:42:13 +09:00
Junegunn Choi 9c37e6801b Update RG example 2023-01-08 17:55:48 +09:00
Junegunn Choi fd7fab77b2 [GFiles] Use ls-files --deduplicate only on git 2.31 or above
Close #1446
2022-12-24 10:34:55 +09:00
Junegunn Choi 333635e25e Update g:fzf_preview_window example 2022-09-22 17:30:03 +09:00
Junegunn Choi ecbf9cd98e Revert "Add Sponsor Labels action"
This reverts commit f64c5b726d.
2022-09-13 09:43:23 +09:00
Junegunn Choi f64c5b726d Add Sponsor Labels action 2022-09-10 11:27:56 +09:00
Junegunn Choi c491d702b7 [GFiles] Fix opening files from subdirectory
https://github.com/junegunn/fzf.vim/pull/1290#issuecomment-1208759166
2022-08-09 13:47:50 +09:00
Junegunn Choi c6b59d8ad7 [GFiles] fzf#vim#gitfiles should respect 'dir'
https://github.com/junegunn/fzf.vim/pull/1290#issuecomment-1207832597
2022-08-08 23:47:20 +09:00
Junegunn Choi a4617a7291 Use ASCII non-breaking space 2022-08-02 13:56:15 +09:00
Junegunn ChoiandGitHub 6a34c9060a Create FUNDING.yml 2022-07-30 19:54:16 +09:00
Junegunn Choi d5f1f8641b Update .github/ISSUE_TEMPLATE.md 2022-04-07 17:47:54 +09:00
Junegunn Choi e393108bfa Simplify version checking
Fix #1329
2021-09-29 20:22:47 +09:00
Junegunn Choi a552e44810 [preview] Let bat decide if the file is a binary
Fix #1264
2021-08-31 14:16:07 +09:00
Junegunn Choi 161da95640 [[B]Commits] Allow tracking changes in the line range
Thanks to @anhpt379

Close #898
Close #1288
2021-05-24 19:38:51 +09:00
Junegunn Choi d7211d0f61 Set delta width
Fix #1219
2021-05-24 16:29:31 +09:00
Junegunn Choi 75c7e87de1 [Tags] Handle \t characters in EXCMD
Fix #1278
2021-05-01 09:55:40 +09:00
Junegunn Choi caf7754b26 [Buffers] Increase tabstop according to the string length of bufno
e.g. vim {1..1000} +'silent 1bd'

Fix #1237
2021-03-25 01:16:02 +09:00
Junegunn Choi 711fb41e39 Respect preview-window value in FZF_DEFAULT_OPTS
when g:fzf_preview_window is not set, instead of overriding it with `right`.

Close #2378
2021-03-06 16:34:25 +09:00
Junegunn Choi 02a192ea0b [Buffers] Increase tabstop if the number of buffers >= 1000
Fix #1237
2021-02-02 11:11:20 +09:00
Junegunn Choi 707f5b6269 Make fzf#vim#preview process g:fzf_preview_window
Related #1023
Related #1225
2021-01-27 10:53:14 +09:00
Junegunn Choi d43df0ea2f [fzf#vim#complete] Keep insert mode after completion
https://github.com/junegunn/fzf.vim/issues/303#issuecomment-755965141

Fix a bug where completion ends in normal mode instead of in insert mode
when a terminal buffer is used to render fzf in regular Vim (layout != down).
2021-01-07 18:12:10 +09:00
Junegunn Choi 811b8607c6 [Buffers] Do not apply --header-lines when the current buffer is unlisted
Fix #1211
2020-12-30 23:43:54 +09:00
Junegunn Choi e9d62b4c87 delta: Remove invalid flag 2020-12-14 14:20:58 +09:00
Junegunn Choi dfc318b2be delta: Only disable --side-by-side (#1205) 2020-12-14 14:09:09 +09:00
Junegunn Choi a1f33472f9 delta --no-gitconfig
Close #1205
2020-12-14 10:33:18 +09:00
Junegunn Choi 708c26aceb Update README 2020-12-14 00:18:01 +09:00
Junegunn Choi 4c9af003e6 Fix typo 2020-12-14 00:14:45 +09:00
Junegunn Choi 54b3817db2 [[B]Commits] Use delta if available 2020-12-14 00:12:22 +09:00
Junegunn Choi 65b6cdb0f2 [GF?] Use bash instead of sh
[[ may not be available on sh
2020-12-12 10:28:26 +09:00
Junegunn Choi 97ec188e07 [GF?] Use delta to format git diff if available
Close #1202
2020-12-12 02:22:21 +09:00
Junegunn Choi 636a62f140 Add g:loaded_fzf_vim
Close #1201
2020-12-11 10:08:30 +09:00
Junegunn Choi 8fa9cf0524 [fzf#vim#grep] Remove color overrides
Related: https://github.com/junegunn/fzf.vim/issues/1197#issuecomment-739804363
2020-12-07 18:50:21 +09:00
Junegunn Choi cc13a4b728 Use system() instead of systemlist() for older versions of Vim
Fix #1184
2020-11-25 13:51:11 +09:00
Junegunn Choi 53b3aea0da [fzf#vim#grep] Go to the correct column by using cursor function instead of |
Ceci n'est pas une pipe.

Fix #1173
Fix #1174
2020-11-11 16:56:18 +09:00
Junegunn Choi bd3a021ec1 See the last line of "fzf --version" output
The output may contain some warning messages from the shell. While such
extra messages should be properly fixed by the user, we can ignore them
by checking the last line of the output.

Related: https://github.com/junegunn/fzf.vim/issues/1145#issuecomment-719465248
2020-10-30 19:34:04 +09:00
Junegunn Choi 7d45724fdd [[B]Commits] Apply g:fzf_preview_window
Related: #1149
2020-10-27 16:35:06 +09:00
Junegunn Choi fcb1e6ebec Optimize History: and History/
@kevinhwang91 profiled the code and found a low hanging fruit for making
the commands faster
2020-10-23 22:35:40 +09:00
Junegunn Choi ddc377c0d3 Update doc: 0.23.0 or above required 2020-10-22 17:11:09 +09:00
Junegunn Choi 8b3ab784ed Print error message when fzf --version failed
Fix #1145
2020-10-22 17:06:48 +09:00
Junegunn Choi 44057cce0e Update g:fzf_preview_window to be a list with optional toggle keys
- The default preview window option will be ['right', 'ctrl-/']
  regardless of screen width or <bang>
- This will also fix #1010
2020-10-22 17:02:48 +09:00
Junegunn Choi 01f7146cf6 Put focused line in the middle of the preview window
Fix #1092
Requires fzf 0.23.0 or above
2020-10-18 13:37:41 +09:00
Junegunn Choi 18205e071d Version requirement 2020-09-04 21:48:15 +09:00
Junegunn Choi 4145f53f3d Use native preview scroll of fzf 0.22.0
This allows you to scroll upwards

Fix #1053
Fix #751
Fix #749
2020-08-13 00:14:41 +09:00
Junegunn Choi 23dda8602f Fix code comments: options -> spec 2020-08-13 00:14:41 +09:00
Junegunn Choi 9cc54fb3d3 [fzf#vim#grep] Ignore whitespaces around :
Fix #1071
2020-08-12 21:51:26 +09:00
Junegunn Choi 7bc8eccf57 Dependencies 2020-07-27 20:47:38 +09:00
Junegunn Choi 16e3efbcb1 Disable preview window if bash is not found
Fix #1039
2020-06-07 10:13:35 +09:00