forked from tridactyl/tridactyl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tridactylrc
48 lines (35 loc) · 1.37 KB
/
.tridactylrc
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
" bovine3dom's dogfood
"
" Move this to $XDG_CONFIG_DIR/tridactyl/tridactylrc (that's
" ~/.config/tridactyl/tridactylrc to mere mortals) or ~/.tridactylrc and
" install the native messenger (:installnative in Tridactyl). Run :source to
" get it in the browser, or just restart.
" NB: If you want "vim-like" behaviour where removing a line from
" here makes the setting disappear, uncomment the line below.
"sanitise tridactyllocal tridactylsync
"
" Binds
"
" Comment toggler for Reddit and Hacker News
bind ;c hint -c [class*="expand"],[class="togg"]
"
" Misc settings
"
" set editorcmd to suckless terminal, or use the defaults on other platforms
js tri.browserBg.runtime.getPlatformInfo().then(os=>{const editorcmd = os!="linux" ? "st vim" : "auto"; tri.config.set("editorcmd", editorcmd)})
" Sane hinting mode
set hintfiltermode vimperator-reflow
set hintchars 4327895610
" Make Tridactyl work on more sites at the expense of some security
set csp clobber
" Make quickmarks for the sane Tridactyl issue view
quickmark t https://github.com/cmcaine/tridactyl/issues?utf8=%E2%9C%93&q=sort%3Aupdated-desc+
"
" URL redirects
"
" New reddit is bad
autocmd DocStart www.reddit.com urlmodify -t www old
" Mosquito nets won't make themselves
autocmd DocStart www.amazon.co.uk urlmodify -t www smile
" This will have to do until someone writes us a nice syntax file :)
" vim: set filetype=vim: