Krolyxon
Commit e8219bd

Branches

Refs →

dotfiles-x11e8219bd

added moveto function in lf

Author
krolyxon
Date
2022-07-17 22:42 +0530
Parent
f55f92f
Commit
e8219bd2a203ca0430d37e2eacf06ae86d63f311

+25 −4

3 files changed

  1. M .config/lf/lfrc +13 −2
  2. A .config/lf/mvdirs +7 −0
  3. M .local/share/vocab/words.txt +5 −2
M .config/lf/lfrc View
@@ -52,15 +52,25 @@ cmd delete ${{
5252 [ $ans = "y" ] && rm -rf -- $fx
5353 }}
5454
55+cmd moveto ${{
56+ clear; tput cup $(($(tput lines)/3)); tput bold
57+ set -f
58+ clear; echo "Move to where?"
59+ dest=$(cat ~/.config/lf/mvdirs | fzf )
60+ for x in $fx; do
61+ eval mv -iv \"$x\" \"$dest\"
62+ done &&
63+ notify-send "๐Ÿšš File(s) moved." "File(s) moved to $dest."
64+}}
65+
5566 cmd genwall "$1"
56โˆ’cmd bulkrename $vidir
5767
5868 # Bindings
5969 map <c-f> $lf -remote "send $id select \"$(fzf)\""
60โˆ’map J $lf -remote "send $id cd $(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)"
6170 map D delete
6271 map p paste
6372 map dd cut
73+map M moveto
6474 map yy copy
6575 map H top
6676 map E extract
@@ -97,4 +107,5 @@ map gc cd ~/.config
97107 map gr cd ~/code/repos
98108 map gv cd ~/vids/
99109 map gm cd ~/media/movies
110+map gM cd ~/media
100111 map gs cd ~/.local/bin
A .config/lf/mvdirs View
@@ -0,0 +1,7 @@
1+$HOME/dl
2+$HOME/dox
3+$HOME/music
4+$HOME/movies
5+$HOME/vids
6+$HOME/pix
7+$HOME/pix/ss
M .local/share/vocab/words.txt View
@@ -12,7 +12,7 @@ fate -> a power that is believed to control what happens in the future
1212 established -> accepted or followed by many people
1313 compelled -> forced to do
1414 abundant -> existing or occuring in large ammounts
15โˆ’bias -> a tendency to believe that some people,idias, etc are better than others useually results in treating some people unfairly
15+bias -> a tendency to believe that some people,idias, etc are better than others usually results in treating some people unfairly
1616 desperate -> feeling or showing a hopeless sense taht a situation is so bad as to be impossible to deal with
1717 iteration -> the repetition of a process or utterance
1818 cope -> deal with something difficult
@@ -65,7 +65,7 @@ derive -> obtain something from (a specified source)
6565 sceptical -> not easily convinced; having doubts or reservations
6666 psyched -> excited and full of anticipation
6767 faucet -> a tap, "nal" in hindi
68โˆ’duress -> threats, violence, constrains, or other actions used to coerce someone into doing something against theri will or better judgement
68+duress -> threats, violence, constrains, or other actions used to coerce someone into doing something against their will or better judgement
6969 detriment -> the state of being harmed or damaged
7070 alleviate -> make (suffering, deficiency, or a problem) less severe
7171 sentient -> able to perceive or feel things
@@ -80,3 +80,6 @@ analogy -> a comparison between one thing and anotherm, typicall for the purpose
8080 contagious -> spread from one person or orgranism to another, typically by direct contact
8181 leconic -> a person who uses very few words
8282 petulant -> a person who is rude and acts childish
83+monologue -> a long speech by one actor in a play or a film
84+apprehension -> anziety or fear that something bad or unpleasant will happen
85+reprise -> a repeated passage in music