Skip to content

Commit

Permalink
Change command binding for all shortcuts to "Alt + E" #193
Browse files Browse the repository at this point in the history
also fixes #181

Signed-off-by: Andre Bossert <anb0s@anbos.de>
  • Loading branch information
anb0s committed May 18, 2021
1 parent e3a5976 commit 11f9799
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 26 deletions.
33 changes: 19 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,34 +32,38 @@ The plugin is platform independent in principal. It just launches a (configurabl
Keyboard-shortcuts:
-------------------

**Alt + E**: Main popup menu (Windows)
**ATTENTION** For EasyShell **v2.2 and newer** all shortcuts are starting with **Alt + E** and after releasing one of the letters **A, E, C, D, X, O, R, U** must be used:

![popup_menu_windows](https://raw.githubusercontent.com/anb0s/EasyShell/master/site/images/EasyShell_2.0_popup_menu_windows.png "Popup Menu @ Windows (Alt+E)")
![main_menu_dialog_windows](https://raw.githubusercontent.com/anb0s/EasyShell/master/site/images/EasyShell_2.2_main_menu_dialog_windows.png "Main menu dialog @ Windows (Alt+E)")

**Alt + E, A**: Main popup menu shows all commands and multiple commands can be selected (EasyShell v2.1 and older: Alt + E)

**Alt + Shift + E**: execute multiple commands for selection(s)
![multi_selection_dialog_windows](https://raw.githubusercontent.com/anb0s/EasyShell/master/site/images/EasyShell_2.0_multi-selection_dialog_windows.png "Dialog for multiple tool selection @ Windows (Alt+E,M)")
![multi_selection_dialog_linux](https://raw.githubusercontent.com/anb0s/EasyShell/master/site/images/EasyShell_2.1_multi-selection_dialog_linux.png "Dialog for multiple tool selection @ Linux (Alt+E,M)")

![multi_selection_dialog_windows](https://raw.githubusercontent.com/anb0s/EasyShell/master/site/images/EasyShell_2.0_multi-selection_dialog_windows.png "Dialog for multiple tool selection @ Windows (Alt+Shift+E)")
![multi_selection_dialog_linux](https://raw.githubusercontent.com/anb0s/EasyShell/master/site/images/EasyShell_2.1_multi-selection_dialog_linux.png "Dialog for multiple tool selection @ Linux (Alt+Shift+E)")
**Alt + E, E**: Main popup menu shows all commands and one commands can be directly selected (EasyShell v2.1 and older: Alt + Shift + E)

![popup_menu_windows](https://raw.githubusercontent.com/anb0s/EasyShell/master/site/images/EasyShell_2.0_popup_menu_windows.png "Popup Menu @ Windows (Alt+E)")

Shortcuts that executes the command directly if only one defined or opens a popup menu like **Alt + E** reduced for category:
Shortcuts that executes the command directly if only one defined or opens a popup menu like **Alt + E, E** reduced for category:

**Alt + O**: Open Here (shell)
**Alt + E, O**: Open - open or show in shell

![popup_menu_linux](https://raw.githubusercontent.com/anb0s/EasyShell/master/site/images/EasyShell_2.1_popup_menu_linux.png "Popup Menu @ Linux (Alt+O)")

**Alt + R**: Run with (shell)
**Alt + E, R**: Run - execute in shell

**Alt + X**: Explore
**Alt + E, X**: Explore - open and select in file browser

**Alt + C**: Copy to Clipboard
**Alt + E, C**: Clipboard - copy to clipboard

Special and not available if no user defined categories are available:

**Alt + U**: User defined category
**Alt + E, U**: User - user defined category

Special and not available for all OS:

**Alt + D**: Open with Default application
**Alt + E, D**: Default - open with default application

Supported OS and commands:
--------------------------
Expand All @@ -68,8 +72,9 @@ The following platform, shell combinations and tools are supported as selections

**Windows:**
- Terminals
- Command prompt (known as DOS shell or cmd.exe)
- PowerShell
- Command prompt (known as DOS shell or cmd.exe) also as admin
- PowerShell (also as admin)
- Windows Terminal
- Bash
- Cygwin: http://cygwin.com
- Git for Windows 1.x/2.x: https://git-for-windows.github.io
Expand Down
24 changes: 12 additions & 12 deletions plugin/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
<command
categoryId="de.anbos.eclipse.easyshell.plugin.commands.category"
id="de.anbos.eclipse.easyshell.plugin.commands.all"
name="EasyShell Single Selection">
name="EasyShell All (Single Action)">
</command>
<command
categoryId="de.anbos.eclipse.easyshell.plugin.commands.category"
id="de.anbos.eclipse.easyshell.plugin.commands.allmulti"
name="EasyShell Multi Selection">
name="EasyShell All (Multiple Actions)">
</command>
</extension>
<extension
Expand Down Expand Up @@ -176,42 +176,42 @@
<key
commandId="de.anbos.eclipse.easyshell.plugin.commands.open"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M3+O">
sequence="M3+E O">
</key>
<key
commandId="de.anbos.eclipse.easyshell.plugin.commands.run"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M2+M3+R">
sequence="M3+E R">
</key>
<key
commandId="de.anbos.eclipse.easyshell.plugin.commands.explore"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M3+X">
sequence="M3+E X">
</key>
<key
commandId="de.anbos.eclipse.easyshell.plugin.commands.clipboard"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M3+C">
sequence="M3+E C">
</key>
<key
commandId="de.anbos.eclipse.easyshell.plugin.commands.all"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M3+E">
sequence="M3+E E">
</key>
<key
commandId="de.anbos.eclipse.easyshell.plugin.commands.default"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M3+D">
sequence="M3+E D">
</key>
<key
commandId="de.anbos.eclipse.easyshell.plugin.commands.user"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M3+U">
sequence="M3+E U">
</key>
<key
commandId="de.anbos.eclipse.easyshell.plugin.commands.allmulti"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M2+M3+E">
sequence="M3+E A">
</key>
</extension>
<extension
Expand All @@ -221,14 +221,14 @@
icon="images/easyshell.png"
id="de.anbos.eclipse.easyshell.plugin.editor"
launcher="de.anbos.eclipse.easyshell.plugin.editor.LauncherAll"
name="EasyShell Single Selection">
name="EasyShell All (Single Action)">
</editor>
<editor
default="false"
icon="images/easyshell.png"
id="de.anbos.eclipse.easyshell.plugin.editor"
launcher="de.anbos.eclipse.easyshell.plugin.editor.LauncherAllMulti"
name="EasyShell Multi Selection">
name="EasyShell All (Multiple Action)">
</editor>
</extension>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ private static void addCommandsConsole(CommandDataList list) {
"powershell.exe -command \"Start-Process powershell -Verb RunAs -ArgumentList '-Command', 'cd ${easyshell:container_loc} ; ./${easyshell:resource_name}'\""));
list.add(new CommandData("160086ae-dd6d-46b2-8929-f4122048d04d", PresetType.presetPlugin, OS.osWindows, "PowerShell as Admin (hold)", ResourceType.resourceTypeFile, false, null, Category.categoryRun, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"powershell.exe -command \"Start-Process powershell -Verb RunAs -ArgumentList '-NoExit', '-Command', 'cd ${easyshell:container_loc} ; ./${easyshell:resource_name}'\""));
// Windows Terminal
list.add(new CommandData("1ba8590c-f331-4dd9-8473-e02989a6667a", PresetType.presetPlugin, OS.osWindows, "Windows Terminal", ResourceType.resourceTypeFileOrDirectory, false, null, Category.categoryOpen, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
"wt new-tab -d \"${easyshell:container_loc}\" --title \"${easyshell:project_name}\""));
list.add(new CommandData("fa674161-726b-435c-b18d-051ea1d808a2", PresetType.presetPlugin, OS.osWindows, "Windows Terminal", ResourceType.resourceTypeFile, false, null, Category.categoryRun, CommandType.commandTypeExecute, CommandTokenizer.commandTokenizerSpacesAndQuotesSkip,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 11f9799

Please sign in to comment.