modern_lisp-machine/.config/lf/lfrc

36 lines
747 B
Plaintext

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 time; set reverse
cmd epub ${{
clean_filename=$(basename "$f")
~/.config/lf/epub_thumbnailer.sh "$clean_filename" 256
}}
map - : epub <ret>
if %pwd == *'screenshots' {set sortby time; set info time; set reverse; set nodirfirst; } else {set sortby natural; set info ;}
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
map <c-e> : copy_filename <ret>
# Use C-S-g to go to the bottom/end