How I can type OS path in Main.sublime-menu?
"command": "open_file",
"args": {"file": "${os_path}/drivers/etc/hosts"
Its not works
How I can type OS path in Main.sublime-menu?
"command": "open_file",
"args": {"file": "${os_path}/drivers/etc/hosts"
Its not works
Return string “C:\Windows”
because
"command": "open_file",
"args": {"file": "C:/Windows/drivers/etc/hosts"
not works
I know that I’m “bringing from death” this topic, but I must Thanks @jps for precise and so easy solutionQ I add next code to Main.sublime-menu (on Windows 7) and now it works like a charm:
[code] {
“caption”: “Tools”,
“mnemonic”: “t”,
“id”: “tools”,
“children”:
{ "command": "open_file", "caption": "Edit hosts", "mnemonic": "h", "args": {"file":"/C/Windows/System32/drivers/etc/hosts"}}
]
}
[/code]
Cheers