Looking for the name of some internal commands #1362
-
Hey, I am looking for something similar to |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
# update /tmp/selections.txt file whenever selection changes
map <space> :{{
toggle
down
&echo "$fx" > /tmp/selections.txt
}}
# select files according to the contents of /tmp/selections.txt
map gv %{{
lf -remote "send $id toggle $(xargs printf ' %q' < /tmp/selections.txt)"
}} That should hopefully be a good starting point for you. |
Beta Was this translation helpful? Give feedback.
-
Good idea, don't know why forget about such a solution. Very cool. |
Beta Was this translation helpful? Give feedback.
lf
doesn't keep track of past selections, but you can manually write the selections to a file whenever it is updated and then restore them afterwards:That should hopefully be a good starting point for you.