Omar
Omar

Reputation: 7601

How to execute SublimeText commands from windows CMD?

How to execute SublimeText commands from a Windows command prompt?

More Explanation:
I can execute SublimeText commands from the SublimeText console.
Examples: (from SublimeText console)
view.run_command("copy_path")
window.run_command("open_dir", {"dir": "$file_path", "file": "$file_name"})
window.run_command("prev_view_in_stack")

What I'm looking for, is to execute SublimeText commands from a Windows command prompt.

Upvotes: 0

Views: 82

Answers (1)

Omar
Omar

Reputation: 7601

Use sublime_text --command "your command".

Credits to OdatNurd for his comment

Examples:
sublime_text --command "copy_path"
sublime_text --command "open_dir {""dir"": ""$file_path"", ""file"": ""$file_name""}"
sublime_text --command "prev_view_in_stack"

Upvotes: 1

Related Questions