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