]> gitweb @ CieloNegro.org - sugar.git/commitdiff
Auto commit by The Sugar System.
authorPHO <pho@cielonegro.org>
Fri, 28 Jun 2019 08:56:24 +0000 (17:56 +0900)
committerPHO <pho@cielonegro.org>
Fri, 28 Jun 2019 08:56:24 +0000 (17:56 +0900)
dot-files/_config/tridactyl/tridactylrc

index 50b34b0215f7e6325ca8ad4960268d75457fbe47..04cff6dd1f4840f14059f008af9d6fa331d19f46 100644 (file)
@@ -1,25 +1,88 @@
 " -*- vimrc -*-
 
 " -*- vimrc -*-
 
+" Reset Tridactyl
+fillcmdline_tmp 3000 Reloading tricatylrc...
+sanitise tridactyllocal tridactylsync
+
 " Modify user.js
 " Modify user.js
-fixamo quiet
-
-" Find
-"bind / fillcmdline find
-"bind ? fillcmdline find -?
-"bind n findnext 1
-"bind N findnext -1
-"bind ,<Space> nohlsearch
-reset /
-reset ?
-reset n
-reset N
-reset ,<Space>
+fixamo_quiet
 
 
-" Tabs
-bind h tabprev
-bind l tabnext
+" Reload the rc
+bind <C-r> source
 
 " Clipboards
 bind y clipboard yank
 bind Y clipboard yanktitle
 
 " Clipboards
 bind y clipboard yank
 bind Y clipboard yanktitle
-bind <C-y> composite js document.getElementsByTagName("title")[0].textContent + ' :: ' + document.location.href | clipboard yank
+" - Copy "<title> :: <URL>" to the clipboard
+command yank-title-uri composite js document.getElementsByTagName("title")[0].textContent + ' :: ' + document.location.href | clipboard yank
+bind <C-y> yank-title-uri
+
+" Bookmarks
+unbind a
+
+" Tabs
+bind h tabprev
+bind l tabnext
+
+" Custom commands
+unbind <C-x>
+"
+" - Open an RFC with the given number
+command rfc js -p tri.excmds.tabopen('http://tools.ietf.org/html/rfc' + JS_ARG)
+bind <C-x><C-r> fillcmdline rfc
+"
+" - Open package info in the HackageDB
+command hackage js -p tri.excmds.tabopen('http://hackage.haskell.org/package/' + JS_ARG)
+bind <C-x><C-h> fillcmdline hackage
+"
+" - Open an issue in the GHC Trac
+command ghctrac js -p tri.excmds.tabopen('http://hackage.haskell.org/trac/ghc/ticket/' + JS_ARG)
+bind <C-x><C-t> fillcmdline ghctrac
+"
+" - Way back the current page
+command wayback js tri.excmds.open('http://web.archive.org/web/*/' + document.location.href)
+bind <C-x><C-w> wayback
+"
+" - Search or open Official Minecraft Wiki
+command mcwiki js -p tri.excmds.tabopen('http://minecraft.gamepedia.com' + (JS_ARG ? '/index.php?search=' + encodeURIComponent(JS_ARG) : ''))
+bind <C-x><C-m> fillcmdline mcwiki
+
+" Memories of multi_requester
+unbind m
+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); }
+bind ma fillcmdline alc
+
+" Quick marks
+"
+" - Haskell
+quickmark g http://www.haskell.org/ghc/
+quickmark h http://hackage.haskell.org/packages/archive/pkg-list.html
+quickmark P https://phabricator.haskell.org/
+"
+" - Dropbox
+quickmark d https://www.dropbox.com/home
+"
+" - Google Bookmarks
+quickmark m https://www.google.com/bookmarks/
+"
+" - Google Translate
+quickmark T https://translate.google.com/
+"
+" - AWS Console
+quickmark a https://console.aws.amazon.com/
+"
+" - Banks
+quickmark b http://direct.bk.mufg.jp/
+quickmark B http://www.mizuhobank.co.jp/direct/start.html
+"
+" - Securities
+qmark s https://online.sc.mufg.jp/its/dfw/UTBSITS/user_p/Login#
+
+" Scrolling
+bind j scrollline 1
+bind k scrollline -1
+
+" Done
+fillcmdline_tmp 3000 tridactylrc successfully reloaded
+
+" vim: set ft=vimperator: