]> gitweb @ CieloNegro.org - sugar.git/blob - dot-files/_config/tridactyl/tridactylrc
286cd58a24a85b02ffe8f0b0cc223b03e95c6ca0
[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 " Memories of multi_requester
54 unbind m
55 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); }
56 bind ma fillcmdline alc
57
58 " Quick marks
59 "
60 " - Haskell
61 quickmark g http://www.haskell.org/ghc/
62 quickmark h http://hackage.haskell.org/packages/archive/pkg-list.html
63 quickmark P https://phabricator.haskell.org/
64 "
65 " - Dropbox
66 quickmark d https://www.dropbox.com/home
67 "
68 " - Google Bookmarks
69 quickmark m https://www.google.com/bookmarks/
70 "
71 " - Google Translate
72 quickmark T https://translate.google.com/
73 "
74 " - AWS Console
75 quickmark a https://console.aws.amazon.com/
76 "
77 " - Banks
78 quickmark b http://direct.bk.mufg.jp/
79 quickmark B http://www.mizuhobank.co.jp/direct/start.html
80 "
81 " - Securities
82 qmark s https://online.sc.mufg.jp/its/dfw/UTBSITS/user_p/Login#
83
84 " Scrolling
85 bind j scrollline 1
86 bind k scrollline -1
87
88 " Done
89 fillcmdline_tmp 3000 tridactylrc successfully reloaded
90
91 " vim: set ft=vimperator: