summaryrefslogtreecommitdiff
path: root/lf/lfrc
diff options
context:
space:
mode:
Diffstat (limited to 'lf/lfrc')
-rw-r--r--lf/lfrc23
1 files changed, 17 insertions, 6 deletions
diff --git a/lf/lfrc b/lf/lfrc
index 3bc7b72..9266f8d 100644
--- a/lf/lfrc
+++ b/lf/lfrc
@@ -9,16 +9,25 @@ set ignorecase true
# Custom Functions
cmd open ${{
- case $(file --mime-type "$f" -bL) in
- text/*|application/json) $EDITOR "$f";;
- video/*) mpv "$f";;
- audio/*) mpv "$f";;
+ case $(echo -n $f | rev | cut -d'.' -f1 | rev) in
+ jnlp)
+ javaws "$f"
+ ;;
+ *)
+ case $(file --mime-type "$f" -bL) in
+ text/*|application/json) $EDITOR "$f" ;;
+ video/*) mpv "$f" ;;
+ audio/*) mpv "$f" ;;
application/pdf) zathura "$f" ;;
image/*) nsxiv "$f" ;;
*) xdg-open "$f" ;;
- esac
+ esac
+ ;;
+ esac
}}
+cmd execute ${{ exec "$f" }}
+
cmd mkdir ${{
printf "Directory Name: "
read ans
@@ -281,7 +290,8 @@ map dl dlfile
map ss stripspace
# Basic Functions
-map . set hidden!
+map .. set hidden!
+map ./ execute
map DD delete
map p paste
map x cut
@@ -303,6 +313,7 @@ map C clear
map U unselect
# Movement
+map g. cd "/home/zachir"
## PATHS
map gE. cd "/etc"
map gO. cd "/opt"