tridactyl/.tridactylrc
2018-05-17 22:16:55 +01:00

49 lines
1.4 KiB
Text

" 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
fixamo
" 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: