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
" General Setting
set update.lastchecktime 1670274234332
set configversion 2.0
set editorcmd /opt/homebrew/bin/neovide
set smoothscroll true
" vimperator hint mode
set hintfiltermode vimperator-reflow
set hintchars 1234567890
" open in safari
command safari composite get_current_url | shellescape | !s open -a Safari | tabclose
" only hint search results on DDG
bindurl ^https://duckduckgo.com f hint -Jc [data-testid="result-title-a"]
bindurl ^https://duckduckgo.com F hint -Jbc [data-testid="result-title-a"]
" only hint search results on Kagi
bindurl ^https://kagi.com f hint -Jc [class*="_0_URL"]
bindurl ^https://kagi.com F hint -Jbc [class*="_0_URL"]
bindurl ^https://www.instapaper.com/hello2 f hint -Jc button[type="submit"]
" make d take you to the left (I find it much less confusing)
" bind d composite tabprev; tabclose #
" bind D tabclose
" binds
bind j scrollline 3
bind k scrollline -3
bind <C-n> tabnext
bind <C-p> tabprev
bind gR reader --tab
" Nuke Tridactyl settings on exit (there's a bug if this is done
" in the rc file) so that this is the source of truth.
" https://github.com/tridactyl/tridactyl/issues/1409
bind ZZ composite sanitise tridactyllocal tridactylsync; qall
" ignore modes
autocmd DocStart gisnep.com mode ignore
autocmd DocStart minutecryptic.com mode ignore
autocmd DocStart nytimes.com/crosswords mode ignore
" new reddit is bad
" autocmd DocStart ^http(s?)://www.reddit.com js tri.excmds.urlmodify("-t", "www", "old")
" set auconcreatecontainer true
" https://github.com/tridactyl/tridactyl/issues/951
set autocontainmode relaxed
autocontain -s amazon\.com Shopping
autocontain -s bsky\.app Social
autocontain -s facebook\.com Facebook
autocontain -s instagram\.com Facebook
autocontain -s linkedin\.com Social
autocontain -s myworkday\.com Work
autocontain -s okta\.com Work
autocontain -s youtube\.com Google
" github
" https://docs.github.com/en/get-started/using-github/keyboard-shortcuts
unbindurl github.com s " focus the search bar
" unbindurl github.com t " activate the file finder
" gmail
" https://support.google.com/mail/answer/6594?hl=en
" https://gist.github.com/dradetsky/12b1e1aba4b699240b3e4ff266bdf3c8
" actions
unbindurl mail.google.com x " select conversation
unbindurl mail.google.com e " archive conversation
unbindurl mail.google.com s " toggle star/rotate among superstars
unbindurl mail.google.com ! " report as spam
unbindurl mail.google.com # " delete
" archive conversation and go previous/next
bindurl mail.google.com/mail ] js \
[...']'].forEach(c => document.dispatchEvent(new KeyboardEvent('keydown',{key: c})))
bindurl mail.google.com/mail [ js \
[...'['].forEach(c => document.dispatchEvent(new KeyboardEvent('keydown',{key: c})))
" jumping
bindurl mail.google.com/mail gi js \
[...'gi'].forEach(c => document.dispatchEvent(new KeyboardEvent('keydown',{key: c})))
" navigation
unbindurl mail.google.com j " older conversation
unbindurl mail.google.com k " newer conversation
unbindurl mail.google.com o " open conversation
" linear
unbindurl linear.app s
" youtube
unbindurl youtube.com j " back 10s
unbindurl youtube.com l " forward 10s
unbindurl docs.rs s " focus the search bar
" vim: set filetype=tridactyl