Ranger: add key bindings to upload to transfer.sh

This commit is contained in:
Thomas Dehaeze 2019-03-26 12:08:49 +01:00
parent bc089fc6fe
commit c49535a51f
2 changed files with 10 additions and 5 deletions

View File

@ -208,7 +208,7 @@ alias travel scout -aefiklst
** Some Custom Keybindings
*** Extract
#+BEGIN_SRC conf
map ,x shell extract %f
map ,x shell extract %f
#+END_SRC
*** TODO Compress
@ -218,12 +218,17 @@ map ,z shell tar -cvzf %f.tar.gz %f
*** Delete first page of pdf
#+BEGIN_SRC conf
map ,d shell ~/scripts/pdf-delete-first-page.sh %f
map ,d shell ~/scripts/pdf-delete-first-page.sh %f
#+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="" --eval '(magit-status)'
#+END_SRC
*** Upload with Tansfer.sh
#+BEGIN_SRC conf
map ,t shell curl --progress-bar --upload-file %f https://transfer.sh/$(basename $1) | xclip -in -selection clipboard;
#+END_SRC
** Define keys for the browser

View File

@ -45,7 +45,7 @@ rofi.separator-style: solid
* Rofi Menu Config
:PROPERTIES:
:header-args: :tangle ~/.config/rofimenu/rofimenu.config
:header-args+: :comments both :mkdirp yes
:header-args+: :comments none :mkdirp yes
:END:
#+BEGIN_SRC conf
@ -289,7 +289,7 @@ activate_category() { # shows drun modi filtered with category. If no command se
* Theme
:PROPERTIES:
:header-args: :tangle ~/.config/rofimenu/rofimenu.rasi
:header-args+: :comments both :mkdirp yes
:header-args+: :comments none :mkdirp yes
:END:
#+BEGIN_SRC conf