I want to have a keymap that opens a new_file then opens the prompt_save_ as from one key selection.
I know someone is bound to ask “why bother when it only saves one key selection”
The answer is this.
- it doesn’t just save one key selection, it saves 50% of the work of opening and saving.
- my snippets are scoped to specific sources ergo I need to save before using snippets.
- It gives me an opportunity to learn a bit more about ST2 and JSON.
This is what I have tried. The JSON validates - it just doesn’t work. Does anyone have an idea what I may be doing wrong?
[
{
"keys": ["ctrl+alt+n"],"command": "insert_snippet", "args":
[
{"keys": ["ctrl+n"], "command": "new_file"},
{"keys": ["ctrl+shift+s"],"command": "prompt_save_as" }
]
}
]