Change few ranger configs
This commit is contained in:
parent
1c3fead787
commit
91e0031e8e
@ -221,9 +221,14 @@ map ,z shell apack %f.zip %f
|
||||
map ,d shell ~/scripts/pdf-delete-first-page.sh %f
|
||||
#+END_SRC
|
||||
|
||||
*** Convert PDF to PNG
|
||||
#+BEGIN_SRC conf
|
||||
map ,cp shell pdftoppm -png %f > $(echo %f | cut -f 1 -d '.' | sed 's/$/.png/')
|
||||
#+END_SRC
|
||||
|
||||
*** Magit Status
|
||||
#+BEGIN_SRC conf
|
||||
map ,gs shell emacsclient -create-frame --alternate-editor="" --eval '(magit-status)'
|
||||
map ,gs shell emacsclient -create-frame --alternate-editor="" -n --eval '(magit-status)'
|
||||
#+END_SRC
|
||||
|
||||
*** Upload with Tansfer.sh
|
||||
@ -236,6 +241,11 @@ map ,z shell apack %f.zip %f
|
||||
map ,o shell nohup pcmanfm %d &
|
||||
#+end_src
|
||||
|
||||
*** Open with Emacs
|
||||
#+begin_src conf
|
||||
map ,e shell emacsclient -create-frame --alternate-editor="" -n %f
|
||||
#+end_src
|
||||
|
||||
** Define keys for the browser
|
||||
*** Basic
|
||||
#+BEGIN_SRC conf
|
||||
@ -330,9 +340,9 @@ map ,z shell apack %f.zip %f
|
||||
map cd console cd%space
|
||||
|
||||
map gh cd ~
|
||||
map gm cd ~/MEGA/These
|
||||
map gm cd ~/Cloud/thesis
|
||||
map gp cd ~/Pictures
|
||||
map gd cd ~/Downloads
|
||||
map gc cd ~/.config/literate-dotfiles/
|
||||
#+END_SRC
|
||||
|
||||
*** TODO [#B] Open With
|
||||
@ -733,10 +743,7 @@ default_linemode devicons
|
||||
# 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 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 chromium, X, flag f = chromium -- "$@"
|
||||
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
|
||||
ext x?html?, has firefox, X, flag f = firefox -- "$@"
|
||||
ext x?html?, has elinks, terminal = elinks "$@"
|
||||
ext x?html?, has links2, terminal = links2 "$@"
|
||||
@ -756,6 +763,8 @@ default_linemode devicons
|
||||
!mime ^text, label editor, ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
|
||||
!mime ^text, label pager, ext xml|json|csv|tex|py|pl|rb|js|sh|php = "$PAGER" -- "$@"
|
||||
|
||||
ext org = emacsclient -create-frame --alternate-editor="" -n "$1"
|
||||
|
||||
ext 1 = man "$1"
|
||||
ext s[wmf]c, has zsnes, X = zsnes "$1"
|
||||
ext s[wmf]c, has snes9x-gtk,X = snes9x-gtk "$1"
|
||||
@ -818,9 +827,9 @@ default_linemode devicons
|
||||
|
||||
ext docx?, has catdoc, terminal = catdoc -- "$@" | "$PAGER"
|
||||
|
||||
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has wpp, X, flag f = wpp "$@"
|
||||
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has gnumeric, X, flag f = gnumeric -- "$@"
|
||||
ext sxc|xlsx?|xlt|xlw|gnm|gnumeric, has kspread, X, flag f = kspread -- "$@"
|
||||
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has wpp, X, flag f = wpp "$@"
|
||||
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@"
|
||||
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has soffice, X, flag f = soffice "$@"
|
||||
ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has ooffice, X, flag f = ooffice "$@"
|
||||
@ -839,9 +848,9 @@ default_linemode devicons
|
||||
mime ^image/gif, has qutebrowser, X, flag f = qutebrowser -- "$@"
|
||||
|
||||
ext xcf, X, flag f = gimp -- "$@"
|
||||
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
|
||||
mime ^image, has feh, X, flag f = feh --scale-down --auto-zoom --image-bg black -- "$@"
|
||||
mime ^image, has feh, X, flag f = feh --scale-down --auto-zoom -- "$@"
|
||||
mime ^image, has sxiv, X, flag f = sxiv -- "$@"
|
||||
mime ^image, has mirage, X, flag f = mirage -- "$@"
|
||||
mime ^image, has ristretto, X, flag f = ristretto "$@"
|
||||
mime ^image, has eog, X, flag f = eog -- "$@"
|
||||
@ -883,6 +892,7 @@ default_linemode devicons
|
||||
|
||||
has dragon-drag-and-drop, X, flag f = dragon-drag-and-drop -a -x "$@"
|
||||
#+END_SRC
|
||||
|
||||
* Ranger Commands
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle ~/.config/ranger/commands.py
|
||||
|
Loading…
Reference in New Issue
Block a user