diff --git a/src/SeerMacroToolButton.cpp b/src/SeerMacroToolButton.cpp index 76e248c..4e2a834 100644 --- a/src/SeerMacroToolButton.cpp +++ b/src/SeerMacroToolButton.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -37,6 +38,11 @@ void SeerMacroToolButton::setMacroName (const QString& name) { return; } + // Add combination shortcut for re-open closed file (Ctrl + Shift + T) + QShortcut* shortcut = new QShortcut(QKeySequence(QString("Ctrl+Shift+")+_macroName[1]), this); + + QObject::connect(shortcut, &QShortcut::activated, this, &QToolButton::click); + // Create the macro filename where the macro is to be written. QSettings settings; diff --git a/src/resources/help/BreakpointGdbSeerManager.md b/src/resources/help/BreakpointGdbSeerManager.md index 96e2309..cee8fed 100644 --- a/src/resources/help/BreakpointGdbSeerManager.md +++ b/src/resources/help/BreakpointGdbSeerManager.md @@ -119,13 +119,13 @@ This input field allows GDB and GDB/mi commands to be manually entered. The resu Seer maintains a history of N commands, as set in the Seer Config dialogs. This history is remembered for the next time Seer is used. -### MACRO gdb commands +### Macro gdb commands There are 10 macros you can create for custom commands. They are labelled "M1" through "M0". Think of your keyboard with numeric -keys 1 through 0. They have hotkeys mapped from Ctrl+Shift+1 through Ctrl+Shift+0. Clicking the button or usinging the hotkey will -execute the commands in the macro. Holding down the button will bring up an editor to edit the contents of the macro. +keys 1 through 0. They have hotkeys mapped from Ctrl+Shift+1 through Ctrl+Shift+0. Clicking the button or using the hotkey will +execute the commands in the macro. Holding down the button will bring up an editor to edit the contents of the macro. -Typically the macro contains gdb commands or gdbmi commands. Output will go to the GDB output tab. The macro is executed using gdb's +Typically the macro contains gdb commands. Output will go to the GDB output tab. The macro is executed using gdb's "source" command, which can handle a lot off unique cases. ### References