Skip to content

Commit ec249f1

Browse files
committed
feat(cli): fzf CTRL-T preview config
1 parent e7fbd6e commit ec249f1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

root/private_dot_config/fzf/fzf.sh.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export FZF_CTRL_T_COMMAND=
4747
\\) \
4848
-print 2> /dev/null | cut -b3-"
4949
{{- end }}
50+
export FZF_CTRL_T_OPTS='--preview "cat {} | head -$FZF_PREVIEW_LINES" --bind "?:toggle-preview"'
5051

5152

5253
# ------------------------------------------------------------------------

0 commit comments

Comments
 (0)