Commit Graph

349 Commits

Author SHA1 Message Date
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
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
Junegunn Choi
2a58380051 Update README: external terminal emulator no longer required in GVim 2018-07-29 01:05:00 +09:00
Junegunn Choi
6ce58caad3 [Commits] Use FugitiveGenerate to get proper commit URL
Close #674
2018-07-22 17:08:27 +09:00
Junegunn Choi
8d56bdd6ad Remove duplicate example 2018-07-11 13:28:41 +09:00
Junegunn Choi
1d9e7d2a90 Add global line completion example to README
Close #622
2018-07-11 13:27:50 +09:00
Junegunn Choi
033033daa3 [Buffers] Avoid cleaning up g:fzf#vim#buffers when the plugin is reloaded
Close #643
2018-06-22 12:30:31 +09:00
Junegunn Choi
1b01a5069b [History] Append command to command history
Close #661
Fix #549
2018-06-22 12:13:32 +09:00
Junegunn Choi
6aa1db67a5 [History] Fix #549 - Avoid : or / map 2018-06-22 12:06:33 +09:00
Dylan Chong
34881b707b Update Rg example to use smart-case option (#658) 2018-06-20 18:20:24 +09:00
Ala Ibrahim
ce82e10630 [Buffers] Clean up buffer names (#637)
Issue: While following paths in a file, it might end up in paths like
`a/b/../c/d.ext` or `a/b/./c.ext`, which would be cleaner if displayed
like `a/c/d.ext` and `a/b/c.ext`.

Solution: Expand fullpath to resolve directories before collapsing it to
home directory/relative path.
2018-05-28 16:03:33 +09:00
Håken Lid
88595ebbaa [History] Use fnamemodify instead of expand (#626)
Close #573
2018-04-28 11:05:42 +09:00
Junegunn Choi
dc5f9437fc [BTags] Use sort executable only on Unix (excluding Cygwin) (#620) 2018-04-19 17:55:22 +09:00
Junegunn Choi
3661409e95 [BTags] Group tags by scope
Related #620
2018-04-18 14:09:54 +09:00
Justin M. Keyes
bbda33b402 buffer_tags: sort tags
This is nice for (ab)using :BTags to "browse" functions in a source
file.
2018-04-17 18:26:09 +09:00
Jan Edmund Lazo
dcf49751e9 [BTags][Buffers] use list type for options 2018-04-11 10:11:06 +09:00
Jan Edmund Lazo
9f0bae1248 [Lines][BLines][Tags] use list form for options 2018-04-11 10:11:06 +09:00
Shea Parkes
a362bc58f1 Update GGrep example to work at project level. (#590) 2018-03-09 11:48:46 +09:00
Pascal Lalancette
17d24ae31d [Helptags] Ignore wildignore setting (#567)
If `tags` is set in the `wildignore` option, `:Helptags` command would
always return an empty list.
2018-01-21 19:52:23 +09:00
Junegunn Choi
c0a5fee707 Clarify that "fzf.vim" depends on "fzf" 2018-01-09 01:36:51 +09:00
Junegunn Choi
2686522b2e Remove deprecated function 2018-01-09 01:18:37 +09:00
Jan Edmund Lazo
7e92b73d03 [fzf#vim#with_preview] workaround system() newline (#557)
system() adds an extra newline which breaks the DOS shortname hack
for Neovim on Windows.
Suppress echo so the DOS shortname is the 1st line of the output

Related: https://github.com/neovim/neovim/issues/7788
2018-01-02 18:28:17 +09:00
Junegunn Choi
3d33d4cd66 [fzf#vim#with_preview] Remove unnecessary -v flag 2018-01-02 18:25:30 +09:00
Jan Edmund Lazo
9036680e74 [fzf#vim#with_preview] Escape preview script path (#558)
Close: https://github.com/junegunn/fzf.vim/issues/554
2018-01-02 18:21:14 +09:00
Jan Edmund Lazo
02654656af [Tags] run perl for s:bin.tags (#559) 2018-01-02 18:14:48 +09:00
Junegunn Choi
009c58b481 Use $LINES instead of $FZF_PREVIEW_HEIGHT
Since 0.17.3, fzf exports $LINES and $COLUMNS to preview process.
FZF_PREVIEW_HEIGHT will be deprecated.
2017-12-09 23:22:24 +09:00
Junegunn Choi
11b7fb91e1 Decorate Vim 8 statusline
We used to decorate statusline only on Neovim, but we can do the same
for Vim 8.
2017-12-06 12:32:08 +09:00
Junegunn Choi
76926aa247 [Tags] Ignore optional semicolon after excmd in tag
Close #531
2017-12-03 05:28:58 +09:00
Niraj Thapaliya
d0042b9dee [[B]Commit] Fix preview command for fish shell (#518)
* Fish shell doesn't like <<<

Echo to pipe instead

* Only return the first match

Useful if the commit message has a project tracker id that looks
similar to a git commit hash
2017-11-24 13:18:55 +09:00