mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
rifle changes, newsboat, open new st with nt
This commit is contained in:
parent
a0164e6270
commit
bb71a44ac6
2 changed files with 4 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue