summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorChristian Krinitsin <code@krinitsin.xyz>2024-12-29 10:14:36 +0100
committerChristian Krinitsin <code@krinitsin.xyz>2024-12-29 10:14:36 +0100
commitb433dc40d04413d74a6bb419734f9c5857b8a661 (patch)
tree284ee1ad0d1b9f2faefa90f40ba6eeaf1d7b42b9
parent4d201b6329b334092d9939372118761188883bcd (diff)
downloaddotfiles-b433dc40d04413d74a6bb419734f9c5857b8a661.tar.gz
dotfiles-b433dc40d04413d74a6bb419734f9c5857b8a661.zip
add tridactyl
-rw-r--r--tridactyl/.config/tridactyl/tridactylrc59
1 files changed, 59 insertions, 0 deletions
diff --git a/tridactyl/.config/tridactyl/tridactylrc b/tridactyl/.config/tridactyl/tridactylrc
new file mode 100644
index 0000000..f1ad599
--- /dev/null
+++ b/tridactyl/.config/tridactyl/tridactylrc
@@ -0,0 +1,59 @@
+" vim: filetype=vim
+
+" This wipes all existing settings. This means that if a setting in this file
+" is removed, then it will return to default. In other words, this file serves
+" as an enforced single point of truth for Tridactyl's configuration.
+sanitize tridactyllocal tridactylsync
+
+" Just use a blank page for new tab. It would be nicer to use the standard
+" Firefox homepage, but Tridactyl doesn't support this yet.
+set newtab www.duckduckgo.com
+
+" Ctrl-F should use the browser's native 'find' functionality.
+unbind <C-f>
+
+" But also support Tridactyl search too.
+bind / fillcmdline find
+bind ? fillcmdline find -?
+bind n findnext 1
+bind N findnext -1
+" Remove search highlighting.
+bind ,<Space> nohlsearch
+" Use sensitive case. Smart case would be nice here, but it doesn't work.
+set findcase sensitive
+
+" Smooth scrolling, yes please. This is still a bit janky in Tridactyl.
+set smoothscroll true
+
+" The default jump of 10 is a bit much.
+bind j scrollline 5
+bind k scrollline -5
+
+" K and J should move between tabs. x should close them.
+bind J tabprev
+bind K tabnext
+bind x tabclose
+
+" 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
+autocmd DocStart cad.onshape.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
+
+" Git{Hub,Lab} git clone via SSH yank
+bind yg composite js "git clone " + document.location.href.replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") | clipboard yank
+
+" make d take you to the left (I find it much less confusing)
+bind d composite tabprev; tabclose #
+
+" New reddit is bad
+autocmd DocStart ^http(s?)://www.reddit.com js tri.excmds.urlmodify("-t", "www", "old")
+
+bind O fillcmdline tabopen
+
+" Sane hinting mode
+set hintfiltermode vimperator-reflow
+set hintnames numeric