m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 00:53:42 -05:00

Implement flag for preserving whitespace around field (#1242)

This commit is contained in:
ZDNoFYVe
2018-03-30 02:47:46 +00:00
committed by Junegunn Choi
parent 9ff33814ea
commit 43345fb642
3 changed files with 75 additions and 17 deletions

View File

@@ -285,6 +285,9 @@ was made) individually quoted.
e.g. \fBfzf --multi --preview='head -10 {+}'\fR
\fBgit log --oneline | fzf --multi --preview 'git show {+1}'\fR
When using a field index expression, leading and trailing whitespace is stripped
from the replacement string. To preserve the whitespace, use the \fBs\fR flag.
Also, \fB{q}\fR is replaced to the current query string.
Note that you can escape a placeholder pattern by prepending a backslash.