keybinding-vscode-457f0732.js.map 15 KB

1
  1. {"version":3,"file":"keybinding-vscode-457f0732.js","sources":["../../node_modules/ace-builds/src-noconflict/keybinding-vscode.js"],"sourcesContent":["ace.define(\"ace/keyboard/vscode\",[\"require\",\"exports\",\"module\",\"ace/keyboard/hash_handler\",\"ace/config\"], function(require, exports, module){\"use strict\";\nvar HashHandler = require(\"../keyboard/hash_handler\").HashHandler;\nvar config = require(\"../config\");\nexports.handler = new HashHandler();\nexports.handler.$id = \"ace/keyboard/vscode\";\nexports.handler.addCommands([{\n name: \"toggleWordWrap\",\n exec: function (editor) {\n var wrapUsed = editor.session.getUseWrapMode();\n editor.session.setUseWrapMode(!wrapUsed);\n },\n readOnly: true\n }, {\n name: \"navigateToLastEditLocation\",\n exec: function (editor) {\n var lastDelta = editor.session.getUndoManager().$lastDelta;\n var range = (lastDelta.action == \"remove\") ? lastDelta.start : lastDelta.end;\n editor.moveCursorTo(range.row, range.column);\n editor.clearSelection();\n }\n }, {\n name: \"replaceAll\",\n exec: function (editor) {\n if (!editor.searchBox) {\n config.loadModule(\"ace/ext/searchbox\", function (e) {\n e.Search(editor, true);\n });\n }\n else {\n if (editor.searchBox.active === true && editor.searchBox.replaceOption.checked === true) {\n editor.searchBox.replaceAll();\n }\n }\n }\n }, {\n name: \"replaceOne\",\n exec: function (editor) {\n if (!editor.searchBox) {\n config.loadModule(\"ace/ext/searchbox\", function (e) {\n e.Search(editor, true);\n });\n }\n else {\n if (editor.searchBox.active === true && editor.searchBox.replaceOption.checked === true) {\n editor.searchBox.replace();\n }\n }\n }\n }, {\n name: \"selectAllMatches\",\n exec: function (editor) {\n if (!editor.searchBox) {\n config.loadModule(\"ace/ext/searchbox\", function (e) {\n e.Search(editor, false);\n });\n }\n else {\n if (editor.searchBox.active === true) {\n editor.searchBox.findAll();\n }\n }\n }\n }, {\n name: \"toggleFindCaseSensitive\",\n exec: function (editor) {\n config.loadModule(\"ace/ext/searchbox\", function (e) {\n e.Search(editor, false);\n var sb = editor.searchBox;\n sb.caseSensitiveOption.checked = !sb.caseSensitiveOption.checked;\n sb.$syncOptions();\n });\n }\n }, {\n name: \"toggleFindInSelection\",\n exec: function (editor) {\n config.loadModule(\"ace/ext/searchbox\", function (e) {\n e.Search(editor, false);\n var sb = editor.searchBox;\n sb.searchOption.checked = !sb.searchRange;\n sb.setSearchRange(sb.searchOption.checked && sb.editor.getSelectionRange());\n sb.$syncOptions();\n });\n }\n }, {\n name: \"toggleFindRegex\",\n exec: function (editor) {\n config.loadModule(\"ace/ext/searchbox\", function (e) {\n e.Search(editor, false);\n var sb = editor.searchBox;\n sb.regExpOption.checked = !sb.regExpOption.checked;\n sb.$syncOptions();\n });\n }\n }, {\n name: \"toggleFindWholeWord\",\n exec: function (editor) {\n config.loadModule(\"ace/ext/searchbox\", function (e) {\n e.Search(editor, false);\n var sb = editor.searchBox;\n sb.wholeWordOption.checked = !sb.wholeWordOption.checked;\n sb.$syncOptions();\n });\n }\n }, {\n name: \"removeSecondaryCursors\",\n exec: function (editor) {\n var ranges = editor.selection.ranges;\n if (ranges && ranges.length > 1)\n editor.selection.toSingleRange(ranges[ranges.length - 1]);\n else\n editor.selection.clearSelection();\n }\n }]);\n[{\n bindKey: { mac: \"Ctrl-G\", win: \"Ctrl-G\" },\n name: \"gotoline\"\n }, {\n bindKey: { mac: \"Command-Shift-L|Command-F2\", win: \"Ctrl-Shift-L|Ctrl-F2\" },\n name: \"findAll\"\n }, {\n bindKey: { mac: \"Shift-F8|Shift-Option-F8\", win: \"Shift-F8|Shift-Alt-F8\" },\n name: \"goToPreviousError\"\n }, {\n bindKey: { mac: \"F8|Option-F8\", win: \"F8|Alt-F8\" },\n name: \"goToNextError\"\n }, {\n bindKey: { mac: \"Command-Shift-P|F1\", win: \"Ctrl-Shift-P|F1\" },\n name: \"openCommandPallete\"\n }, {\n bindKey: { mac: \"Shift-Option-Up\", win: \"Alt-Shift-Up\" },\n name: \"copylinesup\"\n }, {\n bindKey: { mac: \"Shift-Option-Down\", win: \"Alt-Shift-Down\" },\n name: \"copylinesdown\"\n }, {\n bindKey: { mac: \"Command-Shift-K\", win: \"Ctrl-Shift-K\" },\n name: \"removeline\"\n }, {\n bindKey: { mac: \"Command-Enter\", win: \"Ctrl-Enter\" },\n name: \"addLineAfter\"\n }, {\n bindKey: { mac: \"Command-Shift-Enter\", win: \"Ctrl-Shift-Enter\" },\n name: \"addLineBefore\"\n }, {\n bindKey: { mac: \"Command-Shift-\\\\\", win: \"Ctrl-Shift-\\\\\" },\n name: \"jumptomatching\"\n }, {\n bindKey: { mac: \"Command-]\", win: \"Ctrl-]\" },\n name: \"blockindent\"\n }, {\n bindKey: { mac: \"Command-[\", win: \"Ctrl-[\" },\n name: \"blockoutdent\"\n }, {\n bindKey: { mac: \"Ctrl-PageDown\", win: \"Alt-PageDown\" },\n name: \"pagedown\"\n }, {\n bindKey: { mac: \"Ctrl-PageUp\", win: \"Alt-PageUp\" },\n name: \"pageup\"\n }, {\n bindKey: { mac: \"Shift-Option-A\", win: \"Shift-Alt-A\" },\n name: \"toggleBlockComment\"\n }, {\n bindKey: { mac: \"Option-Z\", win: \"Alt-Z\" },\n name: \"toggleWordWrap\"\n }, {\n bindKey: { mac: \"Command-G\", win: \"F3|Ctrl-K Ctrl-D\" },\n name: \"findnext\"\n }, {\n bindKey: { mac: \"Command-Shift-G\", win: \"Shift-F3\" },\n name: \"findprevious\"\n }, {\n bindKey: { mac: \"Option-Enter\", win: \"Alt-Enter\" },\n name: \"selectAllMatches\"\n }, {\n bindKey: { mac: \"Command-D\", win: \"Ctrl-D\" },\n name: \"selectMoreAfter\"\n }, {\n bindKey: { mac: \"Command-K Command-D\", win: \"Ctrl-K Ctrl-D\" },\n name: \"selectOrFindNext\"\n }, {\n bindKey: { mac: \"Shift-Option-I\", win: \"Shift-Alt-I\" },\n name: \"splitSelectionIntoLines\"\n }, {\n bindKey: { mac: \"Command-K M\", win: \"Ctrl-K M\" },\n name: \"modeSelect\"\n }, {\n bindKey: { mac: \"Command-Option-[\", win: \"Ctrl-Shift-[\" },\n name: \"toggleFoldWidget\"\n }, {\n bindKey: { mac: \"Command-Option-]\", win: \"Ctrl-Shift-]\" },\n name: \"toggleFoldWidget\"\n }, {\n bindKey: { mac: \"Command-K Command-0\", win: \"Ctrl-K Ctrl-0\" },\n name: \"foldall\"\n }, {\n bindKey: { mac: \"Command-K Command-J\", win: \"Ctrl-K Ctrl-J\" },\n name: \"unfoldall\"\n }, {\n bindKey: { mac: \"Command-K Command-1\", win: \"Ctrl-K Ctrl-1\" },\n name: \"foldOther\"\n }, {\n bindKey: { mac: \"Command-K Command-Q\", win: \"Ctrl-K Ctrl-Q\" },\n name: \"navigateToLastEditLocation\"\n }, {\n bindKey: { mac: \"Command-K Command-R|Command-K Command-S\", win: \"Ctrl-K Ctrl-R|Ctrl-K Ctrl-S\" },\n name: \"showKeyboardShortcuts\"\n }, {\n bindKey: { mac: \"Command-K Command-X\", win: \"Ctrl-K Ctrl-X\" },\n name: \"trimTrailingSpace\"\n }, {\n bindKey: { mac: \"Shift-Down|Command-Shift-Down\", win: \"Shift-Down|Ctrl-Shift-Down\" },\n name: \"selectdown\"\n }, {\n bindKey: { mac: \"Shift-Up|Command-Shift-Up\", win: \"Shift-Up|Ctrl-Shift-Up\" },\n name: \"selectup\"\n }, {\n bindKey: { mac: \"Command-Alt-Enter\", win: \"Ctrl-Alt-Enter\" },\n name: \"replaceAll\"\n }, {\n bindKey: { mac: \"Command-Shift-1\", win: \"Ctrl-Shift-1\" },\n name: \"replaceOne\"\n }, {\n bindKey: { mac: \"Option-C\", win: \"Alt-C\" },\n name: \"toggleFindCaseSensitive\"\n }, {\n bindKey: { mac: \"Option-L\", win: \"Alt-L\" },\n name: \"toggleFindInSelection\"\n }, {\n bindKey: { mac: \"Option-R\", win: \"Alt-R\" },\n name: \"toggleFindRegex\"\n }, {\n bindKey: { mac: \"Option-W\", win: \"Alt-W\" },\n name: \"toggleFindWholeWord\"\n }, {\n bindKey: { mac: \"Command-L\", win: \"Ctrl-L\" },\n name: \"expandtoline\"\n }, {\n bindKey: { mac: \"Shift-Esc\", win: \"Shift-Esc\" },\n name: \"removeSecondaryCursors\"\n }\n].forEach(function (binding) {\n var command = exports.handler.commands[binding.name];\n if (command)\n command.bindKey = binding.bindKey;\n exports.handler.bindKey(binding.bindKey, command || binding.name);\n});\n\n}); (function() {\n ace.require([\"ace/keyboard/vscode\"], function(m) {\n if (typeof module == \"object\" && typeof exports == \"object\" && module) {\n module.exports = m;\n }\n });\n })();\n "],"names":["require","exports","module","HashHandler","config","editor","wrapUsed","lastDelta","range","e","sb","ranges","binding","command","m"],"mappings":"gaAAA,IAAI,OAAO,sBAAsB,CAAC,UAAU,UAAU,SAAS,4BAA4B,YAAY,EAAG,SAASA,EAASC,EAASC,EAAO,CAC5I,IAAIC,EAAcH,EAAQ,0BAA0B,EAAE,YAClDI,EAASJ,EAAQ,WAAW,EAChCC,EAAQ,QAAU,IAAIE,EACtBF,EAAQ,QAAQ,IAAM,sBACtBA,EAAQ,QAAQ,YAAY,CAAC,CACrB,KAAM,iBACN,KAAM,SAAUI,EAAQ,CACpB,IAAIC,EAAWD,EAAO,QAAQ,eAAc,EAC5CA,EAAO,QAAQ,eAAe,CAACC,CAAQ,CAC1C,EACD,SAAU,EAClB,EAAO,CACC,KAAM,6BACN,KAAM,SAAUD,EAAQ,CACpB,IAAIE,EAAYF,EAAO,QAAQ,eAAc,EAAG,WAC5CG,EAASD,EAAU,QAAU,SAAYA,EAAU,MAAQA,EAAU,IACzEF,EAAO,aAAaG,EAAM,IAAKA,EAAM,MAAM,EAC3CH,EAAO,eAAc,CACxB,CACT,EAAO,CACC,KAAM,aACN,KAAM,SAAUA,EAAQ,CACfA,EAAO,UAMJA,EAAO,UAAU,SAAW,IAAQA,EAAO,UAAU,cAAc,UAAY,IAC/EA,EAAO,UAAU,aANrBD,EAAO,WAAW,oBAAqB,SAAUK,EAAG,CAChDA,EAAE,OAAOJ,EAAQ,EAAI,CACzC,CAAi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