From bb71a44ac6e116afbff7e38dfa36b0310c2a4d6d Mon Sep 17 00:00:00 2001 From: David Chen Date: Fri, 21 Feb 2020 11:32:33 -0800 Subject: [PATCH] rifle changes, newsboat, open new st with `nt` --- ranger/rifle.conf | 7 ++----- zsh/zshrc | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ranger/rifle.conf b/ranger/rifle.conf index 82e8f4a..6cd4a33 100755 --- a/ranger/rifle.conf +++ b/ranger/rifle.conf @@ -54,9 +54,6 @@ # Rarely installed browsers get higher priority; It is assumed that if you # install a rare browser, you probably use it. Firefox/konqueror/w3m on the # other hand are often only installed as fallback browsers. -ext html = nvim "$@" -ext org = nvim "$@" -ext dart = nvim "$@" #ext x?html?, has surf, X, flag f = surf -- file://"$1" #ext x?html?, has vimprobable, X, flag f = vimprobable -- "$@" #ext x?html?, has vimprobable2, X, flag f = vimprobable2 -- "$@" @@ -90,7 +87,7 @@ ext dart = nvim "$@" # Define the "editor" for text files as first action mime ^text, label editor = ${VISUAL:-$EDITOR} -- "$@" mime ^text, label pager = "$PAGER" -- "$@" -!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@" +!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|dart|html|org = ${VISUAL:-$EDITOR} -- "$@" !mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" ext 1 = man "$1" @@ -253,7 +250,7 @@ label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1" # Define the editor for non-text files + pager as last action !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask -label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ${VISUAL:-$EDITOR} -- "$@" +label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|dart|html|org = ${VISUAL:-$EDITOR} -- "$@" label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@" # The very last action, so that it's never triggered accidentally, is to execute a program: diff --git a/zsh/zshrc b/zsh/zshrc index 1b79bc9..d573829 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -42,6 +42,8 @@ alias gs='git config credential.helper store' alias bat='sudo tlp bat' alias ac='sudo tlp ac' alias gy='git-yolo' +alias nb='newsboat -r' +alias nt="sh -c 'cd $(pwd); st' > /dev/null 2>&1 &" bindkey -v bindkey -M vicmd "k" vi-insert