-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pentadactylrc
79 lines (62 loc) · 2.45 KB
/
.pentadactylrc
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
76
77
78
79
set titlestring=Firefox
set editor="gvim -f +<line> <file>"
set maxitems=12
set cpt=sl
set newtab=all
set pageinfo=gefms
set shell='/bin/bash'
" set color scheme
:colorscheme g
" show pattern matches as you type
set incfind
" alphabetic characters instead of numbers for hints
set hintkeys=asdfghjklònmuioprewcvt
" Highlight previous search pattern matches
set hlfind
" show destination links in 1=status line, 2=command line
set showstatuslinks=status
" custom commands
command -description "News reader" rss :open www.google.com/reader/view/
" passkeys for various sites
set passkeys=
set passkeys+=https://duckduckgo.com:jkv
set passkeys+=mail.google.com:!#*+-./<C-Down><C-s><Enter>?INU[]acefjklmnopqrsuvxyz\',*a,*n,*r,*s,*t,*u,ga,gc,gd,gi,gl,gs,gt,yo
set passkeys+=plus.google.com:jkr\/\?np
set passkeys+=https://twitter.com:jkn<CR>\.\?\/,gh,gr,gd,gp,gf,gl,gm,gs,gu,ga,gc
set passkeys+=getprismatic.com:jkobsd,gh,gd,gs,gg
set passkeys+=feedly.com:rjknpovmxsetNPJK,gm,ga,gg
set passkeys+=tumblr.com:jkln<Space><A-r><A-e>
set passkeys+=joindiaspora.com:jk
" set laissez-fair focus to allow passkeys sites to grab focus
set strictfocus=google.com:laissez-faire,duckduckgo.com:laissez-faire,twitter.com:laissez-faire,getprismatic.com:laissez-faire,feedly.com:laissez-faire,tumblr.com:laissez-faire,'chrome:*':laissez-faire,*:moderate
" Add the current url as a task for taskwarrior.org
map <C-S-t> -js io.run("task", ["add", buffer.URL], false); dactyl.echomsg("Added task for " + buffer.URL);
" use Ctrl+Esc for enabling passthrough mode
map <C-v> <Nop>
map <C-Esc> <pass-all-keys>
" faster scrolling
map -b j 5j
map -b k 5k
" Ctrl+hjkl navigation
map -b <C-j> <down>
map -b <C-k> <up>
map -b <C-l> <END>
map -b <C-h> <NOP>
map , <Leader>
" recent history "jumps"
map <Leader>j :jumps<CR>
" focus first input by default with just i
map i gi
" view native size of image without clicking it
map <Leader>z :js window.content.document.toggleImageSize();<CR>
" switch tabs with parens
map -b ) :tn<CR>
map -b ( :tp<CR>
" qmarks
qmark k file:///home/gianluca/.tiddlywiki/kortirion_tiddlywiki.html
qmark v file:///home/gianluca/.tiddlywiki/viaggi.html
qmark d http://donearm.github.com/
" customized next and previous patterns
set nextpattern=^>$,[Nn]ext,[Mm]ore,([Ss]ucc|[Ss]uccessiva),([Pp]ross|[Pp]rossima),([Aa]vanti),^(>>|»)$,^(>|»),(>|»)$
set previouspattern=^<$,([Pp]rev|[Pp]revious),([Pp]re|[Pp]recedente),([Ii]ndietro),^(<<|«)$,^(<|«),(<|«)$
" vim: set ft=pentadactyl fdm=marker tw=0: