-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtridactylrc
More file actions
51 lines (37 loc) · 1.57 KB
/
tridactylrc
File metadata and controls
51 lines (37 loc) · 1.57 KB
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
" 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.
sanitise tridactyllocal tridactylsync
"
" Binds
"
" Allow Ctrl-a to select all in the commandline
unbind --mode=ex <C-a>
" Allow Ctrl-c to copy in the commandline
unbind --mode=ex <C-c>
" Handy multiwindow/multitasking binds
bind gd tabdetach
bind gD composite tabduplicate | tabdetach
bind <C-O> tab #
" Stupid workaround to let hint -; be used with composite which steals semi-colons
command hint_focus hint -;
" Open right click menu on links
bind ;C composite hint_focus; !s xdotool key Menu
"
" Misc settings
"
" Set editorcmd to suckless terminal, or use the defaults on other platforms
js tri.browserBg.runtime.getPlatformInfo().then(os=>{const editorcmd = os.os=="linux" ? "kitty --name tridactyl_editor nvim" : "auto"; tri.config.set("editorcmd", editorcmd)})
" Set profile dir on Windows
jsb browser.runtime.getPlatformInfo().then(os=>{const profiledir = os.os=="win" ? "C:\\Users\\olie\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\gwm76nmk.default" : "auto"; tri.config.set("profiledir", profiledir)})
" Sane hinting mode
" Filter hints
set hintfiltermode vimperator-reflow
" set hintnames numeric
" 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
" Rules for specific sites
autocmd DocStart app\.gather\.town.* mode ignore