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