Skip to content
Snippets Groups Projects
Commit fd6725f5 authored by James Vasile's avatar James Vasile
Browse files

Add tridactyl config file

parent c6145974
No related branches found
No related tags found
No related merge requests found
" vim: filetype=vim
bind <C-h> tabprev
bind <C-l> tabnext
" h goes back, l goes forward
bind h back
bind l forward
" H and L do scrollpx, though I don't use these.
bind H scrollpx
bind L scrollpx
" F for hints, f for hints that open background tabs
"bind f hint -b
"bind F hint
" This bit of javascript launches jetzt, a speed-reading popup, or at least it tries to. I copied the javascript from the bookmarklet, but it doens't work :/
bind gs js (function() {var addStyle = function(url) {var style = document.createElement('link');style.rel = 'stylesheet';style.type = 'text/css';style.href = url;document.head.appendChild(style);};var addScript = function(url,cb) {var script = document.createElement('script');script.src = url;if(cb) {script.onload = cb;}document.body.appendChild(script);};if (typeof window.jetzt === 'undefined') {var cb = function() {window.jetzt.select();};addStyle('https://ds300.github.io/jetzt/jetzt.css');addScript('https://ds300.github.io/jetzt/jetzt-solid.min.js',cb);} else {window.jetzt.select();}})(); window.jetzt.select();
" Use emacs as our editor
set editorcmd /usr/local/bin/emacsclient
" The default jump of 10 is a bit much.
bind j scrollline 7
bind k scrollline -7
" Don't run Tridactyl on some web sites because it doesn't work well, or
" because the web site has its own keybindings.
autocmd DocStart mail.google.com mode ignore
" Sometimes the status bar in the bottom left corner overlaps the Tridactyl
" command line, so set an option to move the status bar to the right.
guiset_quiet hoverlink right
" New reddit is bad
autocmd DocStart ^http(s?)://www.reddit.com/r/ js tri.excmds.urlmodify("-t", "www", "old")
" autocmd DocStart ^http(s?)://www.amazon.com js tri.excmds.urlmodify("-t", "smiles", "smile")
" I have no idea what this does
set profiledir /home/james/.mozilla/firefox/ztp7dj8q.default-release
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment