[MXS-3725] Allow storing query as snippets in the Query Editor Created: 2021-08-12 Updated: 2022-08-04 Resolved: 2022-06-17 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | maxgui |
| Affects Version/s: | None |
| Fix Version/s: | 22.08.0 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Manjot Singh (Inactive) | Assignee: | Duong Thien Ly |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Attachments: |
|
| Sprint: | MXS-SPRINT-159 |
| Description |
|
Add a macro menu in IDE that allows easy input and use of frequently used queries. |
| Comments |
| Comment by Duong Thien Ly [ 2022-04-25 ] |
|
Himanjot, adding macros would probably require defining keybindings, and variables and this gets complex pretty easily, especially in the browser. But it all depends on how you define what is a macro. If the usage of variables is not required, how about I implement it as snippets? i.e. The user defines a "prefix" name for a query, then it would show up in the autocompletion menu like what I did in the attached video. |
| Comment by Manjot Singh (Inactive) [ 2022-04-26 ] |
|
That looks pretty cool! so its more of an auto complete? I think a drop down menu would be good. Yes its more of a snippets store. A more advanced version (maybe in a later sprint) could recognize frequently run queries and add them to the list. |