Browse Source

ix: only syntax highlight visible lines in --preview

pull/6/head
DanielFGray 4 years ago
parent
commit
67b7dd29cb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ix

+ 1
- 1
ix View File

@@ -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