Sublime Forum

Default.sublime-commands not loading

#1

Hello,

I’ve created a Default.sublime-commands file in the ..\Sublime Merge\Packages\User folder. However any commands I try to add are not getting displayed in Sublime Merge.

{
  "caption": "Develop, switch to the develop branch and run a update/fetch",
  "command": "git",
  "args": { "argv": ["dev"] }
}

I believe that I have the syntax correct. I took the example from [Feature Request] Allow to call Git Aliases

I am however running the unregistered version as I am still experimenting with the tool. Once I do purchase a license will this work? or was I doing something else wrong?

Thanks

0 Likes

#2

That works for me, so a couple of things to check would be:

  1. Double check that the User package you put this in is in the correct place. If you use Preferences > Browse Packages from merge, the User folder you see there is where this should go.

  2. A sublime-commands file needs to contain a JSON list of commands, which means the first character in the file needs to be [ and the last character needs to be ]; inside of those characters is where you put the commands (and if there is more than one they should be separated by commas). If you included just the text above, this may be the issue.

1 Like

#3

Ah, that was the issue. I was not surrounding it with [].

Thanks a bunch!

0 Likes