Skip to content

Commit b3cacb8

Browse files
authored
Merge pull request #10 from mpourmpoulis/develop-0.1.0
Preparing for release 0.1.1
2 parents ba97f95 + 14f545e commit b3cacb8

25 files changed

+717
-129
lines changed

CHANGELOG.md

+34-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,39 @@
11
# Changelog
22

3-
## [Unreleased]
3+
4+
## [0.1.1]
5+
6+
### Added
7+
8+
- a bunch of preliminary versions for small regions of interest were added in the unofficial features.
9+
10+
- recommendation has been updated to include links to the gitter chanell
11+
12+
- the sublime menu has been edited accordingly as well!
13+
14+
15+
16+
### Fixed
17+
18+
- fixed a nasty bug in the argument queries, which prevented above/below queries to select parts of calls inside with clauses and for loops( it did not affect counting though)
19+
20+
- fixed a bug regarding empty definition parameter lists, where the initial "def" keyword would be selected. Now the cursor is correct placed between the empty brackets
21+
22+
- documentation fix, the documentation for the same keyword was pointing to the unofficial small regions of interest
23+
24+
### Changed
25+
26+
- the escaping problems faced with quotes and other special characters were lifted( see below for details )
27+
28+
- the repair module now supports correcting cases where the return keyword is followed by invalid code
29+
30+
31+
32+
33+
34+
35+
36+
## [0.0.5 and 0.1.0 are not really change loged properly]
437

538
### Added
639

Main.sublime-menu

+20-4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
"default": "{\n\t$0\n}\n"
2121
}
2222
},
23+
{
24+
"caption":"Gitter Chat Room",
25+
"command": "open_url",
26+
"args":{
27+
"url":"https://gitter.im/PythonVoiceCodingPlugin/community"
28+
}
29+
},
2330
{
2431
"caption": "Online Documentation",
2532
"children":
@@ -66,13 +73,14 @@
6673
"url": "https://github.com/mpourmpoulis/PythonVoiceCodingPlugin/blob/master/doc/CollectionQueries.md"
6774
}
6875
},
69-
{
70-
"caption": "Grammar Installation",
71-
"command": "open_url",
76+
{
77+
"caption": "Unofficial",
78+
"command": "open_url",
7279
"args":{
73-
"url": "https://github.com/mpourmpoulis/PythonVoiceCodingPlugin/blob/master/bundles/README.md"
80+
"url": "https://github.com/mpourmpoulis/PythonVoiceCodingPlugin/blob/master/doc/README.md#experiment-or-unofficial-and-so-on-features-you-need-to-enable-manually"
7481
}
7582
}
83+
7684

7785

7886

@@ -112,9 +120,17 @@
112120
}
113121

114122

123+
},
124+
{
125+
"caption": "Grammar Installation",
126+
"command": "open_url",
127+
"args":{
128+
"url": "https://github.com/mpourmpoulis/PythonVoiceCodingPlugin/blob/master/bundles/README.md"
129+
}
115130
}
116131

117132

133+
118134
]
119135
}
120136
]

README.md

+27-5
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,29 @@
22

