Sublime Forum

Does Sublime Merge custom command supports options

#1

The Push command in command palette shows options like the following
image

Does custom command supports options, too? If so, is there documentation for how to create custom command with options?

An example use case for this would be for a custom command for “Reset …” that could have options with --hard.

1 Like

#2

Not at the moment. Once the Plugin API is released there will likely be a defined approach for this.

0 Likes

#3

An example use case for this would be for a custom command for “Reset …” that could have options with --hard.

I realize you were just giving reset --hard as an example, but this option does exist in the right click menu on commits in the commit tree. Select “Reset to This Commit” which then gives you the option of Soft, Mixed, and Hard. I wonder if attempting something like a reset from the command palette would be difficult because the target commit would be ambiguous.

0 Likes

#4

Has the API been released to support it? Or any other mechanism?

Another benefit of the nested dialog is that it also has help info on the right (not visible in the screenshot)

0 Likes