Step 177: enhanced find/replace

This commit is contained in:
Bill
2026-02-09 22:24:57 -07:00
parent 1693fd08d6
commit 00910a0798
12 changed files with 626 additions and 42 deletions

View File

@@ -272,7 +272,16 @@ int main(int, char**) {
std::string action = state.keys.getAction(combo);
if (action == "edit.undo") state.doUndo();
else if (action == "edit.redo") state.doRedo();
else if (action == "search.find") state.search.showFind = !state.search.showFind;
else if (action == "search.find") {
state.search.showFind = true;
state.search.showReplace = false;
}
else if (action == "search.replace") {
state.search.showFind = true;
state.search.showReplace = true;
}
else if (action == "search.findNext") state.doFindNext(false);
else if (action == "search.findPrev") state.doFindNext(true);
else if (action == "search.findInFiles") state.search.showProjectSearch = !state.search.showProjectSearch;
else if (action == "nav.goToLine") {
state.search.showGoToLine = true;