Skip to content

Commit 7199353

Browse files
committed
y
1 parent a6138fc commit 7199353

File tree

2 files changed

+37
-12
lines changed

2 files changed

+37
-12
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ There are of course certain limitations which I would like to make clear from th
7272

7373
Currently you can download the plugin directly from github and place it in sublime package folder
7474

75-
To install dependencies, run from inside the folder:
75+
To install dependencies,using your installation of python (this worked for me with 3.7.4) run from inside the folder:
7676
```bash
7777
python3 -m pip install --target third_party -r requirements.txt
7878
```
@@ -122,11 +122,11 @@ The script invokes the subl cli tool with a command like that:
122122

123123
``` bash
124124
subl --command python_voice_coding_plugin { "arg" : {
125-
"command":"argument",
126-
"format":1,
127-
"adjective":"first",
128-
"argument_index":2,
129-
}
125+
"command":"argument",
126+
"format":1,
127+
"adjective":"first",
128+
"argument_index":2,
129+
}
130130
}
131131
```
132132
So effectively we trigger the command our plugin provides in its top file and pass information about the type of query we want and the parameters we used as a dict encoded as a json string.
@@ -193,13 +193,13 @@ The following resources proved very helpfull for the success of the project. Man
193193

194194
* this [tutorial for python tokens](https://www.asmeurer.com/brown-water-python/tokens.html)
195195

196-
* [sublime 3 api documentation]( https://www.sublimetext.com/docs/3/api_reference.html#sublime.View )
196+
* sublime 3 [api documentation]( https://www.sublimetext.com/docs/3/api_reference.html#sublime.View )
197197

198-
* [sublime 3 unofficial documentation]( http://docs.sublimetext.info/en/latest/index.html )
198+
* sublime 3 [unofficial documentation]( http://docs.sublimetext.info/en/latest/index.html )
199199

200-
* the python [grammar]() specification
200+
* the python 3.7 [grammar](https://docs.python.org/3.7/reference/grammar.html) specification
201201

202-
* of course [the sublime forum]()
202+
* of course [the sublime forum](https://forum.sublimetext.com/)
203203

204204

205205
### Development tools

doc/README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,32 @@
22

33
## Quick Command Overview
44

5-
Here we will briefly go over the commands offered.
5+
Here we will briefly go over the commands offered.
6+
7+
Before we get started, a small general remark: virtually every command starts with the keyword smart!
8+
This was chosen in order to minimize chances of collision with other commands on your system.
9+
10+
```python
11+
"smart <big_roi> [<big_roi_sub_index>]"
12+
13+
"smart <color> [alternative]"
14+
```
15+
16+
however, because for a variety of commands, ommitting the keyword smart makes them more convenient and easier to speak
17+
you may find the smart keyword in brackets
18+
19+
```python
20+
"[smart] alternative <alternative_index>"
21+
22+
"[smart] paste back [<paste_back_index>]"
23+
24+
"[smart] paste <color> back"
25+
```
26+
27+
if there are conflicts with other commands, trying to remove those brackets. furthermore, I I think it is best not to put brackets in cases where I haven't.
28+
29+
After the small remark let's get started!
30+
631

732
### Selection Queries
833

@@ -63,7 +88,7 @@ Details vary but that is the. spirit! Ok , what else?
6388

6489
### Alternatives
6590

66-
As you can see, these commands select some ROI and generate alternatives. These alternatives are shown to the user in an output panel on the bottom of the screen and the top ones get highlighted in the code as well.
91+
As you can see, these commands select some ROI (region of interest) and generate alternatives. These alternatives are shown to the user in an output panel on the bottom of the screen and the top ones get highlighted in the code as well.
6792

6893
We can select one of those alternatives with the alternative rule which comes in two variations:
6994

0 commit comments

Comments
 (0)