modern_lisp-machine/.config/lf/lfrc

35 lines
817 B
Plaintext
Raw Normal View History

2024-03-27 03:42:01 +00:00
set ifs "\n"
set preview true
set drawbox true
cmd q :quit
set previewer ~/.local/bin/lf/preview
set cleaner ~/.local/bin/lf/cleaner
set sortby name; set info
set sortby time; set info time
2024-06-01 05:00:40 +00:00
if %pwd == *'screenshots' {set sortby time; set info time; set reverse; set nodirfirst; } else {set sortby natural; set info ;}
# Share on telegram
cmd send ${{
wmctrl -x -a TelegramDesktop
telegram-desktop -sendpath \
$(for file in $fx; do readlink -f $file; done)
}}
map <c-s> : send <ret>
2024-03-27 03:42:01 +00:00
cmd copy_filename ${{
clean_filename=$(basename "$f")
clean_filename_no_ext="${clean_filename%.*}" # Remove extension
echo -n "$clean_filename_no_ext" | xclip -selection clipboard
}}
# Map a key to call the copy_filename function
2024-06-01 05:00:40 +00:00
map <c-e> : copy_filename <ret>
# Use C-S-g to go to the bottom/end