Sublime Forum

Add menu item at end or specific place?

#1

Currently, it seems it’s only possible to insert a menu item at the top of the menu, e.g.


    {
        "caption": "View",
        "mnemonic": "V",
        "id": "view",
        "children":
        
            { "command": "show_scope" }
        ]
    }
]

If, for example, I want to put the item at the end of the View menu, or place it, say, after Syntax, seems like I have to copy the entire View menu from the Default/Main.sublime-menu, which I don’t want to do since it will override changes Jon may make after. Is this how it is or am I missing something?

0 Likes

#2

It seems that giving your menu item a unique id will put it at the bottom; don’t ask me why.

[code]
{
“caption”: “View”,
“mnemonic”: “V”,
“id”: “view”,
“children”:

        {
            "caption": "Show Scope",
            "command": "show_scope",
            "id": "a_unique_id_goes_here"
        }
    ]
}

][/code]

0 Likes