summary refs log tree commit diff
path: root/.config/tridactyl/tridactylrc
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-09-27 17:38:39 +0200
committerRobert Günzler <r@gnzler.io>2026-09-27 17:38:39 +0200
commit0860db73ae6fd9a6f6347219d820bf026a6b8b91 (patch)
tree11318c3670d1c32c5aa0bf404c22fba3bf63fc53 /.config/tridactyl/tridactylrc
parent4e34cbf9673aeaba252e01df554a0d204e83c5e2 (diff)
downloaddotfiles-master.tar.gz
Automated-commit-by: dots
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '.config/tridactyl/tridactylrc')
-rw-r--r--.config/tridactyl/tridactylrc9
1 files changed, 6 insertions, 3 deletions
diff --git a/.config/tridactyl/tridactylrc b/.config/tridactyl/tridactylrc
index 526b7eb..d74d7fa 100644
--- a/.config/tridactyl/tridactylrc
+++ b/.config/tridactyl/tridactylrc
@@ -21,19 +21,22 @@ unbind <C-f>
 unbind <C-a>
 unbind --mode=ex <C-a> " select all in cmdline
 unbind --mode=browser <C-,>
+unbind <A-o>
 
 bind n findnext 1
 bind N findnext -1
 
 " hint: mpv/video
-set exaliases.mpvsafe js -p tri.excmds.shellescape(JS_ARG).then(u => tri.excmds.exclaim_quiet(`play-mpv ${u}`))
+set exaliases.mpvsafe js -p tri.excmds.shellescape(JS_ARG).then(u => tri.excmds.exclaim_quiet(`play-mpv '${u}'`))
 bind gv composite get_current_url | mpvsafe
 bind yv composite getclip | mpvsafe
 bind ;v hint -W mpvsafe
 
-"bind ;e hint -hW js -p tri.excmds.exclaim_quiet(`${tri.config.get('editorcmd')} /tmp/tridactl.${document.location.hostname}.txt '+normal!i${JS_ARG}'`)
+alias editor_rm composite editor | jsb -p tri.native.run(`rm -f '${JS_ARG[0]}'`)
+bind --mode=insert <C-i> editor_rm
+bind --mode=input <C-i> editor_rm
 
-set exaliases.imgsafe js -p tri.excmds.shellescape(JS_ARG).then(u => tri.excmds.exclaim_quiet(`fyi 'tridactyl::mvi' ${u} && mvi ${u}`))
+set exaliases.imgsafe mpvsafe
 bind ;i composite hint -Jpipe img | js -p JS_ARG.src | imgsafe
 
 bind gp composite get_current_url | winopen -popup