diff --git a/static/js/editors.js b/static/js/editors.js
index 897ac22..40a8b61 100644
--- a/static/js/editors.js
+++ b/static/js/editors.js
@@ -22,7 +22,7 @@ var editors = {
if (editors.data[i].editor.options.path === path) {
return editors.data[i].editor;
}
- }
+ }
},
close: function () {
$(".edit-panel .tabs > div[data-index=" + $(".edit-panel .frame").data("index") + "]").find(".ico-close").click();
@@ -613,6 +613,12 @@ var editors = {
}
});
};
+
+ CodeMirror.commands.selectIdentifier = function (cm) {
+ var cur = cm.getCursor();
+ var word = cm.findWordAt(cur);
+ cm.extendSelection(word.anchor, word.head);
+ };
},
appendSearch: function (data, type, key) {
var searcHTML = '
';
@@ -756,7 +762,8 @@ var editors = {
"Shift-Ctrl-Up": "copyLinesUp",
"Shift-Ctrl-Down": "copyLinesDown",
"Shift-Alt-Up": "moveLinesUp",
- "Shift-Alt-Down": "moveLinesDown"
+ "Shift-Alt-Down": "moveLinesDown",
+ "Shift-Alt-J": "selectIdentifier"
}
});
diff --git a/views/index.html b/views/index.html
index 3e8af1e..533aa2b 100644
--- a/views/index.html
+++ b/views/index.html
@@ -70,23 +70,15 @@
Ctrl-Y
- -
- {{.i18n.cut}}
-
- -
- {{.i18n.copy}}
-
- -
- {{.i18n.paste}}
-
-
-
{{.i18n.select_all}}
Ctrl-A
- -
+
-
{{.i18n.select_identifier}}
+ Shift-Alt-J
- Ctrl-F
- -
+
-
{{.i18n.find}}
+ Ctrl-F
- -
+
-
{{.i18n.find_next}}
+ Ctrl-G
- -
+
-
{{.i18n.find_previous}}
+ Shift-Ctrl-G
- -
+
-
{{.i18n.replace}}
+ Shift-Ctrl-F
- -
+
-
{{.i18n.replace_all}}
+ Shift-Ctrl-R