From ef1c816284cb53af5f274bdc9dfc2789b90804f9 Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Tue, 4 Feb 2020 02:05:33 +0100 Subject: [PATCH] Added Chinese Characters --- config/.Xdefaults | 2 +- config/.config/ranger/rifle.conf | 43 ++++------------------------ config/.local/share/ranger/bookmarks | 2 +- vim/.vim/plugin/basics.vim | 1 + 4 files changed, 8 insertions(+), 40 deletions(-) diff --git a/config/.Xdefaults b/config/.Xdefaults index e6a7007..bd15f8b 100644 --- a/config/.Xdefaults +++ b/config/.Xdefaults @@ -1,6 +1,6 @@ ! urxvt ! Fonts -urxvt*font: xft:Hack Nerd Font Mono:style=Regular:size=11:hinting=full, xft:DejaVu Sans Mono for Powerline:size=11 +urxvt*font: xft:Hack Nerd Font Mono:style=Regular:size=11:hinting=full, xft:DejaVu Sans Mono for Powerline:size=11,SourceHanSans-Regular ! Behavior urxvt*scrollBar: false diff --git a/config/.config/ranger/rifle.conf b/config/.config/ranger/rifle.conf index e17406d..f95ee2b 100644 --- a/config/.config/ranger/rifle.conf +++ b/config/.config/ranger/rifle.conf @@ -1,44 +1,11 @@ -#------------------------------------------- -# Websites -#------------------------------------------- -# 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 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 -- "$@" -ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@" -ext x?html?, has dwb, X, flag f = dwb -- "$@" -ext x?html?, has jumanji, X, flag f = jumanji -- "$@" -ext x?html?, has luakit, X, flag f = luakit -- "$@" -ext x?html?, has uzbl, X, flag f = uzbl -- "$@" -ext x?html?, has uzbl-tabbed, X, flag f = uzbl-tabbed -- "$@" -ext x?html?, has uzbl-browser, X, flag f = uzbl-browser -- "$@" -ext x?html?, has uzbl-core, X, flag f = uzbl-core -- "$@" -ext x?html?, has midori, X, flag f = midori -- "$@" -ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@" -ext x?html?, has chromium, X, flag f = chromium -- "$@" -ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@" -ext x?html?, has opera, X, flag f = opera -- "$@" -ext x?html?, has firefox, X, flag f = firefox -- "$@" -ext x?html?, has seamonkey, X, flag f = seamonkey -- "$@" -ext x?html?, has iceweasel, X, flag f = iceweasel -- "$@" -ext x?html?, has epiphany, X, flag f = epiphany -- "$@" -ext x?html?, has konqueror, X, flag f = konqueror -- "$@" -ext x?html?, has elinks, terminal = elinks "$@" -ext x?html?, has links2, terminal = links2 "$@" -ext x?html?, has links, terminal = links "$@" -ext x?html?, has lynx, terminal = lynx -- "$@" -ext x?html?, has w3m, terminal = w3m "$@" - #------------------------------------------- # Misc #------------------------------------------- # 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|rs|go = ${VISUAL:-$EDITOR} -- "$@" -!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go = "$PAGER" -- "$@" +!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go|html = ${VISUAL:-$EDITOR} -- "$@" +!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go|html = "$PAGER" -- "$@" ext 1 = man "$1" ext s[wmf]c, has zsnes, X = zsnes "$1" @@ -200,9 +167,9 @@ label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1" 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|rs|go = ask -label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go = ${VISUAL:-$EDITOR} -- "$@" -label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go = "$PAGER" -- "$@" + !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go|html = ask +label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go|html = ${VISUAL:-$EDITOR} -- "$@" +label pager, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php|rs|go|html = "$PAGER" -- "$@" # The very last action, so that it's never triggered accidentally, is to execute a program: mime application/x-executable = "$1" diff --git a/config/.local/share/ranger/bookmarks b/config/.local/share/ranger/bookmarks index 1334a59..acb617f 100644 --- a/config/.local/share/ranger/bookmarks +++ b/config/.local/share/ranger/bookmarks @@ -9,4 +9,4 @@ t:/home/tuan/Templates w:/home/tuan/workspace_l/Projects k:/home/tuan/Documents/Protokolle/FSE q:/home/tuan/.nextcloud/Quick Drop -':/home/tuan/.vim/plugged +':/home/tuan/.dotfiles diff --git a/vim/.vim/plugin/basics.vim b/vim/.vim/plugin/basics.vim index a827daf..6b940e6 100644 --- a/vim/.vim/plugin/basics.vim +++ b/vim/.vim/plugin/basics.vim @@ -8,6 +8,7 @@ set smartcase set incsearch set hlsearch set nospell +set hidden " Tab behavior set expandtab