]> gitweb @ CieloNegro.org - sugar.git/blob - dot-files/_config/tridactyl/tridactylrc
Auto commit by The Sugar System.
[sugar.git] / dot-files / _config / tridactyl / tridactylrc
1 " -*- vimrc -*-
2
3 " Reset Tridactyl
4 fillcmdline_tmp 3000 Reloading tricatylrc...
5 sanitise tridactyllocal tridactylsync
6
7 " Modify user.js
8 fixamo_quiet
9
10 " Reload the rc
11 bind <C-r> source
12
13 " Clipboards
14 bind y clipboard yank
15 bind Y clipboard yanktitle
16 " - Copy "<title> :: <URL>" to the clipboard
17 command yank-title-uri composite js document.getElementsByTagName("title")[0].textContent + ' :: ' + document.location.href | clipboard yank
18 bind <C-y> yank-title-uri
19
20 " Bookmarks
21 unbind a
22
23 " Tabs
24 bind h tabprev
25 bind l tabnext
26
27 " Custom commands
28 unbind <C-x>
29 "
30 " - Open an RFC with the given number
31 command rfc js -p tri.excmds.tabopen('http://tools.ietf.org/html/rfc' + JS_ARG)
32 bind <C-x><C-r> fillcmdline rfc
33 "
34 " - Open package info in the HackageDB
35 command hackage js -p tri.excmds.tabopen('http://hackage.haskell.org/package/' + JS_ARG)
36 bind <C-x><C-h> fillcmdline hackage
37 "
38 " - Open an issue in the GHC Trac
39 command ghctrac js -p tri.excmds.tabopen('http://hackage.haskell.org/trac/ghc/ticket/' + JS_ARG)
40 bind <C-x><C-t> fillcmdline ghctrac
41 "
42 " - Way back the current page
43 command wayback js tri.excmds.open('http://web.archive.org/web/*/' + document.location.href)
44 bind <C-x><C-w> wayback
45 "
46 " - Search or open Official Minecraft Wiki
47 command mcwiki js -p tri.excmds.tabopen('http://minecraft.gamepedia.com' + (JS_ARG ? '/index.php?search=' + encodeURIComponent(JS_ARG) : ''))
48 bind <C-x><C-m> fillcmdline mcwiki
49
50 " Memories of multi_requester
51 unbind m
52 command alc js -p let uri='https://eow.alc.co.jp/search?q=' + JS_ARG; if (document.location.hostname == 'eow.alc.co.jp') { tri.excmds.open(uri); } else { tri.excmds.tabopen(uri); }
53 bind ma fillcmdline alc
54
55 " Quick marks
56 "
57 " - Haskell
58 quickmark g http://www.haskell.org/ghc/
59 quickmark h http://hackage.haskell.org/packages/archive/pkg-list.html
60 quickmark P https://phabricator.haskell.org/
61 "
62 " - Dropbox
63 quickmark d https://www.dropbox.com/home
64 "
65 " - Google Bookmarks
66 quickmark m https://www.google.com/bookmarks/
67 "
68 " - Google Translate
69 quickmark T https://translate.google.com/
70 "
71 " - AWS Console
72 quickmark a https://console.aws.amazon.com/
73 "
74 " - Banks
75 quickmark b http://direct.bk.mufg.jp/
76 quickmark B http://www.mizuhobank.co.jp/direct/start.html
77 "
78 " - Securities
79 qmark s https://online.sc.mufg.jp/its/dfw/UTBSITS/user_p/Login#
80
81 " Scrolling
82 bind j scrollline 1
83 bind k scrollline -1
84
85 " Done
86 fillcmdline_tmp 3000 tridactylrc successfully reloaded
87
88 " vim: set ft=vimperator: