Added GPG aliases
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user