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

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

" User defined items
group user

" Set title and default search
set defsearch=duck
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$/, '');

" 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: