blob: b196ae240ad410df92b31d5ce2f962dfc8b2e4ca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
" vim: ft=vim
" sanitise tridactyllocal tridactylsync
" rebind j/k for TST
reset j
reset k
bind J tabnext
bind K tabprev
set browser firefox-nightly
set allowautofocus false
set searchengine duckduckgo
set tabopencontaineraware true
set editorcmd alacritty -t tridactyledit -e nvim
set historyresults 50
set newtabfocus page
set allowautofocus false
colors r
" remove annoying binds
unbind s
unbind <C-f>
unbind <C-a>
unbind <F1>
bind <Space>tw fillcmdline tabopen -c wee
bind <Space>tp fillcmdline tabopen -c pers
bind <Space>tb fillcmdline tabopen -c bank
bind <Space>ts fillcmdline tabopen -c shop
bind <space>s fillcmdline tabopen search
bind <space>n fillcmdline nativeopen
bind <C-o> back
bind <C-i> forward
bind / fillcmdline find
bind n findnext 1
bind N findnext -1
bind <Space>, nohlsearch
" select all in cmdline
unbind --mode=ex <C-a>
bindurl news.ycombinator.com ;c hint -fr \d+\scomments
bindurl news.ycombinator.com f hint -c [class*="storylink"]
" better result hinting on ddg
bindurl duckduckgo.com f hint -c [class*="result__url"]
bindurl duckduckgo.com F hint -b -c [class*="result__url"]
" hint: mpv/video
bind gv js tri.native.run(`sh -c "notify-send 'tridactly > mpv' '${document.location.href}' && mpv '${document.location.href}'"`)
bind yv composite getclip | js tri.native.run(`sh -c "notify-send 'tridactly > mpv' '${JS_ARG}' && mpv '${JS_ARG}'"`)
bind ;v hint -W js -p tri.native.run(`sh -c "notify-send 'tridactly > mpv' '${JS_ARG}' && mpv '${JS_ARG}'"`)
bind ;x hint -W js -p tri.native.run(`sh -c "notify-send 'tridactly > xap' '${JS_ARG}' && xap add -n '${JS_ARG}'"`)
" bind ;v hint -W !s mpv --profile=cache
" hint: other
bind ;i hint -W js -p tri.native.run(`sh -c "notify-send 'tridactly > imv' '${JS_ARG}' && imv '${JS_ARG}'"`)
bind ;e hint -W js -p tri.native.run(`sh -c "notify-send 'tridactly > vim' '${JS_ARG}' && alacritty --class '__floating-tridactyledit' -e nvim '${JS_ARG}'"`)
bind gp composite get_current_url | fillcmdline winopen -popup
bind g1 tab 2
bind g2 tab 3
bind g3 tab 4
bind g4 tab 5
" some autocommands that rewrite URLs
" autocmd DocStart www.amazon.co.uk js tri.excmds.urlmodify("-t", "www", "smile")
" autocmd DocStart golang.org/pkg js tri.excmds.urlmodify("-t", "golang.org/pkg", "godoc.org")
seturl typeform.com mode ignore
seturl overleaf.com mode ignore
seturl jel.ly.fish mode ignore
seturl gather.town mode ignore
seturl typingclub.com mode ignore
" fix youtube
seturl youtube.com noiframe true
unbindurl youtube.com f
bindurl youtube.com h hint
bindurl youtube.com T tabopen ddg.gg
bindurl youtube.com C recontain personal
" fix reddit
seturl reddit.com allowautofocus true
unbindurl reddit.com <Escape>
unbindurl reddit.com j
unbindurl reddit.com k
unbindurl reddit.com n
unbindurl reddit.com p
unbindurl reddit.com a
unbindurl reddit.com z
unbindurl reddit.com c
" unbindurl reddit.com r
unbindurl reddit.com s
unbindurl reddit.com h
unbindurl reddit.com x
unbindurl reddit.com l
unbindurl 4chan.org t
unbindurl 4chan.org T
unbindurl 4chan.org j
unbindurl 4chan.org k
unbindurl 4chan.org x
unbindurl 4chan.org B
unbindurl 4chan.org G
set leavegithubalone false
set blacklistkeys ["/","<Space>",";"]
|