Add .config/lf/lfrc

main
千住柱間 2024-03-27 03:42:01 +00:00
parent d88a217aba
commit 58d63302a3
1 changed files with 19 additions and 0 deletions

19
.config/lf/lfrc Normal file
View File

@ -0,0 +1,19 @@
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
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>