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