* .config/tridactyl/tridactylrc: Add bindings for watching videos in mpv.
[~bandali/configs] / .config / tridactyl / tridactylrc
CommitLineData
ca3a844a
AB
1bind n scrollline 2
2bind p scrollline -2
3
4bind 0 scrollto 0 x
5bind - scrollto 100 x
6
7bind P tabprev
8bind N tabnext
9
10bind d scrollpage 0.5
11bind u scrollpage -0.5
12unbind <C-d>
13unbind <C-u>
14
15bind x tabclose
16bind X undo
17bind <C-S> stop
18
19bind gd tabduplicate
20bind gw tabdetach
21
22bind O fillcmdline bmarks
23
24bind ;<Space> fillcmdline_notrail
25
8d039a87
AB
26bind ;v hint -; video
27
c4c2ff4e
AB
28command mpvmp4 js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('mpv --no-terminal --ytdl-format=mp4 ' + url))
29bind ;gv hint -W mpvmp4
30
31bind ;gV js tri.excmds.exclaim_quiet('mpv --no-terminal --ytdl-format=mp4 ' + document.location.href)
32
ca3a844a
AB
33unbind <C-f>
34
35set hintfiltermode vimperator-reflow
36set hintnames numeric
37set urlparenttrailingslash false
38
39set browser abrowser
40" set newtab https://bandali.eu.org
41
42seturl warrior.uwaterloo.ca noiframe true
43
44" autocmd DocStart www.reddit.com js tri.excmds.urlmodify("-t", "www", "old")