vifm: Obey XDG Trash directory
Moved trash directory vifm uses from its own data location to the one proposed by XDG specification. Essentially moves it to `.local/share/Trash`.
This commit is contained in:
parent
62f680ecd3
commit
176a4a233d
2 changed files with 21 additions and 8 deletions
|
@ -102,3 +102,10 @@ Anthropocene
|
||||||
ecotourism
|
ecotourism
|
||||||
legitimation
|
legitimation
|
||||||
wellbeing
|
wellbeing
|
||||||
|
harkens
|
||||||
|
Sossusvlei
|
||||||
|
Kulala
|
||||||
|
reframed
|
||||||
|
dichotomized
|
||||||
|
presentational
|
||||||
|
dichotomization
|
||||||
|
|
|
@ -30,6 +30,7 @@ set syscalls
|
||||||
" I recommend not changing this until you are familiar with vifm.
|
" I recommend not changing this until you are familiar with vifm.
|
||||||
" This probably shouldn't be an option.
|
" This probably shouldn't be an option.
|
||||||
set trash
|
set trash
|
||||||
|
set trashdir=$XDG_DATA_HOME/Trash
|
||||||
|
|
||||||
" This is how many directories to store in the directory history.
|
" This is how many directories to store in the directory history.
|
||||||
set history=100
|
set history=100
|
||||||
|
@ -39,7 +40,7 @@ set nofollowlinks
|
||||||
|
|
||||||
" With this option turned on you can run partially entered commands with
|
" With this option turned on you can run partially entered commands with
|
||||||
" unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te<tab>).
|
" unambiguous beginning using :! (e.g. :!Te instead of :!Terminal or :!Te<tab>).
|
||||||
" set fastrun
|
set fastrun
|
||||||
|
|
||||||
" Natural sort of (version) numbers within text.
|
" Natural sort of (version) numbers within text.
|
||||||
set sortnumbers
|
set sortnumbers
|
||||||
|
@ -123,7 +124,7 @@ mark v ~/media/videos/
|
||||||
mark n ~/documents/notes/
|
mark n ~/documents/notes/
|
||||||
mark N ~/Nextcloud/
|
mark N ~/Nextcloud/
|
||||||
mark l ~/documents/library/academia/pdf/
|
mark l ~/documents/library/academia/pdf/
|
||||||
mark t ~/.local/share/vifm/Trash/
|
mark t ~/.local/share/Trash/
|
||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
" Commands {{{
|
" Commands {{{
|
||||||
|
@ -393,20 +394,25 @@ fileviewer *.[1-8] man ./%c | col -b
|
||||||
|
|
||||||
" Gif
|
" Gif
|
||||||
filextype *.gif
|
filextype *.gif
|
||||||
\ {Loop} mpv --loop=inf %f %i &,
|
\ {Loop}
|
||||||
|
\ mpv --loop=inf %f %i &,
|
||||||
|
fileviewer *.gif
|
||||||
|
\ vifmimg draw %px %py %pw %ph %c
|
||||||
|
\ %pc
|
||||||
|
\ vifmimg clear
|
||||||
|
|
||||||
" Images
|
" Images
|
||||||
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
filextype *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
||||||
\ {View in sxiv}
|
\ {View in sxiv}
|
||||||
\ sxiv %f,
|
\ sxiv %f,
|
||||||
|
\ {View in feh}
|
||||||
|
\ feh -FZ %d --start-at %d/%c 2>/dev/null
|
||||||
\ {View in gpicview}
|
\ {View in gpicview}
|
||||||
\ gpicview %c,
|
\ gpicview %c,
|
||||||
\ {View in shotwell}
|
|
||||||
\ feh,
|
|
||||||
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
fileviewer *.bmp,*.jpg,*.jpeg,*.png,*.gif,*.xpm
|
||||||
\ vifmimg draw %px %py %pw %ph %c
|
\ vifmimg draw %px %py %pw %ph %c
|
||||||
\ %pc
|
\ %pc
|
||||||
\ vifmimg clear
|
\ vifmimg clear
|
||||||
|
|
||||||
" OpenRaster
|
" OpenRaster
|
||||||
filextype *.ora
|
filextype *.ora
|
||||||
|
|
Loading…
Reference in a new issue