Commit Graph

530 Commits

Author SHA1 Message Date
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
Kohei Murakami
ed9d66c2a6 Remove unnecessary escaping in tilde expansion (#962) 2020-03-11 23:22:06 +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
uzxmx
48a2d80a24 [fzf#vim#preview] Respect $BAT_STYLE (#953) 2020-02-19 12:16:32 +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
Phong
dc4c4c2271 Use FZF_PREVIEW_LINES instead of LINES (#931)
Since fzf v0.18.0 FZF_PREVIEW_LINES is preferred over LINES
2020-01-14 14:07:14 +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
tockn
8a6894d6a5 Fix typo (#914) 2020-01-10 11:51:02 +09:00
Nils ANDRÉ-CHANG
8b778dc642 Remove useless line in autocmd (#924) 2020-01-10 11:48:06 +09:00
atarax
fab0597a50 [fzf#vim#grep] Properly handle filenames with double-colons (#928) 2020-01-10 11:45:08 +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
David Bengoa
fcdb7a0096 Fix broken anchor in link (#908) 2019-11-24 18:25:28 +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
ptzz
bce6588d24 Fix preview of paths starting with ~/ (#892) 2019-11-01 10:31:41 +09:00
Viacheslav Lotsmanov
359a80e3a3 [History] Fix feedkeys to ignore command-line mappings (#836) 2019-07-04 15:53:22 +02:00
Junegunn Choi
91ed5f4b39 Fix invalid layout example 2019-06-08 23:29:43 +09: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
Michael Gaffney
ac4e7bfb36 Allow 'fzf-vim.txt' to be listed in the LOCAL ADDITIONS section of help.txt (#805)
The first field on the first line of a help file should be a link to the
help file name. (See :h help-writing)
2019-04-29 13:33:16 +09:00
Junegunn Choi
b31512e2a2 Fix incorrect fzf_layout example (#769) 2019-02-22 10:54:51 +09:00
Miguel Madrid Mencía
9b50e2fd5f Fix preview of symbolic links (#739) 2019-02-21 10:42:10 +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
Elisha Hastings
ad1833ecbc [preview] Use env to get bash (#737)
This wasn't working on NixOS due to bash not being under `/bin`. Using `env` should make it compatible with more setups.
2018-11-14 22:19:17 +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
Jongwook Choi
b73d141b74 [preview] Support bat for syntax highlighting in preview.rb
One can still take advantage of `bat` as a syntax highlighter,
when ruby is available but other ruby-based highlighter packages
are not installed.
2018-11-09 16:11:31 +09:00
Jongwook Choi
974d366b33 [preview] Use bat for syntax highlighting if available
In the preview.sh script (used when ruby is not installed),
`bat` (a clone of `cat` with syntax highlighting, etc.) can be
used for the sake of syntax highlighting. If bat is not available,
just fallback to the plain cat as before.

[bat]: https://github.com/sharkdp/bat
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
Filip Szymański
8224416813 [Filetypes] Remove duplicate file types (#688) 2018-09-02 18:21:20 +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