Skip to content

Commit 3776c21

Browse files
author
Yaroslav Lepenkin
committed
Last
1 parent 08a2d74 commit 3776c21

4 files changed

Lines changed: 13 additions & 10 deletions

File tree

src/com/jetbrains/idear/actions/WhereAmIAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public void actionPerformed(AnActionEvent e) {
3737
}
3838

3939
ServiceManager .getService(TTSService.class)
40-
.say("You are in " + path.toString());
40+
.say("You are" + path.toString());
4141
}
4242

4343
}

src/com/jetbrains/idear/asr/ASRServiceImpl.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ else if (c.startsWith("focus")) {
214214
}
215215
}
216216

217-
else if (c.endsWith("selection")) {
218-
if (c.startsWith("expand")) {
219-
pressKeystroke(KeyEvent.VK_CONTROL, KeyEvent.VK_W);
220-
} else if (c.startsWith("shrink")) {
221-
pressKeystroke(KeyEvent.VK_CONTROL, KeyEvent.VK_SHIFT, KeyEvent.VK_W);
222-
}
217+
else if (c.startsWith("expand")) {
218+
pressKeystroke(KeyEvent.VK_CONTROL, KeyEvent.VK_W);
219+
}
220+
221+
else if (c.startsWith("shrink")) {
222+
pressKeystroke(KeyEvent.VK_CONTROL, KeyEvent.VK_SHIFT, KeyEvent.VK_W);
223223
}
224224

225225
else if (c.startsWith("press")) {
@@ -346,7 +346,7 @@ private void tellJoke() {
346346
.say("Did I stutter? It is me, Jah java va va, va, va. Open up already!");
347347
}
348348

349-
private static final long COMMAND_DURATION = 3000;
349+
private static final long COMMAND_DURATION = 3500;
350350

351351
private void fireVoiceCommand() {
352352
try {

src/resources/com.jetbrains.idear/grammars/command.gram

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,12 @@ grammar dialog;
4040

4141
<refactoring_command> = extract this (method | parameter);
4242

43-
<selection_command> = (expand | shrink) selection;
43+
<selection_command> = expand | shrink;
4444

4545
<focus_command> = focus (editor | project);
4646

47+
<run_command> = run;
48+
4749
<speech_command> = speech <speech_action>;
4850

4951
<speech_action> = pause | resume;
@@ -69,7 +71,8 @@ public <command> = <init_command> |
6971
<focus_command> |
7072
<speech_command> |
7173
<google_command> |
74+
<run_command> |
7275
<debug_command> |
73-
<joke_command> |
76+
/*<joke_command> |*/
7477
<check_not_null> |
7578
<keyboard_command>;

test-seg000001.wav

-51 KB
Binary file not shown.

0 commit comments

Comments
 (0)