编辑器搜索

This commit is contained in:
Liang Ding 2014-10-23 10:05:05 +08:00
parent f5ed249913
commit b80ec4e8c8
5 changed files with 20 additions and 8 deletions

View File

@ -329,7 +329,7 @@
"confirm": "{{.i18n.confirm}}", "confirm": "{{.i18n.confirm}}",
"build_n_run": "{{.i18n.build_n_run}}", "build_n_run": "{{.i18n.build_n_run}}",
"stop": "{{.i18n.stop}}", "stop": "{{.i18n.stop}}",
"usages": "{{.i18n.usages}}", "usages": "{{.i18n.find_usages}}",
"search_text": "{{.i18n.search_text}}", "search_text": "{{.i18n.search_text}}",
"search": "{{.i18n.search}}", "search": "{{.i18n.search}}",
"initialise": "{{.i18n.initialise}}", "initialise": "{{.i18n.initialise}}",

View File

@ -45,8 +45,12 @@
"notification": "通知", "notification": "通知",
"min": "最小化", "min": "最小化",
"restore_side": "左侧窗口还原", "restore_side": "左侧窗口还原",
"usages": "查找使用",
"search_text": "查找文本", "search_text": "查找文本",
"find": "查找",
"find_next": "查找下一个",
"find_previous": "查找上一个",
"replace": "替换",
"replace_all": "替换全部",
"restore_bottom": "底部窗口还原", "restore_bottom": "底部窗口还原",
"file_format": "文件后缀", "file_format": "文件后缀",
"keyword": "关键字", "keyword": "关键字",

View File

@ -364,7 +364,7 @@ var editors = {
searcHTML += '</ul>'; searcHTML += '</ul>';
var $search = $('.bottom-window-group .search'), var $search = $('.bottom-window-group .search'),
title = config.label.usages; title = config.label.find_usages;
if (type === "founds") { if (type === "founds") {
title = config.label.search_text; title = config.label.search_text;
} }
@ -460,7 +460,7 @@ var editors = {
"Ctrl-\\": "autocompleteAnyWord", "Ctrl-\\": "autocompleteAnyWord",
".": "autocompleteAfterDot", ".": "autocompleteAfterDot",
"Ctrl-I": "exprInfo", "Ctrl-I": "exprInfo",
"Ctrl-G": "gotoLine", "Ctrl-L": "gotoLine",
"Ctrl-E": "deleteLine", "Ctrl-E": "deleteLine",
"Ctrl-D": "doNothing", // 取消默认的 deleteLine "Ctrl-D": "doNothing", // 取消默认的 deleteLine
"Ctrl-B": "jumpToDecl", "Ctrl-B": "jumpToDecl",

View File

@ -7,6 +7,7 @@
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/hint/show-hint.css"> <link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/hint/show-hint.css">
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/lint/lint.css"> <link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/lint/lint.css">
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/foldgutter.css"> <link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/foldgutter.css">
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/dialog/dialog.css">
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/theme/wide.css"> <link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/theme/wide.css">
<link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/ztree/zTreeStyle.css"> <link rel="stylesheet" href="{{.conf.StaticServer}}/static/js/lib/ztree/zTreeStyle.css">
@ -222,7 +223,7 @@
"confirm": "{{.i18n.confirm}}", "confirm": "{{.i18n.confirm}}",
"build_n_run": "{{.i18n.build_n_run}}", "build_n_run": "{{.i18n.build_n_run}}",
"stop": "{{.i18n.stop}}", "stop": "{{.i18n.stop}}",
"usages": "{{.i18n.usages}}", "find_usages": "{{.i18n.find_usages}}",
"search_text": "{{.i18n.search_text}}", "search_text": "{{.i18n.search_text}}",
"search": "{{.i18n.search}}", "search": "{{.i18n.search}}",
"start_page": "{{.i18n.start_page}}", "start_page": "{{.i18n.start_page}}",
@ -261,10 +262,9 @@
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/edit/closebrackets.js"></script> <script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/edit/closebrackets.js"></script>
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/edit/matchbrackets.js"></script> <script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/edit/matchbrackets.js"></script>
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/edit/closetag.js"></script> <script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/edit/closetag.js"></script>
<!--
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/search/searchcursor.js"></script> <script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/search/searchcursor.js"></script>
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/search/search.js"></script> <script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/search/search.js"></script>
--> <script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/dialog/dialog.js"></script>
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/search/match-highlighter.js"></script> <script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/search/match-highlighter.js"></script>
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/foldcode.js"></script> <script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/foldcode.js"></script>
<script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/foldgutter.js"></script> <script type="text/javascript" src="{{.conf.StaticServer}}/static/js/lib/codemirror-4.5/addon/fold/foldgutter.js"></script>

View File

@ -13,7 +13,7 @@
<li>Ctrl-I{{.i18n.colon}}{{.i18n.show_expr_info}}</li> <li>Ctrl-I{{.i18n.colon}}{{.i18n.show_expr_info}}</li>
<li>Alt-F7{{.i18n.colon}}{{.i18n.find_usages}}</li> <li>Alt-F7{{.i18n.colon}}{{.i18n.find_usages}}</li>
<li>Alt-Shift-F{{.i18n.colon}}{{.i18n.format}}</li> <li>Alt-Shift-F{{.i18n.colon}}{{.i18n.format}}</li>
<li>Ctrl-G{{.i18n.colon}}{{.i18n.goto_line}}</li> <li>Ctrl-L{{.i18n.colon}}{{.i18n.goto_line}}</li>
<li>Ctrl-E{{.i18n.colon}}{{.i18n.delete_line}}</li> <li>Ctrl-E{{.i18n.colon}}{{.i18n.delete_line}}</li>
<li>Ctrl-S{{.i18n.colon}}{{.i18n.save_editor_file}}</li> <li>Ctrl-S{{.i18n.colon}}{{.i18n.save_editor_file}}</li>
<li>Shift-Ctrl-S{{.i18n.colon}}{{.i18n.save_all_editors_files}}</li> <li>Shift-Ctrl-S{{.i18n.colon}}{{.i18n.save_all_editors_files}}</li>
@ -23,6 +23,14 @@
<li>Ctrl-]{{.i18n.colon}}{{.i18n.indent}}</li> <li>Ctrl-]{{.i18n.colon}}{{.i18n.indent}}</li>
<li>Ctrl-[{{.i18n.colon}}{{.i18n.unindent}}</li> <li>Ctrl-[{{.i18n.colon}}{{.i18n.unindent}}</li>
</ul> </ul>
<h2>{{.i18n.search}}</h2>
<ul>
<li>Ctrl-F{{.i18n.colon}}{{.i18n.search}}/{{.i18n.find}}</li>
<li>Ctrl-G{{.i18n.colon}}{{.i18n.find_next}}</li>
<li>Shift-Ctrl-G{{.i18n.colon}}{{.i18n.find_previous}}</li>
<li>Shift-Ctrl-F{{.i18n.colon}}{{.i18n.replace}}</li>
<li>Shift-Ctrl-R{{.i18n.colon}}{{.i18n.replace_all}}</li>
</ul>
<h2>{{.i18n.focus}}</h2> <h2>{{.i18n.focus}}</h2>
<ul> <ul>
<li>Ctrl-D{{.i18n.colon}}{{.i18n.switch_tab}}</li> <li>Ctrl-D{{.i18n.colon}}{{.i18n.switch_tab}}</li>