aboutsummaryrefslogtreecommitdiff
path: root/pentadactylrc.dot.link
blob: 8921d6fa415083ab6ea34908da5e79d11d24c934 (plain)
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
"1.0

" Load plugins
loadplugins '\.(js|penta)$'

" User defined items
group user

" Set title and default search
set defsearch=duckduckgo
set titlestring=Firefox

" Show tab numbers
" See https://code.google.com/p/dactyl/issues/detail?id=870
set go+=n

" Avoid theme overwriting during syncs
"set! general.skins.selectedSkin=rein

" Copy page title
" Thanks to https://github.com/laurentb/public-dotfiles/blob/master/desktop/.pentadactyl/main.penta
command yt :yank :echo document.title.replace(/ - Firefox$/, '');

" Copy page as a Markdown link
command ymark :yank :echo '[' + document.title.replace(/ - Firefox$/, '') + '](' + buffer.URL + ')';

" Copy page as a Trac wiki link
command ytrac :yank :echo '[' + buffer.URL + ' ' + document.title.replace(/ - Firefox$/, '') + ']';

" Copy page for sharing
command yshare :yank :echo document.title.replace(/ - Firefox$/, '') + ' - ' + buffer.URL;

" Open a new tab or the homepage
map e :tabopen about:newtab <CR>
map h gH

" Quit
map q :quit <CR>

"
" Shortcuts
"

" Show all bookmarks shortcut
command bmarks-show :emenu Bookmarks.Show All Bookmarks

" Bookmark this page shortcut
command bmark-this :emenu Bookmarks.Bookmark This Page

" Bookmark all tabs shortcut
command bmark-all :emenu Bookmarks.Bookmark All Tabs…

" Send Tab URLs shortcut
" https://addons.mozilla.org/en-US/firefox/addon/send-tab-urls/
command send-tabs :emenu File.Send Tab URLs...

" Copy URLs shortcut
" https://addons.mozilla.org/en-US/firefox/addon/copyurls/
command copy-urls :emenu Edit.Copy Urls Expert.Tabs In This Window

" vim: set ft=pentadactyl: