Skip to content

Commit

Permalink
Use FindInPath instead of ErgoKeysFindInPathAction
Browse files Browse the repository at this point in the history
  • Loading branch information
amibiz committed Jul 22, 2020
1 parent fafb8ed commit 59e5e4e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 35 deletions.
4 changes: 3 additions & 1 deletion src/main/java/com/github/amibiz/ergokeys/ErgoKeysPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

package com.github.amibiz.ergokeys;

import com.intellij.find.actions.FindInPathAction;
import com.intellij.ide.actions.SearchEverywhereAction;
import com.intellij.ide.actions.runAnything.RunAnythingAction;
import com.intellij.ide.util.PropertiesComponent;
Expand Down Expand Up @@ -147,7 +148,8 @@ public void beforeActionPerformed(@NotNull AnAction action, @NotNull DataContext

if (action.getClass().equals(SearchEverywhereAction.class) ||
action.getClass().equals(RunAnythingAction.class) ||
action.getClass().equals(IncrementalFindAction.class)) {
action.getClass().equals(IncrementalFindAction.class) ||
action.getClass().equals(FindInPathAction.class)) {
final Editor editor = dataContext.getData(CommonDataKeys.EDITOR);
activateInsertMode(editor);
}
Expand Down
27 changes: 0 additions & 27 deletions src/main/java/com/github/amibiz/ergokeys/FindInPathAction.java

This file was deleted.

6 changes: 1 addition & 5 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ U (dvorak) activate <i>Insert Mode</i></pre>
]]></description>

<!--&lt;!&ndash; please see http://confluence.jetbrains.com/display/IDEADEV/Build+Number+Ranges for description &ndash;&gt;-->
<idea-version since-build="183"/>
<idea-version since-build="183.3" until-build="201.*"/>

<change-notes><![CDATA[
<b>1.9</b><br/>
Expand Down Expand Up @@ -85,9 +85,5 @@ U (dvorak) activate <i>Insert Mode</i></pre>
class="com.github.amibiz.ergokeys.GotoAction"
text="GotoAction"
description="GotoAction"/>
<action id="ErgoKeysFindInPathAction"
class="com.github.amibiz.ergokeys.FindInPathAction"
text="FindInPath"
description="FindInPath"/>
</actions>
</idea-plugin>
2 changes: 1 addition & 1 deletion src/main/resources/keymaps/ErgoKeys (Dvorak).xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<action id="SplitVertically">
<keyboard-shortcut first-keystroke="4"/>
</action>
<action id="ErgoKeysFindInPathAction">
<action id="FindInPath">
<keyboard-shortcut first-keystroke="SPACE"
second-keystroke="B"/>
</action>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/keymaps/ErgoKeys (QWERTY).xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
<action id="SplitVertically">
<keyboard-shortcut first-keystroke="4"/>
</action>
<action id="ErgoKeysFindInPathAction">
<action id="FindInPath">
<keyboard-shortcut first-keystroke="SPACE"
second-keystroke="N"/>
</action>
Expand Down

0 comments on commit 59e5e4e

Please sign in to comment.