Commit Graph

506 Commits

Author SHA1 Message Date
TryWumbo
dff3ad4b62 Update README.md (#1406)
Minor update to first sentence to aid clarity
2022-08-03 14:33:15 +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
Emilv2
c311c0a95f [[B]Commits] Show current file first in preview (#1402)
Close #802
2022-06-28 14:33:15 +09:00
Junegunn Choi
d5f1f8641b Update .github/ISSUE_TEMPLATE.md 2022-04-07 17:47:54 +09:00
jiz4oh
b23e4bb8f8 [fzf#vim#complete#word] Respect &dictionary option (#1373) 2022-03-07 17:35:08 +09:00
Tomáš Janoušek
1f7bfa4007 [[B]Commits] Use --color=always with delta as well (#1362)
With some delta configurations (e.g. color-only = true, diff-highlight =
true), delta doesn't add its own coloring and keeps that from git diff,
and thus we need to turn that on.

Additionally, delta doesn't do its own detection of moved lines and
relies on git diff's colorMoved, which also needs enabling of colors.
2022-02-01 15:34:48 +09:00
Tomáš Janoušek
70541d2ee0 [Commands] Fix hit-enter/more-prompt with terminal buffer fzf (#1363)
Since 85ae745910,
fzf opens in a terminal buffer (in my setup) and that breaks commands
that end up showing the hit-enter or more prompt, such as :scriptnames
or :ALEInfo. No idea why those commands break (I tried to diagnose this
but gave up unfortunately), but executing them using feedkeys fixes
this.
2022-01-30 13:28:24 +09:00
Melandel
91332acb1c [GFiles?] Fix preview on windows (wsl bash + git_install_folder/usr/bash) (#1360)
* Fix preview on GFiles? on Windows+WSL
* Fix preview on GFiles? on Windows using gitInstallFolder\usr/bin\bash.exe

Co-authored-by: Minh-Tam TRAN <c_mtran@capsuletech.com>
Co-authored-by: Minh-Tam TRAN <minh-tam.tran@younited-credit.fr>
2022-01-24 18:02:50 +09:00
Philip Kannegaard Hayes
66cb8b8264 [Helptags] add preview window to :Helptags command (#1357)
+ In `fzf#vim#helptags`, we now also parse out the ex-command in the
  perl script so it's available for the preview (this is just an
  extra `\t(.*)` appended to the original regex).

+ Add the `--tag` placeholder to `:Helptags` with corresponding
  arguments.
2022-01-16 21:33:29 +09:00
Ben Denhartog
d6aa21476b Add LICENSE file (#1342) 2021-11-02 09:05:22 +09:00
peelz
0452b71830 Fix preview failing on files with special characters (#1337) 2021-10-10 21:55:15 +09:00
magras
a4ce66d725 Set jump if the target is in the current file (#1195)
Adding a record to the jump list allows to go back to the cursor
position before jump with CTRL-O.

Fix #595
2021-10-08 17:26:38 +09:00
Junegunn Choi
e393108bfa Simplify version checking
Fix #1329
2021-09-29 20:22:47 +09:00
Walter Wang
bd703a7a7d Force LF on Windows (#1326)
Fix #1270
2021-09-16 11:43:27 +09:00
Kevin Lin
980cd07439 [fzf#vim#with_preview] Set --no-unicode if ambiwidth is 'double' (#1322)
Fix #1320

Append fzf argument `--no-unicode` when ambiwidth is `double` to keep the
preview window rendering correctly.
2021-09-03 06:46:54 +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
Ben
b1afeca8cc Unfold jumped line in grep sink (#1277) 2021-08-17 16:17:51 +09:00
Frederick Zhang
e34f6c129d [[B]Commits] Preserve window view (#1289)
In 161da95, [B]Commits were changed to range commands with -range=%, now
Vim jumps to the first line when these two commands are called directly
without specifying range.

This fixes it by saving window view in a temporary variable and
restoring it later. Reference: [1].

[1] https://vi.stackexchange.com/a/6037/33583
2021-05-25 13:30:41 +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
Stefan Kanev
a88311b222 Don't mutate args to fzf#vim#files() (#1282)
As the code was written before, if we do this:

   let s:opts = {
   \ 'window': {'width': 0.6, 'height': 0.6, 'relative': v:false},
   \ 'options': ['--layout=reverse', '--info=inline'],
   \}

   call fzf#vim#files('', s:opts, 0)

...then s:opts will get mutated by the call to fzf#vim#files, cloberring
any persistent configuration established this way.

Making a defensive copy solves the problem.
2021-05-09 13:45:33 +09:00
Junegunn Choi
75c7e87de1 [Tags] Handle \t characters in EXCMD
Fix #1278
2021-05-01 09:55:40 +09:00
Eddie
ee91c93d4c [Snippets] Do not limit search scope (#1217) 2021-04-15 05:38:19 +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
Greg Fisher
1ef72b14cc Use nvim if vim not installed (#1262)
The `tagpreview.sh` script is hardcoded to the `vim` binary. For users that only
have  Neovim installed an error is displayed and no preview is rendered.

This change addresses this by falling back to the `nvim` binary if the `vim`
binary isn't present.
2021-03-14 12:08:29 +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
Grueslayer
68ab645574 Fix preview support for MS Windows (WSL and Git bash) (#1215)
* Fixes #1212

* Path translation only when containing backslash.

- lower letters also allowed for drive

Co-authored-by: Jan Stocker <Jan.Stocker@cosmoconsult.com>
2021-02-01 19:48:25 +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
Ingo Meyer
36de5db9f0 [Tagpreview] Handle absolute file paths correctly (#1229)
Fix #1228
2021-01-20 20:34:56 +09:00
Ingo Meyer
1fcdee55cc [Tags] Add a tag preview with a custom tagpreview.sh script (#1223)
* Add a tag preview with a custom `tagpreview.sh` script

* [Tags] Respect g:fzf_preview_window

Co-authored-by: Ingo Meyer <IJ_M@gmx.de>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2021-01-17 22:36:02 +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
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
DZ84
61c4b6d1ed [fzf#vim#with_preview] Incorporate batcat name (#1159)
* Added detection/selection of two bat install scenarios.
2020-11-04 01:59: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