11 Commits

Author SHA1 Message Date
Junegunn Choi
76669c3c1d Deprecate preview.rb 2019-12-22 18:11:18 +09:00
Miguel Madrid Mencía
9b50e2fd5f Fix preview of symbolic links (#739) 2019-02-21 10:42:10 +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
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
Jan Edmund Lazo
b51382fe9e [fzf#vim#preview] Use ruby in Windows if available (#471)
Close #459
2017-10-22 22:50:12 +09:00
Junegunn Choi
d99169da2d Use FZF_PREVIEW_HEIGHT if available. Requires fzf 0.16.7.
Close #361
2017-04-30 12:06:41 +09:00
Blaž Hrastnik
4f00962a81 Add support for the rouge highlighter. (#336)
https://github.com/jneen/rouge
2017-03-18 02:07:06 +09:00
Junegunn Choi
f54ec7caf1 Do not preview binary files 2017-01-23 10:28:08 +09:00
Junegunn Choi
abdf894edf [fzf#vim#with_preview] Expand relative path
Close #261
2016-12-08 13:30:06 +09:00
Junegunn Choi
9ce2c2179f Add fzf#vim#with_preview function for previewing search result
Close #225
2016-11-26 14:11:27 +09:00