eepp: Added ScopedOp and BoolScopedOp. General optimization of lambda captures. Added support in UICodeEditorSplitter for navigation history.

ecode: Implemented navigation history over the editor, with Alt + Left | Right you can navigate over the relevant code navigation history.
This commit is contained in:
Martín Lucas Golini
2023-06-25 21:14:36 -03:00
parent 7e1e715dfd
commit f58866dd66
85 changed files with 958 additions and 631 deletions

View File

@@ -96,7 +96,7 @@ UITerminal* StatusTerminalController::createTerminal( const std::string& working
? terminalColorSchemes.at( currentTerminalColorScheme )
: TerminalColorScheme::getDefault() );
mApp->getTerminalManager()->setKeybindings( term );
term->setCommand( "switch-to-previous-colorscheme", [&] {
term->setCommand( "switch-to-previous-colorscheme", [this] {
auto it = mApp->getTerminalManager()->getTerminalColorSchemes().find(
mApp->getTerminalManager()->getTerminalCurrentColorScheme() );
auto prev = std::prev( it, 1 );
@@ -107,7 +107,7 @@ UITerminal* StatusTerminalController::createTerminal( const std::string& working
mApp->getTerminalManager()->getTerminalColorSchemes().rbegin()->first );
}
} );
term->setCommand( "switch-to-next-colorscheme", [&] {
term->setCommand( "switch-to-next-colorscheme", [this] {
auto it = mApp->getTerminalManager()->getTerminalColorSchemes().find(
mApp->getTerminalManager()->getTerminalCurrentColorScheme() );
mApp->getTerminalManager()->setTerminalColorScheme(