MCPcopy
hub / github.com/witheve/Eve / dialog

Function dialog

src/codemirror.js:12940–12949  ·  view source on GitHub ↗
(cm, template, shortText, onClose, options)

Source from the content-addressed store, hash-verified

12938 return vim.searchState_ || (vim.searchState_ = new SearchState());
12939 }
12940 function dialog(cm, template, shortText, onClose, options) {
12941 if (cm.openDialog) {
12942 cm.openDialog(template, onClose, { bottom: true, value: options.value,
12943 onKeyDown: options.onKeyDown, onKeyUp: options.onKeyUp,
12944 selectValueOnOpen: false});
12945 }
12946 else {
12947 onClose(prompt(shortText, ''));
12948 }
12949 }
12950 function splitBySlash(argString) {
12951 var slashes = findUnescapedSlashes(argString) || [];
12952 if (!slashes.length) return [];

Callers 1

showPromptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected