MCPcopy Index your code
hub / github.com/PaulTaykalo/objc-dependency-visualizer / handleQuery

Function handleQuery

Scripts/ace/keybinding-vim.js:1788–1803  ·  view source on GitHub ↗
(query, ignoreCase, smartCase)

Source from the content-addressed store, hash-verified

1786 var originalQuery = getSearchState(cm).getQuery();
1787 var originalScrollPos = cm.getScrollInfo();
1788 function handleQuery(query, ignoreCase, smartCase) {
1789 vimGlobalState.searchHistoryController.pushInput(query);
1790 vimGlobalState.searchHistoryController.reset();
1791 try {
1792 updateSearchQuery(cm, query, ignoreCase, smartCase);
1793 } catch (e) {
1794 showConfirm(cm, 'Invalid regex: ' + query);
1795 clearInputState(cm);
1796 return;
1797 }
1798 commandDispatcher.processMotion(cm, vim, {
1799 type: 'motion',
1800 motion: 'findNext',
1801 motionArgs: { forward: true, toJumplist: command.searchArgs.toJumplist }
1802 });
1803 }
1804 function onPromptClose(query) {
1805 cm.scrollTo(originalScrollPos.left, originalScrollPos.top);
1806 handleQuery(query, true /** ignoreCase */, true /** smartCase */);

Callers 2

onPromptCloseFunction · 0.85
keybinding-vim.jsFile · 0.85

Calls 3

updateSearchQueryFunction · 0.85
showConfirmFunction · 0.85
clearInputStateFunction · 0.85

Tested by

no test coverage detected