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 Choi
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
Junegunn Choi
3925db8307
Update vim help file
2020-05-06 00:54:32 +09:00
Junegunn Choi
2c07630341
Better completion example
2020-05-03 17:36:28 +09:00
Junegunn Choi
5b6f282d97
Update documentation: fuzzy completion functions
2020-05-03 17:24:11 +09:00
Junegunn Choi
f86ef1bce6
[Buffers] getbufinfo() may not be available
2020-04-09 10:30:11 +09:00
Junegunn Choi
f90b3197ad
[fzf#vim#with_preview] Do not override --preview-window with the default value
...
Fix #975
2020-04-05 17:35:54 +09:00
Junegunn Choi
d4d36b412b
Update installation instruction
2020-03-17 14:29:57 +09:00
Junegunn Choi
7ccecee77d
Clarification: Files command runs $FZF_DEFAULT_COMMAND
...
Files is equivalent to running fzf without input pipe; fzf reads the
output of $FZF_DEFAULT_COMMAND
Related: #966
2020-03-17 12:07:37 +09:00
Junegunn Choi
d16ddcf58d
[History] Fix #964
2020-03-16 00:37:35 +09:00
Junegunn Choi
ef24327796
Enable preview window for BTags
...
Close #195
Close #799
Close #724
Close #955
2020-03-15 16:46:56 +09:00
Junegunn Choi
15ed47f561
Add option to globally enable or disable preview window
2020-03-15 16:16:04 +09:00
Junegunn Choi
e32a9c3767
Do not put --layout=reverse-list if FZF_DEFAULT_OPTS sets reverse layout
...
Close #916
2020-03-05 21:15:38 +09:00
Junegunn Choi
467c327788
Recommend running ./install --bin on update
2020-02-05 10:37:52 +09:00
Junegunn Choi
ee08c8f949
Clarification on 'do' option of Plug statement
2020-02-04 18:28:55 +09:00
Junegunn Choi
dc7796a6e2
Simplify the installation instruction
2020-02-04 18:23:53 +09:00
Junegunn Choi
6eeeab64a8
Revert "[[B]Commits] Add support for files in submodules ( #919 )"
...
This reverts commit 360f7f36da .
2020-01-14 10:37:57 +09:00
Junegunn Choi
76669c3c1d
Deprecate preview.rb
2019-12-22 18:11:18 +09:00
Junegunn Choi
f71f4808d9
Update examples
2019-12-18 10:08:03 +09:00
Junegunn Choi
206ec5efe9
Use --line-range and --highlight-line options of bat
2019-12-17 14:19:59 +09:00
Junegunn Choi
65edb6ad99
Update ISSUE_TEMPLATE
2019-11-24 22:44:30 +09:00
Junegunn Choi
6eda9fd38a
Revamp README
2019-11-24 19:33:58 +09:00
Junegunn Choi
98cf39949b
Change fzf#vim#grep to rely on temporary FZF_DEFAULT_COMMAND
...
Related #907
Also https://github.com/junegunn/fzf/issues/1750
function! RipgrepFzf(query, fullscreen)
let command_fmt = 'rg --column --line-number --no-heading --color=always --smart-case %s || true'
let initial_command = printf(command_fmt, shellescape(a:query))
let reload_command = printf(command_fmt, '{q}')
let options = {'options': ['--phony', '--query', a:query, '--bind', 'change:reload:'.reload_command]}
call fzf#vim#grep(initial_command, 1, options, a:fullscreen)
endfunction
command! -nargs=* -bang RF call RipgrepFzf(<q-args>, <bang>0)
2019-11-17 12:22:10 +09:00
Junegunn Choi
91ed5f4b39
Fix invalid layout example
2019-06-08 23:29:43 +09:00
Junegunn Choi
b31512e2a2
Fix incorrect fzf_layout example ( #769 )
2019-02-22 10:54:51 +09:00
Junegunn Choi
95f025ef2d
[doc] fzf#vim#with_preview does not require any argument
2018-11-27 23:05:43 +09:00
Junegunn Choi
741d7caabf
[preview] Fix fzf#vim#with_preview on Windows
...
Close #734
2018-11-11 12:00:56 +09:00
Junegunn Choi
0dbcfb28c4
[preview] Clean up preview scripts
...
- Use preview.sh instead of preview.rb by default
- Try bat syntax highlighter with the highest priority
- Remove "-v" option as the latest version of fzf sets up $LINES
- Allow users to customize the preview command via $FZF_PREVIEW_COMMAND
- *EXPERIMENTAL / EVOLVING / UNDOCUMENTED*
- Should be a command template with {} placeholder expression
- e.g. "nl {}"
2018-11-09 16:11:31 +09:00
Junegunn Choi
50707b089b
[Commits] FugitiveGenerate -> FugitiveFind
...
https://github.com/junegunn/fzf.vim/issues/674#issuecomment-431714761
2018-10-22 16:10:28 +09:00
Junegunn Choi
8fa84e0fdf
[BLines] Fix incorrect line numbers when run with query ( #694 )
2018-09-08 02:39:46 +09:00
Junegunn Choi
a3459df758
Add Rg for ripgrep
2018-08-31 17:27:35 +09:00
Junegunn Choi
2eb1bccea9
[Lines] Fix formatting error
2018-08-30 13:33:22 +09:00
Junegunn Choi
f52fcd3d6c
[Marks] Use foreground color for "Number" highlight group ( #581 )
2018-08-29 17:54:33 +09:00
Junegunn Choi
e042ec03a2
[Ag] Use base blue colors
...
Close #454
2018-08-29 17:53:58 +09:00
Junegunn Choi
633c980c05
Fix base ANSI colors ( #581 )
2018-08-29 17:53:20 +09:00
Junegunn Choi
bd80d334be
Fix background color of Lines/BLines
...
Close #555
2018-08-29 11:09:22 +09:00
Junegunn Choi
f39c92b7ce
Use --layout=reverse-list when appropriate (fzf 0.17.4 required)
2018-07-29 01:08:44 +09:00