Browse Source

ix: only syntax highlight visible lines in --preview

pull/6/head
DanielFGray 6 years ago
parent
commit
67b7dd29cb
  1. 2
      ix

2
ix

@ -94,7 +94,7 @@ listPastes() { @@ -94,7 +94,7 @@ listPastes() {
getPastes "$(getUserName)" | fzf \
--inline-info --cycle \
--header='Ctrl-E = edit; Ctrl-V = view; Ctrl-D = delete' \
--preview="p={}; curl -s \"\${p## *}\" ${highlighter:+ | $highlighter}" \
--preview="p={}; curl -s \"\${p## *}\" | head -n\$LINES ${highlighter:+ | $highlighter}" \
--bind 'space:jump' \
--bind 'j:down' --bind 'k:up' \
--bind 'q:abort' \

Loading…
Cancel
Save