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

Function handleQuery

src/codemirror.js:10553–10568  ·  view source on GitHub ↗
(query, ignoreCase, smartCase)

Source from the content-addressed store, hash-verified

10551 var originalQuery = getSearchState(cm).getQuery();
10552 var originalScrollPos = cm.getScrollInfo();
10553 function handleQuery(query, ignoreCase, smartCase) {
10554 vimGlobalState.searchHistoryController.pushInput(query);
10555 vimGlobalState.searchHistoryController.reset();
10556 try {
10557 updateSearchQuery(cm, query, ignoreCase, smartCase);
10558 } catch (e) {
10559 showConfirm(cm, 'Invalid regex: ' + query);
10560 clearInputState(cm);
10561 return;
10562 }
10563 commandDispatcher.processMotion(cm, vim, {
10564 type: 'motion',
10565 motion: 'findNext',
10566 motionArgs: { forward: true, toJumplist: command.searchArgs.toJumplist }
10567 });
10568 }
10569 function onPromptClose(query) {
10570 cm.scrollTo(originalScrollPos.left, originalScrollPos.top);
10571 handleQuery(query, true /** ignoreCase */, true /** smartCase */);

Callers 2

onPromptCloseFunction · 0.85
VimFunction · 0.85

Calls 4

updateSearchQueryFunction · 0.85
showConfirmFunction · 0.85
clearInputStateFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected