Added GPG aliases

This commit is contained in:
2018-12-07 05:06:04 -05:00
parent 2b55781ab8
commit e6acbe0648
8 changed files with 38 additions and 2 deletions

View File

@@ -164,6 +164,7 @@ set show_cursor false
# One of: size, natural, basename, atime, ctime, mtime, type, random
set sort natural
# set sort extension
# Additional sorting options
set sort_reverse false

View File

@@ -223,5 +223,7 @@ label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1"
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@"
label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
# ext gpg = pass edit -- "$1"
# The very last action, so that it's never triggered accidentally, is to execute a program:
mime application/x-executable = "$1"

View File

@@ -83,6 +83,13 @@ handle_extension() {
lynx -dump -- "${FILE_PATH}" && exit 5
elinks -dump "${FILE_PATH}" && exit 5
;; # Continue with next handler on failure
# htm|html|xhtml)
# # Preview as text conversion
# w3m -dump "${FILE_PATH}" && exit 5
# lynx -dump -- "${FILE_PATH}" && exit 5
# elinks -dump "${FILE_PATH}" && exit 5
# ;; # Continue with next handler on failure
esac
}