aboutsummaryrefslogtreecommitdiff
path: root/pentadactylrc.dot.link
blob: 7cfe474395620f20b900c08695ea9b5103c1c2a4 (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
"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
" Currently dependent on https://addons.mozilla.org/en-US/firefox/addon/tiny-menu
"

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

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

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

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

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

" vim: set ft=pentadactyl: