Skip to content

Commit

Permalink
ranger: preview font files
Browse files Browse the repository at this point in the history
  • Loading branch information
majutsushi committed Aug 10, 2017
1 parent d72fbbd commit 632d1e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ranger/rifle.conf
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ ext tar|gz, has tar = tar vvxf "$@"

ext scen, X, flag f = scenario-editor -n "$@"

ext ttf|otf, has gnome-font-viewer, X = gnome-font-viewer "$@"
ext ttf|otf, has ftview, X = ftview -r 96 12 "$@"

#-------------------------------------------
# Misc
#-------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions ranger/scope.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ case "$path" in
*/cdr_*.log|*/localhost-cdr.log)
try ~/apps/list-cdrs/list-cdrs.sh "$path" && { dump; exit 0; }
;;
*.pcf.gz|*.ttf|*.otf)
try fc-query "$path" && { dump; exit 0; }
;;
esac

case "$extension" in
Expand Down

0 comments on commit 632d1e0

Please sign in to comment.