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 : copy_filename