Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit acbf56e

Browse files
Prompt the user for the quick installation utility right after install!
1 parent 39d63e3 commit acbf56e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

‎quick_install_python_voice_coding_plugin.py‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,33 @@
44
import sublime
55
import sublime_plugin
66

7+
greeting = '''
8+
Thanks for trying out PythonVoiceCodingPlugin!
9+
10+
To complete your installation, you need to copy the bundled grammar for your version of Caster into your appropriate Caster user directory. Afterwards reboot Caster and if needed enable the grammar by saying
11+
12+
enable python voice coding plugin
13+
14+
You can retrieve those grammars under
15+
16+
Preferences > Package Settings > PythonVoiceCodingPlugin
17+
18+
where you will also find links to documentation with lots of examples and my gitter chatroom for questions and troubleshooting.
19+
20+
To make your life easier with the copy pasting, if you're on windows and using Caster 1.x.x, there is also utility to handle this process automatically for you! Do you want to run it?
21+
'''
22+
23+
24+
def plugin_loaded():
25+
window = sublime.active_window()
26+
try :
27+
from package_control import events
28+
if events.install("PythonVoiceCodingPlugin"):
29+
if sublime.yes_no_cancel_dialog(greeting)!=sublime.DIALOG_YES:
30+
return
31+
window.run_command("quick_install_python_voice_coding_plugin",{})
32+
except :
33+
pass
734

835

936

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /