-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtridactylrc
60 lines (46 loc) · 1.65 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
49
50
51
52
53
54
55
56
57
58
59
" 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
" General Settings
set theme shydactyl
set smoothscroll true
set hintchars 5432167890
set hintfiltermode vimperator
" Stay on 1.23.0 until https://github.com/tridactyl/tridactyl/issues/4944 fixed
set update.nag false
" Use ctrl+i to edit text in neovim, moving cursor as appropriate
set editorcmd $TERMINAL --title tridactyl -e nvim %f '+normal!%lGzv%c|'
" Binds
unbind --mode=ex <C-a>
unbind --mode=ex <C-c>
unbind <C-f>
unbind <C-b>
" bind h tabprev
" bind l tabnext
bind J scrollpx -50
bind K scrollpx 50
bind / fillcmdline find
bind ? fillcmdline find --reverse
bind n findnext --search-from-view
bind N findnext --search-from-view --reverse
bind gI js tri.excmds.hint("-c", tri.excmds.INPUTTAGS_selectors)
unbind --mode=hint <Space>
" Website specific
" Wikipedia
bindurl wikiwand.com yy composite js document.location.href.replace("wikiwand.com/en", "wikipedia.org/wiki") | clipboard yank
" Google
unbindurl www.google.com j
unbindurl www.google.com k
bindurl www.google.com i hint -J; form textarea
bindurl www.google.com f hint -Jc #search div:not(.action-menu) > a, block-component a
seturl www.google.com hintchars 1234567890
unbindurl github.com j
unbindurl github.com k
bindurl github\.com/search f hint -Jc [data-testid="results-list"] h3 a
unbindurl gitlab.com j
unbindurl gitlab.com k
unbindurl youtube.com j
unbindurl youtube.com k
blacklistadd www.hackerrank.com
# vim: commentstring="\ %s