Browse Source

Merge branch 'master' of github.com:10sr/myrcfiles

pull/1/head
10sr 13 years ago
parent
commit
56096e1b26
2 changed files with 7 additions and 17 deletions
  1. +2
    -11
      .bashrc
  2. +5
    -6
      .keysnail.js

+ 2
- 11
.bashrc View File

@@ -89,7 +89,7 @@ git-make-bare-rep(){
else else
mkdir -p "$dir" && mkdir -p "$dir" &&
pushd "$dir" && pushd "$dir" &&
git init --bare
git init --bare --shared=all
popd popd
fi fi
} }
@@ -144,18 +144,9 @@ throw-away(){
done done
} }
mkcd(){ mkcd(){
mkdir $1
mkdir -p $1
cd $1 cd $1
} }
mkunfddir(){ # create dir if unfound. ?
test -e "$1" || mkdir "$1"
}
gitls(){
for file in `\ls`
do
:
done
}
catclip(){ catclip(){
if iswindows if iswindows
then then


+ 5
- 6
.keysnail.js View File

@@ -45,6 +45,7 @@ util.setPrefs(
"network.dns.disableIPv6":true, "network.dns.disableIPv6":true,
"browser.urlbar.trimURLs":false, "browser.urlbar.trimURLs":false,
"browser.fullscreen.autohide":false, "browser.fullscreen.autohide":false,
"keyword.URL":"http://www.bing.com/search?q=",
} }
); );


@@ -669,12 +670,6 @@ key.setViewKey('T', function (ev, arg) {
ext.exec("google-itranslate", arg, ev); ext.exec("google-itranslate", arg, ev);
}, 'google itranslate', true); }, 'google itranslate', true);


key.setViewKey('l', function (ev, arg) {
var n = gBrowser.mCurrentTab._tPos;
gBrowser.moveTabTo(gBrowser.mCurrentTab, gBrowser.mTabContainer.childNodes.length - 1);
gBrowser.selectedTab = gBrowser.mTabs[n];
}, 'このタブを後回し');

key.setViewKey('C-SPC', function (ev, arg) { key.setViewKey('C-SPC', function (ev, arg) {
MultipleTabService.toggleSelection(gBrowser.selectedTab); MultipleTabService.toggleSelection(gBrowser.selectedTab);
}, 'タブの選択をトグル'); }, 'タブの選択をトグル');
@@ -777,3 +772,7 @@ key.setViewKey('H', function (ev, arg) {
key.setEditKey('C-<tab>', function (ev) { key.setEditKey('C-<tab>', function (ev) {
command.walkInputElement(command.elementsRetrieverTextarea, true, true); command.walkInputElement(command.elementsRetrieverTextarea, true, true);
}, '次のテキストエリアへフォーカス'); }, '次のテキストエリアへフォーカス');

key.setViewKey('l', function (ev) {
command.focusToById("urlbar");
}, 'ロケーションバーへフォーカス', true);

Loading…
Cancel
Save