33
[![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)
44

5-
![](https://img.shields.io/static/v1?label=Version&message=0.1.0&color=green)
5+
<!-- ![](https://img.shields.io/static/v1?label=Version&message=0.1.0&color=green) -->
66

7-
![](https://img.shields.io/static/v1?label=Caster&message=0.5.11|0.6.11|1.0.0&color=blue)
87

9-
![](https://img.shields.io/static/v1?label=Aenea&message=supported&color=red)
108

11-
![](https://img.shields.io/static/v1?label=Platform&message=Windows|Linux&color=yellow)
9+
<!-- ![](https://img.shields.io/static/v1?label=Caster&message=0.5.11|0.6.11|1.0.0&color=blue) -->
1210

11+
[![](https://img.shields.io/badge/Caster-0.5.11%7C0.6.14%7C1.0.0-blue)](https://github.com/dictation-toolbox/Caster)
1312

13+
<!-- ![](https://img.shields.io/static/v1?label=Aenea&message=supported&color=red) -->
14+
15+
[![](https://img.shields.io/badge/Aenea-supported-red)](https://github.com/dictation-toolbox/aenea)
16+
17+
<!-- ![](https://img.shields.io/static/v1?label=Platform&message=Windows|Linux&color=yellow) -->
18+
19+
![](https://img.shields.io/badge/Platform-Windows%7CLinux-yellow)
20+
21+
22+
[![](https://img.shields.io/gitter/room/mpourmpoulis/PythonVoiceCodingPlugin.svg)](https://gitter.im/PythonVoiceCodingPlugin/community)
23+
24+
![](https://img.shields.io/github/v/release/mpourmpoulis/PythonVoiceCodingPlugin.svg)
1425

1526
PythonVoiceCodingPlugin is a Sublime Text 3 plugin meant to enhance user experience
16-
when coding python 3 by voice.
27+
when coding python 3 by voice. It ships with an integrated Caster grammar bundle containing voice commands that provide you with syntactical navigation capabilities!
1728

1829
![](doc/gif/big37.gif)
1930

@@ -36,6 +47,7 @@ when coding python 3 by voice.
3647
- [Acknowledgements](#acknowledgements)
3748
- [Useful Learning Resources](#useful-learning-resources)
3849
- [Development tools](#development-tools)
50+
- [People](#people)
3951

4052
<!-- /MarkdownTOC -->
4153

@@ -319,3 +331,13 @@ also some of the other tools I found useful developing this project
319331
* Jedi
320332

321333

334+
### People
335+
336+
Last but not least many things to
337+
338+
* LexiconCode, for porting the grammar from 0.5 to 0.6 and 1.0 versions of Caster
339+
340+
* FichteFoll, for pointing out various errors during package review
341+
342+
343+

bundles/Caster/python_voice_coding_plugin_caster_v0-5-11.py

+44-14
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
#########################################################################################
3939

40-
GRAMMAR_VERSION = (0,1,0)
40+
GRAMMAR_VERSION = (0,1,1)
4141

4242
#########################################################################################
4343

@@ -50,12 +50,9 @@ def create_arguments(command,format,**kwargs):
5050

5151

5252
def send_sublime(c,data):
53-
x = json.dumps(data).replace('"','\\"')
54-
y = "subl --command \"" + c + " " + x + "\""
5553
if local_settings["show_command"]:
56-
print(y)
57-
subprocess.call(y, shell = True)
58-
subprocess.call("subl", shell = True)
54+
print(c + " " + json.dumps(data))
55+
subprocess.Popen(["subl","-b", "--command",c + " " + json.dumps(data)],creationflags = 0x08000000)
5956

6057
def noob_send(command,format,**kwargs):
6158
data = create_arguments(command,format,**kwargs)
@@ -294,16 +291,49 @@ class PythonVoiceCodingPluginRule(MergeRule):
294291
"decorator":"decorator",
295292
"base class":"base class",
296293

297-
# "same" : "same",
294+
# "same" : "same",
298295

299296

300-
# "string" : "string",
301-
# "integer literal" : "integer literal",
302-
# "dictionary" : "dictionary",
303-
# "list" : "list",
304-
# "tuple" : "tuple",
305-
# "set" : "set",
306-
# "key" : "key",
297+
# "string" : "string",
298+
# "integer literal" : "integer literal",
299+
# "dictionary" : "dictionary",
300+
# "list" : "list",
301+
# "tuple" : "tuple",
302+
# "set" : "set",
303+
304+
305+
# "subscript" : "subscript",
306+
# "subscript body" : "subscript body",
307+
# "key" : "key",
308+
# "lower" : "lower",
309+
# "upper" : "upper",
310+
# "step" : "step",
311+
312+
# "attribute" : "attribute",
313+
314+
# "comparison" : "comparison",
315+
# "arithmetic" : "arithmetic",
316+
# "boolean" : "boolean",
317+
318+
# "member": "member",
319+
# "container": "container",
320+
# "membership" : "membership",
321+
322+
# "left side" : "left side",
323+
# "right side" : "right side",
324+
# "middle" : "middle",
325+
326+
# "arithmetic left" : "arithmetic left" ,
327+
# "arithmetic right" : "arithmetic right",
328+
# "arithmetic middle" : "arithmetic middle",
329+
330+
# "boolean left" : "boolean left",
331+
# "boolean right" : "boolean right",
332+
# "boolean middle" : "boolean middle",
333+
334+
# "boolean and" : "boolean and" ,
335+
# "boolean or" : "boolean or",
336+
307337

308338

309339
}

bundles/Caster/python_voice_coding_plugin_caster_v0-6-11.py

+44-15
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from dragonfly import (Choice, Dictation, Grammar, Repeat, StartApp, Function)
1+
from dragonfly import (MappingRule, Choice, Dictation, Grammar, Repeat, StartApp, Function,RunCommand,FocusWindow)
22

33
from castervoice.lib import control
44
from castervoice.lib import settings
@@ -37,7 +37,7 @@
3737

3838
#########################################################################################
3939

40-
GRAMMAR_VERSION = (0,1,0)
40+
GRAMMAR_VERSION = (0,1,1)
4141

4242
#########################################################################################
4343

@@ -50,12 +50,9 @@ def create_arguments(command,format,**kwargs):
5050

5151

5252
def send_sublime(c,data):
53-
x = json.dumps(data).replace('"','\\"')
54-
y = "subl --command \"" + c + " " + x + "\""
5553
if local_settings["show_command"]:
56-
print(y)
57-
subprocess.call(y, shell = True)
58-
subprocess.call("subl", shell = True)
54+
print(c + " " + json.dumps(data))
55+
RunCommand(["subl","-b", "--command",c + " " + json.dumps(data)],synchronous = True).execute()
5956

6057
def noob_send(command,format,**kwargs):
6158
data = create_arguments(command,format,**kwargs)
@@ -293,16 +290,48 @@ class PythonVoiceCodingPluginRule(MergeRule):
293290
"decorator":"decorator",
294291
"base class":"base class",
295292

296-
# "same" : "same",
293+
# "same" : "same",
297294

298295

299-
# "string" : "string",
300-
# "integer literal" : "integer literal",
301-
# "dictionary" : "dictionary",
302-
# "list" : "list",
303-
# "tuple" : "tuple",
304-
# "set" : "set",
305-
# "key" : "key",
296+
# "string" : "string",
297+
# "integer literal" : "integer literal",
298+
# "dictionary" : "dictionary",
299+
# "list" : "list",
300+
# "tuple" : "tuple",
301+
# "set" : "set",
302+
303+
304+
# "subscript" : "subscript",
305+
# "subscript body" : "subscript body",
306+
# "key" : "key",
307+
# "lower" : "lower",
308+
# "upper" : "upper",
309+
# "step" : "step",
310+
311+
# "attribute" : "attribute",
312+
313+
# "comparison" : "comparison",
314+
# "arithmetic" : "arithmetic",
315+
# "boolean" : "boolean",
316+
317+
# "member": "member",
318+
# "container": "container",
319+
# "membership" : "membership",
320+
321+
# "left side" : "left side",
322+
# "right side" : "right side",
323+
# "middle" : "middle",
324+
325+
# "arithmetic left" : "arithmetic left" ,
326+
# "arithmetic right" : "arithmetic right",
327+
# "arithmetic middle" : "arithmetic middle",
328+
329+
# "boolean left" : "boolean left",
330+
# "boolean right" : "boolean right",
331+
# "boolean middle" : "boolean middle",
332+
333+
# "boolean and" : "boolean and" ,
334+
# "boolean or" : "boolean or",
306335

307336

308337
}

0 commit comments

Comments
 (0)