Skip to content

Commit

Permalink
Fix viu explicit stdin ("-") arg in ver > 0.*
Browse files Browse the repository at this point in the history
  • Loading branch information
smheidrich committed Sep 26, 2022
1 parent 5941d24 commit 3fac497
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion skim_unicode_table/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ SKIM_CMD="$SCRIPT_DIR/sk"
RENDER_GLYPH_CMD="$SCRIPT_DIR/render-glyph"
PRINT_TABLE_CMD="$SCRIPT_DIR/print-unicode-table"

if viu -V | grep 'viu 0'; then
viu_input_file_arg=""
else
viu_input_file_arg="-"
fi

$PRINT_TABLE_CMD \
| $SKIM_CMD -n 1,2,3,4,5,6,7 -d ' ' --with-nth 1,2 \
--preview='echo {1} | '"$RENDER_GLYPH_CMD"' | viu -w 32 ; echo {2..}'
--preview="echo {1} | '$RENDER_GLYPH_CMD' | viu -w 32 $viu_input_file_arg; echo {2..}"

0 comments on commit 3fac497

Please sign in to comment.