MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / dialog

Function dialog

static/js/codemirror/keymap/vim.js:1937–1944  ·  view source on GitHub ↗
(cm, text, shortText, callback, initialValue)

Source from the content-addressed store, hash-verified

1935 return vim.searchState_ || (vim.searchState_ = new SearchState());
1936 }
1937 function dialog(cm, text, shortText, callback, initialValue) {
1938 if (cm.openDialog) {
1939 cm.openDialog(text, callback, { bottom: true, value: initialValue });
1940 }
1941 else {
1942 callback(prompt(shortText, ""));
1943 }
1944 }
1945 function findUnescapedSlashes(str) {
1946 var escapeNextChar = false;
1947 var slashes = [];

Callers 1

showPromptFunction · 0.70

Calls 1

callbackFunction · 0.85

Tested by

no test coverage detected