Sublime Forum

Access macros from Command Palette

#1

We can see a list of snippets when we type “snippet” or snippet name in command palette:

Capture

It would be nice to see the list of all our macros when we type “macro” or macro’s name in command palette and get the list of all macros, like for the list of snippets. In that way we do not have to associate macros to commands (do not have to bind macro to a key, we can just search for it in command palette)

0 Likes

#2

Would a plugin implementation suffice for something like that? I do a similar thing in my EnhancedSnippets package to make snippet files that Sublime doesn’t recognize appear in the command palette. Should also be possible to make it do that for macros as well.

1 Like

#3

Yes that would be great xD

0 Likes

#4

Incidentally I started working on a package to do this, but I will be unable to work on it for the month of December due to other things going on and lack of free time.

I should however be able to return to it in January at the latest.

1 Like

#5

Thanks xD. That is generally great. Anytime when you have time xD

0 Likes

#6

Sorry for the delay, but after a month of nonstop code streaming I took some time off to decompress.

An initial version of a package that does this can be found at: https://github.com/STealthy-and-haSTy/MacroPalette

This is not “officially” released, but there are instructions on how to get PackageControl to install it at: https://github.com/STealthy-and-haSTy/SublimePackages/tree/master

0 Likes