projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
48ba575
)
* .config/tridactyl/tridactylrc: Add bindings for watching videos in mpv.
author
Amin Bandali
<bandali@kelar.org>
Sun, 15 May 2022 18:47:28 +0000
(14:47 -0400)
committer
Amin Bandali
<bandali@kelar.org>
Fri, 20 May 2022 02:20:03 +0000
(22:20 -0400)
.config/tridactyl/tridactylrc
patch
|
blob
|
blame
|
history
diff --git
a/.config/tridactyl/tridactylrc
b/.config/tridactyl/tridactylrc
index
d08127f
..
bb717e3
100644
(file)
--- a/
.config/tridactyl/tridactylrc
+++ b/
.config/tridactyl/tridactylrc
@@
-25,6
+25,11
@@
bind ;<Space> fillcmdline_notrail
bind ;v hint -; video
bind ;v hint -; video
+command mpvmp4 js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('mpv --no-terminal --ytdl-format=mp4 ' + url))
+bind ;gv hint -W mpvmp4
+
+bind ;gV js tri.excmds.exclaim_quiet('mpv --no-terminal --ytdl-format=mp4 ' + document.location.href)
+
unbind <C-f>
set hintfiltermode vimperator-reflow
unbind <C-f>
set hintfiltermode vimperator-reflow