This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key.setViewKey("g", | |
function () { goDoCommand('cmd_scrollTop'); }, | |
"ページ先頭へ移動"); | |
key.setViewKey("M-<", | |
function () { goDoCommand('cmd_scrollTop'); }, | |
"ページ先頭へ移動"); | |
key.setViewKey(["ESC", "<"], | |
function () { goDoCommand('cmd_scrollTop'); }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key.setViewKey([["g"], | |
["M-<"], | |
["ESC", "<"]], | |
function () { goDoCommand('cmd_scrollTop'); }, | |
"ページ先頭へ移動"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==================== global mode ==================== // | |
key.setGlobalKey(["C-x", "k"], | |
function () { BrowserCloseTabOrWindow(); }, | |
"Close tab / window"); | |
key.setGlobalKey(["C-x", "K"], | |
function () { closeWindow(true); }, | |
"Close the window"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name mgetr | |
// @namespace mooz | |
// @description Make Google Reader easy to read | |
// @include http://www.google.tld/reader/view/* | |
// ==/UserScript== | |
(function () { | |
var css = | |
// ==== misc ==== // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key.setEditKey(["C-x", "r", "d"], | |
function (aEvent, aArg) { | |
command.replaceRectangle(aEvent.originalTarget, "", false, !aArg); | |
}, "Delete text in the region-rectangle", true); | |
key.setEditKey(["C-x", "r", "t"], | |
function (aEvent) { | |
var replacement = window.prompt("String rectangle", ""); | |
command.replaceRectangle(aEvent.originalTarget, replacement); | |
}, "Replace text in the region-rectangle with user inputted string", true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key.setViewKey("H", | |
function () { | |
if (gBrowser.mCurrentTab.previousSibling) | |
gBrowser.moveTabTo(gBrowser.mCurrentTab, gBrowser.mCurrentTab._tPos - 1); | |
else | |
gBrowser.moveTabTo(gBrowser.mCurrentTab, gBrowser.mTabContainer.childNodes.length - 1); | |
}, | |
"選択中のタブを右へ移動"); | |
key.setViewKey("L", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my-c-mode-hook () | |
(c-subword-mode) | |
(setq c-basic-offset 4) | |
(local-set-key | |
"{" | |
'(lambda () | |
(interactive) | |
(let (begin | |
end) | |
(setq begin (point)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for i in *.sqlite | |
do | |
before=`wc -c $i | sed 's/[ ].*$//'` | |
sqlite3 $i vacuum | |
sqlite3 $i reindex | |
after=`wc -c $i | sed 's/[ ].*$//'` | |
percentage=`echo "(100.0 * $after) / $before" | bc` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key.setGlobalKey(["C-c", "C-f"], | |
function () { | |
var toolbox = document.getElementById("navigator-toolbox"); | |
toolbox.hidden = !toolbox.hidden; | |
}, | |
"擬似フルスクリーン状態の切り替え"); | |
key.setViewKey(":", | |
function () { command.interpreter(); }, | |
"インタプリタ"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
key.setEditKey("C-y", command.yank, "貼り付け"); | |
key.setEditKey("M-y", command.yankPop, "以前にコピーしたテキストを順に貼り付け"); | |
key.setEditKey("C-M-y", function (aEvent) { | |
if (!command.kill.ring.length) | |
return; | |
var clipboardText = command.getClipboardText(); | |
if (!command.kill.ring.length || clipboardText != command.kill.ring[0]) { | |
command.pushKillRing(clipboardText); | |
} |