Skip to content

Commit afacc2e

Browse files
committed
Add "Find" command and update version
1 parent 68558b6 commit afacc2e

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/main/java/com/jetbrains/idear/asr/ASRControlLoop.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,12 @@ private void applyAction(String c) {
321321
} else if (c.startsWith("end")) {
322322
ideService.type(VK_META, VK_RIGHT);
323323
}
324+
} else if (c.startsWith("find in")) {
325+
if(c.endsWith("file")) {
326+
ideService.invokeAction("Find");
327+
} else if(c.endsWith("project")) {
328+
ideService.invokeAction("FindInPath");
329+
}
324330
}
325331
}
326332

src/main/resources/META-INF/plugin.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
<![CDATA[
1010
<html>
1111
<dl>
12+
<dt>1.3</dt>
13+
<dd>Editing commands and bug fixes.</dd>
1214
<dt>1.2.1</dt>
1315
<dd>Add a dedicated Kotlin runtime to dependencies.</dd>
1416
<dt>1.2</dt>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ grammar dialog;
6767

6868
<text_command> = enter text | enter camel case;
6969

70+
<find_command> = find in file | find in project;
71+
7072
public <command> = <init_command> |
7173
<activation_command> |
7274
<menu_command> |
@@ -81,4 +83,5 @@ public <command> = <init_command> |
8183
<search_command> |
8284
<code_command> |
8385
<speech_command> |
84-
<text_command>;
86+
<text_command> |
87+
<find_command>;

0 commit comments

Comments
 (0)