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
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
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
infokiller
cabfd44a8b
[Commands] Add command to history when directly executed ( #910 )
2020-11-29 20:46:59 +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
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
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
sicher
0eb385065b
Concat string with "." ( #1142 )
...
expr-.. is not available on older versions of Vim
2020-10-21 13:36:37 +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
Denis Cornehl
0fe8e198a3
[Tags] Unfold after Tags/BTags ( #1133 )
2020-10-04 19:42:58 +09:00
Jan Edmund Lazo
3348aef05d
[fzf#vim#with_preview] Detect WSL bash on Windows only
...
Close https://github.com/junegunn/fzf.vim/issues/1052
2020-09-12 01:06:17 +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
Antoine
2115caeba1
Fix :Maps when :verbose map does not have a 2nd line with comments ( #1067 )
2020-07-30 12:50:19 +09:00
Doron Behar
8f1e73b598
Expose some buffer related functions ( #1044 )
2020-06-07 10:16:16 +09:00
Junegunn Choi
16e3efbcb1
Disable preview window if bash is not found
...
Fix #1039
2020-06-07 10:13:35 +09:00
Maxim Kim
5aa5977d74
Handle absolute windows paths in Grep/Ag/Ripgrep sink process ( #1038 )
...
Fix #1037
Function `ag_to_qf` is used to parse line produced by Grep, Ag or
Ripgrep. Implementation in quesition split it using regexp that doesn't
work for windows absolut paths.
A better approach is to use `matchlist` function.
2020-06-01 12:16:18 +09:00
Jan Edmund Lazo
7a655179a4
[fzf#vim#with_preview] Support WSL bash ( #1026 )
...
* [fzf#vim#with_preview] support wsl bash
Close https://github.com/junegunn/fzf.vim/issues/988
Close https://github.com/junegunn/fzf.vim/pull/1009
* [fzf#vim#with_preview] use abs path for bin/
WSL has issues with relative filepaths.
2020-05-23 21:23:26 +09:00
Maxim Kim
996ec3b4b0
[Helptags] Fix perl script for Windows ( #1036 )
...
Temporary perl script that parses output of help grep doesn't take into
account backward slash as windows path separator.
Fixes #987
2020-05-23 20:33:04 +09:00
Jesse Leite
a74605b81d
Add undocumented fzf#vim#_recent_files function ( #1024 )
...
* Rename and make `s:all_files` public for user fzf extension
2020-05-13 00:33:34 +09:00
Alexandre Perrin
25bed070d8
Use -- before the search pattern for Ag, Rg, etc. ( #1012 )
...
Before this patch, a search pattern starting with a dash like
`:Rg -bang` would fail (or exhibit the wrong behaviour) because it would
be treated as a option. However, this case is very common when searching
for ->member in a project in C, C++, PHP, etc.
Co-authored-by: Alexandre Perrin <alex@atipik.ch >
2020-05-06 00:53:11 +09:00
Ian Homer
4cf475b753
[Maps] Display filename and line number ( #998 )
...
Fix #997
Co-authored-by: Ian Homer <ihomer@worth.systems >
2020-05-01 11:28:03 +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
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
6eeeab64a8
Revert "[[B]Commits] Add support for files in submodules ( #919 )"
...
This reverts commit 360f7f36da .
2020-01-14 10:37:57 +09:00
matawed
360f7f36da
[[B]Commits] Add support for files in submodules ( #919 )
2020-01-14 10:36:05 +09:00
atarax
fab0597a50
[fzf#vim#grep] Properly handle filenames with double-colons ( #928 )
2020-01-10 11:45:08 +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
Viacheslav Lotsmanov
359a80e3a3
[History] Fix feedkeys to ignore command-line mappings ( #836 )
2019-07-04 15:53:22 +02:00
Tomáš Janoušek
5c87ab86c0
[Tags] Workaround for last-position-jump ( #810 )
...
If there's an autocmd for BufReadPost that jumps to the last position,
searching for the tag location sometimes results in vim printing the
wrapscan warning and then requires hit-enter. Execute the search
silently to suppress the warning (errors are still visible!).
2019-05-14 18:46:01 +09:00
Greg Anders
7bf940d261
Do not remap keys when using feedkeys ( #768 )
2019-02-21 10:40:13 +09:00
Mars Peng
f0acabf7e8
[Windows] Use {count}tabnext instead of normal {count}gt ( #745 )
...
To workaround https://github.com/neovim/neovim/issues/4895
2018-12-11 10:50:14 +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
Peter Shih
c6275ee108
[BLines] Fix error on line with tab, fix #699 ( #708 )
2018-10-01 17:08:25 +09:00
Daniel Schaffrath
c3954d294a
[Lines] Unfold after Lines/BLines ( #693 )
2018-09-12 12:06:51 +09:00
Junegunn Choi
8fa84e0fdf
[BLines] Fix incorrect line numbers when run with query ( #694 )
2018-09-08 02:39:46 +09:00
mg979
aedd47be21
[BLines] Allow multi selection for building quickfix list
2018-09-07 16:37:36 +09:00