Skip to content

Commit

Permalink
Change the keyboard shortcut because it conflicts with "Commit and Pu…
Browse files Browse the repository at this point in the history
…sh" while using the non-model commit interface in Version Control
  • Loading branch information
LiLittleCat committed Aug 12, 2022
1 parent a7048b9 commit f07efb4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Otherwise, it will space the whole file.
There are three ways to use this plugin to spacing:
- See editor popup menu > <kbd>Pangu Format</kbd>.
- See <kbd>Tools</kbd> > <kbd>Pangu Format</kbd>.
- Use <kbd>⌥ + ⇧ + P</kbd> / <kbd>Alt + Shift + P</kbd> .
- Use <kbd>⌥ + .</kbd> / <kbd>Alt + .</kbd> .

If you find something is not working or missing, feel free to submit an issue on [GitHub repo](https://github.com/LiLittleCat/intellij-pangu).

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ There are three ways to use this plugin to spacing:

![Tools](example/Tools.png)

- Use <kbd>⌥ + ⇧ + P</kbd> / <kbd>Alt + Shift + P</kbd> .
- Use <kbd>⌥ + .</kbd> / <kbd>Alt + .</kbd> .

## Thanks

Expand Down
2 changes: 1 addition & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

![Tools](example/Tools.png)

- 使用快捷键 <kbd>⌥ + ⇧ + P</kbd> / <kbd>Alt + Shift + P</kbd> .
- Use <kbd>⌥ + .</kbd> / <kbd>Alt + .</kbd>

## 致谢

Expand Down
9 changes: 6 additions & 3 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
text="Pangu Format"
description="Pangu format text in editor"
icon="/icons/pangu.svg">
<keyboard-shortcut keymap="$default" first-keystroke="alt shift P"/>
<keyboard-shortcut keymap="$default" first-keystroke="alt PERIOD"/>
<add-to-group group-id="EditorPopupMenu" anchor="first"/>
<add-to-group group-id="ToolsMenu" anchor="first"/>
</action>
<action id="Pangu.Format.VCS.CommitMessage"
class="com.lilittlecat.plugin.action.PanguFormatVCSCommitMessageAction"
class="com.lilittlecat.plugin.action.PanguFormatCommitMessageAction"
text="Pangu Format Commit Message"
description="Pangu format commit message"
icon="/icons/pangu.svg">
<keyboard-shortcut keymap="$default" first-keystroke="alt shift P"/>
<keyboard-shortcut keymap="$default" first-keystroke="alt PERIOD"/>
<add-to-group group-id="Vcs.MessageActionGroup" anchor="first"/>
</action>
</actions>
Expand All @@ -37,4 +37,7 @@
displayName="Pangu"/>
<applicationService serviceImplementation="com.lilittlecat.plugin.setting.PanguFormatSettingsState"/>
</extensions>
<applicationListeners>
<listener class="com.lilittlecat.plugin.action.PanguFormatActionListener" topic="com.intellij.openapi.actionSystem.ex.AnActionListener"/>
</applicationListeners>
</idea-plugin>

0 comments on commit f07efb4

Please sign in to comment.