This commit is contained in:
parent
2fcff8d4f2
commit
c6f8ab342d
|
@ -40,6 +40,7 @@
|
|||
"notification_3": "Not found [ide_stub], thereby [Jump to Decl], [Find Usages] will not work",
|
||||
"notification_4": "Server Internal Error",
|
||||
"goto_line": "Goto Line",
|
||||
"goto_file": "Goto File",
|
||||
"go": "Go",
|
||||
"tip": "Tip",
|
||||
"confirm": "Confirm",
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
"notification_3": "[ide_stub] が見つかりません。[Jump to Decl]、[Find Usages] は動作しません。",
|
||||
"notification_4": "内部サーバーエラー",
|
||||
"goto_line": "指定行にジャンプ",
|
||||
"goto_file": "ファイルをオープンする",
|
||||
"go": "Go",
|
||||
"tip": "ヒント",
|
||||
"confirm": "確認",
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
"notification_3": "没有检查到 ide_stub,这将会导致 [跳转到声明]、[查找使用] 失效",
|
||||
"notification_4": "服务器内部错误",
|
||||
"goto_line": "跳转到行",
|
||||
"goto_file": "打开文件",
|
||||
"go": "跳转",
|
||||
"tip": "提示",
|
||||
"confirm": "确定",
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
"notification_3": "没有檢查到 ide_stub,這將會導致 [跳轉到聲明]、[查找使用] 失效",
|
||||
"notification_4": "服務器內部錯誤",
|
||||
"goto_line": "跳轉到行",
|
||||
"goto_file": "打開文件",
|
||||
"go": "跳到",
|
||||
"tip": "提示",
|
||||
"confirm": "確定",
|
||||
|
|
|
@ -760,6 +760,9 @@ var editors = {
|
|||
|
||||
cm.setSelection(CodeMirror.Pos(from.line + 1, from.ch),
|
||||
CodeMirror.Pos(to.line + 1, to.ch));
|
||||
},
|
||||
"Shift-Alt-O": function () {
|
||||
$("#dialogGoFilePrompt").dialog("open");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
*/
|
||||
|
||||
var wide = {
|
||||
curNode: undefined,
|
||||
|
@ -281,6 +281,40 @@ var wide = {
|
|||
}
|
||||
});
|
||||
|
||||
$("#dialogGoFilePrompt").dialog({
|
||||
"modal": true,
|
||||
"height": 300,
|
||||
"width": 660,
|
||||
"title": config.label.goto_file,
|
||||
"okText": config.label.go,
|
||||
"cancelText": config.label.cancel,
|
||||
"afterOpen": function () {
|
||||
$("#dialogGoFilePrompt > input").val('').focus();
|
||||
$("#dialogGoFilePrompt").closest(".dialog-main").find(".dialog-footer > button:eq(0)").prop("disabled", true);
|
||||
},
|
||||
"ok": function () {
|
||||
var name = $("#dialogGoFilePrompt > input").val();
|
||||
|
||||
var request = newWideRequest();
|
||||
request.path = wide.curNode.path;
|
||||
request.name = '*' + name + '*';
|
||||
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: '/file/find/name',
|
||||
data: JSON.stringify(request),
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
if (!data.succ) {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(data);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$("#dialogGoLinePrompt").dialog({
|
||||
"modal": true,
|
||||
"height": 52,
|
||||
|
|
|
@ -244,6 +244,9 @@
|
|||
<div id="dialogGoLinePrompt" class="dialog-prompt fn-none">
|
||||
<input/>
|
||||
</div>
|
||||
<div id="dialogGoFilePrompt" class="dialog-prompt fn-none">
|
||||
<input/>
|
||||
</div>
|
||||
<div id="dialogSearchForm" class="dialog-form fn-none">
|
||||
<input placeholder="{{.i18n.keyword}}" />
|
||||
<input placeholder="{{.i18n.file_format}}" />
|
||||
|
@ -267,6 +270,7 @@
|
|||
"rename": "{{.i18n.rename}}",
|
||||
"cancel": "{{.i18n.cancel}}",
|
||||
"goto_line": "{{.i18n.goto_line}}",
|
||||
"goto_file": "{{.i18n.goto_file}}",
|
||||
"go": "{{.i18n.go}}",
|
||||
"create": "{{.i18n.create}}",
|
||||
"create_file": "{{.i18n.create_file}}",
|
||||
|
|
Loading…
Reference in New Issue