You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -104,32 +104,32 @@ AutoMatlab provides autocompletion information for local Matlab functions inside
104
104
Matlab commands
105
105
---------------
106
106
107
-
If [AutoHotkey](https://www.autohotkey.com/) is installed, AutoMatlab can send commands to Matlab, to be run in Matlab's Command Window.
107
+
If [AutoHotkey](https://www.autohotkey.com/) is installed, AutoMatlab can send commands to Matlab, to be run in the Matlab Command Window.
108
108
109
109
### AutoMatlab Command Panel
110
110
111
111

112
112
113
113
The AutoMatlab Command Panel can be accessed through the Sublime Command Palette or via <kbd>Alt + m</kbd>. It shows command suggestions from the recent Matlab history. If no history is shown, make sure `matlab_history_path` is correctly set in the AutoMatlab settings.
114
114
115
-
Through the AutoMatlab Command Panel, commands can be transferred to Matlab:
115
+
Through the AutoMatlab Command Panel, commands can be sent to Matlab:
116
116
117
117
- <kbd>Enter</kbd> Run the selected history entry in Matlab.
118
118
- <kbd>→</kbd> Insert the selected history entry into the AutoMatlab Command Panel.
119
119
- <kbd>Tab</kbd> Run the input from the AutoMatlab Command Panel in Matlab.
120
120
121
121
### Predefined commands
122
122
123
-
A number of useful Matlab commands have been predefined. They can be run through the Sublime Command Palette or via keyboard shortcuts. Some examples:
123
+
A number of useful commands have been predefined. They can be run through the Sublime Command Palette or via keyboard shortcuts. Some examples:
124
124
125
125
- <kbd>Ctrl + b</kbd> Run the current file in Matlab.
126
126
- <kbd>Ctrl + Shift + b</kbd> Change the current folder and run the current file in Matlab.
127
127
- <kbd>Alt + .</kbd> Set a Matlab breakpoint at the current line.
128
128
- <kbd>Alt + ,</kbd> Clear the Matlab breakpoint from the current line.
129
129
130
-
### Custom commands
130
+
### Custom commands: Matlab Command Window
131
131
132
-
It is possible to define custom Matlab commands, which can be assigned to keyboard shortcuts or added to the Sublime Command Palette. For custom Matlab commands, use the AutoMatlab command `run_matlab_command` as follows:
132
+
It is possible to define custom AutoHotkey commands that execute text commands inside the Matlab Command Window. These AutoMatlab commands can be added to the Sublime Key Bindings or to the Sublime Command Palette. To create custom commands for the Matlab Command Window, use the AutoMatlab command `run_matlab_command` as follows:
133
133
134
134
```json
135
135
{
@@ -148,6 +148,20 @@ The AutoMatlab command `run_matlab_command` will expand the default Sublime Text
148
148
-`$package_parent`: The path of the parent directory for the currently opened Matlab package.
It is possible to define custom AutoHotkey commands that execute Matlab keyboard shortcuts inside Matlab. These AutoMatlab commands can be added to the Sublime Key Bindings or to the Sublime Command Palette. To create custom commands that run keyboard shortcuts in Matlab, use the AutoMatlab command `run_matlab_command` as follows:
154
+
155
+
```json
156
+
{
157
+
"caption": "AutoMatlab: Stop execution",
158
+
"command": "run_matlab_command",
159
+
"args": {"command": "^c", "type": "key"}
160
+
}
161
+
```
162
+
163
+
These commands use the syntax of the `SendInput` function of AutoHotkey. For more details on this syntax, see the sections _Parameters_ and _Key names_ in the AutoHotkey [documentation](https://www.autohotkey.com/docs/commands/Send.htm).
0 commit comments