-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tridactylrc
75 lines (62 loc) · 2.2 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
""" README {{{
" NOTE: Must run :nativeinstall for Tridactyl to be able to read this file
" `:native` will tell you the status of that
" WARN: `:source` will not tell you or give you any indication
" that it did not succeed!
"
" `:source` (or `\r`) to reload this file
"
" Comments must start with `"`. No inline comments allowed.
""" }}}
" Display something so that we know it's working.
fillcmdline_tmp 2000 Loading configuration...
""" Settings {{{
colors shydactyl
set hintfiltermode vimperator
set hintchars 1234567890.
" set allowautofocus false
" also set browser.autofocus = false in about:config
""" }}}
""" Autocmds {{{
" Unfocus active element on enter?
autocmd TabEnter .* unfocus
""" }}}
""" Aliases {{{
alias downloads fillcmdline_tmp 2000 Use Command-J or about:downloads
alias dl downloads
alias nmap viewconfig nmaps
alias he help
alias map bind
""" }}}
""" Bindings {{{
" Leader
bind \r source
bind \p fillcmdline tabpush
" move current tab into a TST group tab
bind \m composite tabprev; tabnext; fillcmdline tabmove group-tab.html
" following bind is aspirational; does not actually work
"bind \m composite save completionfuzziness; set completionfuzziness 0.4; fillcmdline tabmove | tab #; restore completionfuzziness
bind T fillcmdline taball
bind zx zoom 0.5 true
bind gb tabprev
bind go fillcmdline goto
" most recent tab (same as `<C-6>` built-in)
bind gl tab #
bind <C-l> composite get_current_url | fillcmdline_notrail open
""" }}}
""" Workarounds {{{
""" Faciliate completion list navigation
""" cf. https://github.com/tridactyl/tridactyl/issues/4164
bind --mode=ex <C-p> ex.prev_completion
bind --mode=ex <C-n> ex.next_completion
bind --mode=ex <C-b> composite ex.prev_completion; ex.prev_completion; ex.prev_completion; ex.prev_completion; ex.prev_completion; ex.prev_completion
bind --mode=ex <C-f> composite ex.next_completion; ex.next_completion; ex.next_completion; ex.next_completion; ex.next_completion; ex.next_completion
""" Fix tab/taball completion
""" cf. https://github.com/tridactyl/tridactyl/issues/4707
set completions.Tab.autoselect false
set completions.TabAll.autoselect false
set completionfuzziness 0.33
""" }}}
" Show loaded status
fillcmdline_tmp 2000 Loaded ~/.tridactylrc
" vim:ft=vim