Skip to content

Instantly share code, notes, and snippets.

@takasek
Created November 28, 2015 04:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takasek/f44b5cebaf2137955650 to your computer and use it in GitHub Desktop.
Save takasek/f44b5cebaf2137955650 to your computer and use it in GitHub Desktop.
WorkFlowyのキーボードショートカット日本語化
// ==UserScript==
// @name wf_japanese_shortcuts.user.js
// @namespace https://gist.github.com/takasek/
// @description WorkFlowyのキーボードショートカット日本語化
// @include https://workflowy.com/*
// @version 1
// @grant none
// ==/UserScript==
(function() {
var list = {
"ズームイン":"control+→",
"ズームアウト":"control+←",
"展開/たたむ":"control+Space",
"階層を下げる":"Tab",
"階層を上げる":"Shift+Tab",
"上に移動":"control+shift+↑",
"下に移動":"control+shift+↓",
"ノートを追加":"shift+enter",
"完了":"control+enter",
"削除":"control+shift+BS",
"検索":"esc",
"展開":"control+↓",
"たたむ":"control+↑",
"完了したものを非表示・再表示":"control+O",
"スターページを切り替え":"control+;",
"太字":"control+b",
"斜体":"control+i",
"アンダーライン":"control+u",
"元に戻す":"control+Z",
"キーボードショートカットの表示":"control+?"
};
var $tbody = $(".shortcutList>tbody");
$tbody.html("");
for (name in list) {
var $tr = $("<tr>");
$tr.append($("<td/>").text(name).addClass("commandName"));
$tr.append($("<td/>").text(list[name]).addClass("commandDescription"));
$tbody.append($tr);
}
$("#keyboardShortcutHelper td.commandName").css({"max-width": "120px"});
$("#keyboardShortcutHelper td").css({"padding": "6px"});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment