edit lf prompt, remove old comment
This commit is contained in:
parent
26cbbb5b7f
commit
ede7f8ca18
1 changed files with 1 additions and 41 deletions
|
@ -11,46 +11,6 @@ set previewer ~/.config/lf/preview
|
|||
set cleaner ~/.config/lf/clean
|
||||
# promptfmt is set in the on-cd command
|
||||
|
||||
# cmd open ${{
|
||||
# case "$(xdg-mime query filetype "$f")" in
|
||||
# */x-bzip-compressed-tar|*/x-compressed-tar|*/x-7z-compressed|*/vnd.rar|*/x-tar|*/zip|*/x-java-archive|*/x-xz|*/x-xz-compressed-tar|*/x-cd-image)
|
||||
# mntdir="$f-archivemount"
|
||||
# [ ! -d "$mntdir" ] && {
|
||||
# mkdir "$mntdir"
|
||||
# archivemount "$f" "$mntdir"
|
||||
# echo "$mntdir" >> "/tmp/__lf_archivemount_$id"
|
||||
# }
|
||||
# lf -remote "send $id cd \"$mntdir\""
|
||||
# lf -remote "send $id reload"
|
||||
# ;;
|
||||
# audio/*) mpv --audio-display=no $f ;;
|
||||
# video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;;
|
||||
# image/x-xcf) setsid -f gimp $f >/dev/null 2>&1 ;;
|
||||
# image/*) rotdir $f | grep -i "\.\(png\|jpg\|jpeg\|gif\|webp\|tif\|ico\)\(_large\)*$" |
|
||||
# setsid -f sxiv -aio 2>/dev/null | while read -r file; do
|
||||
# [ -z "$file" ] && continue
|
||||
# lf -remote "send select \"$file\""
|
||||
# lf -remote "send toggle"
|
||||
# done &
|
||||
# ;;
|
||||
# */vnd.djvu|*/pdf|*/postscript|*/epub*) setsid -f zathura $fx >/dev/null 2>&1 ;;
|
||||
# officedocument.wordprocessingml.document|application/vnd.oasis.opendocument.text) setsid -f lowriter $fx >/dev/null 2>&1 ;;
|
||||
# application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) localc $fx ;;
|
||||
# application/vnd.openxmlformats-officedocument.wordprocessingml.document|application/vnd.oasis.opendocument.text) setsid -f lowriter $fx >/dev/null 2>&1 ;;
|
||||
# application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|application/octet-stream|application/vnd.oasis.opendocument.spreadsheet|application/vnd.oasis.opendocument.spreadsheet-template) setsid -f localc $fx >/dev/null 2>&1 ;;
|
||||
# application/vnd.openxmlformats-officedocument.presentationml.presentation|application/vnd.oasis.opendocument.presentation-template|application/vnd.oasis.opendocument.presentation|application/vnd.ms-powerpoint) setsid -f loimpress $fx >/dev/null 2>&1 ;;
|
||||
# application/vnd.oasis.opendocument.graphics|application/vnd.oasis.opendocument.graphics-template) setsid -f lodraw $fx >/dev/null 2>&1 ;;
|
||||
# application/vnd.oasis.opendocument.formula) setsid -f lomath $fx >/dev/null 2>&1 ;;
|
||||
# application/vnd.oasis.opendocument.database) setsid -f lobase $fx >/dev/null 2>&1 ;;
|
||||
# esac
|
||||
# case $(file --mime-type "$(readlink -f $f)" -b) in
|
||||
# # text/csv) sc-im $fx ;;
|
||||
# text/*|application/json|inode/x-empty) $EDITOR $fx;;
|
||||
# application/pgp-encrypted) $EDITOR $fx ;;
|
||||
# # *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;;
|
||||
# esac
|
||||
# }}
|
||||
|
||||
cmd open $set -f; rifle -c $XDG_CONFIG_HOME/lf/rifle.conf -p 0 $fx; clear
|
||||
|
||||
cmd open-with ${{
|
||||
|
@ -137,7 +97,7 @@ cmd bulkrename $vidir
|
|||
cmd on-cd ${{
|
||||
DIR=$(zsh -c 'cd $PWD && source /home/luca/.config/zsh/configs/autogenerated/hashes && print -P "%3~"')
|
||||
printf "%b" "\033]0;$TERMINAL [$DIR] \007" > /dev/tty
|
||||
fmt="\033[34;1m%u\033[36m@\033[34m%h \033[35m[\033[0;1m$DIR/\033[33m%f\033[35m]\033[0m"
|
||||
fmt="\033[34;1m%u\033[36m@\033[34m%h \033[35m[\033[0;1m$DIR\033[35m]\033[32m » \033[33m%f\033[0m"
|
||||
lf -remote "send $id set promptfmt \"$fmt\""
|
||||
}}
|
||||
on-cd
|
||||
|
|
Loading…
Add table
Reference in a new issue