-
Notifications
You must be signed in to change notification settings - Fork 25
/
.tridactylrc
58 lines (45 loc) · 2.19 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
" 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
" set newtab https://google.com
" :home 을 입력하면 지정한 웹 페이지를 새 탭에 열어줍니다.
set homepages ["file:///Users/johngrib/Dropbox/JohnGrib/home.html", "https://mail.google.com/mail/u/1/#inbox"]
set smoothscroll false
" tridactyl의 ignore 모드는 기본 키가 복잡하다. vim처럼 i 가 편하다.
bind --mode=normal i mode ignore
bind --mode=ignore <Escape> mode normal
bind j scrollline 1
bind k scrollline -1
" <c-d>, <c-u> 가 좋겠지만 귀찮다. vimium 과 똑같이 설정한다.
bind d scrollpage 0.3
bind u scrollpage -0.3
" search
bind / fillcmdline find
bind ? fillcmdline find -?
bind n findnext 1
bind N findnext -1
" tab
bind x tabclose
" emacs 스타일 text editing 이 편하다
bind --mode=ex <C-a> text.beginning_of_line
bind --mode=ex <C-e> text.end_of_line
bind --mode=ex <C-u> text.backward_kill_line
bind --mode=ex <C-w> text.backward_kill_word
bind --mode=input <C-a> text.beginning_of_line
bind --mode=input <C-e> text.end_of_line
bind --mode=input <C-u> text.backward_kill_line
bind --mode=input <C-w> text.backward_kill_word
bind --mode=insert <C-a> text.beginning_of_line
bind --mode=insert <C-e> text.end_of_line
bind --mode=insert <C-u> text.backward_kill_line
bind --mode=insert <C-w> text.backward_kill_word
" 구글 검색에서 검색 결과에만 클릭 힌트를 달아준다
bindurl google(\.[a-zA-Z0-9]+){1,2}/search <space>f hint -Jc #top_nav a, #search a, .card-section a, a.fl, #pnnext, #pnprev
bindurl google(\.[a-zA-Z0-9]+){1,2}/search <space>F hint -Jbc #top_nav a, #search a, .card-section a, a.fl, #pnnext, #pnprev
" bindurl www.google.com <space>f hint -Jc #search div:not(.action-menu) > a
" bindurl www.google.com <space>F hint -Jbc #search div:not(.action-menu) > a
" gmail 에서는 tridactyl을 안 쓴다
autocmd DocStart mail.google.com mode ignore
" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl
" vim: set filetype=tridactyl