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

Function showPrompt

static/js/codemirror/keymap/vim.js:2021–2025  ·  view source on GitHub ↗
(cm, onPromptClose, prefix, desc, initialValue)

Source from the content-addressed store, hash-verified

2019 }
2020 var searchPromptDesc = '(Javascript regexp)';
2021 function showPrompt(cm, onPromptClose, prefix, desc, initialValue) {
2022 var shortText = (prefix || '') + ' ' + (desc || '');
2023 dialog(cm, makePrompt(prefix, desc), shortText, onPromptClose,
2024 initialValue);
2025 }
2026 function regexEqual(r1, r2) {
2027 if (r1 instanceof RegExp && r2 instanceof RegExp) {
2028 var props = ["global", "multiline", "ignoreCase", "source"];

Callers 1

VimFunction · 0.85

Calls 2

makePromptFunction · 0.85
dialogFunction · 0.70

Tested by

no test coverage detected