QuickOpener-NetBeans
QuickOpener-NetBeans copied to clipboard
Launch custom commands directly from Menu Item or Dropdown
Currently it takes 3 to 4 mouse-clicks to Launch a Custom command (via the Launch Custom command)
I use these command very often to launch Cygwin and Sublime etc...
It would be a nice enhancement to allow launching a Custom command via a single mouse click or maybe a separate context menu option to launch each Custom command.
Also it would be good if I could disable the Confirm dialog "You are about to launch command... Are you sure?"
+1 Hi dkirrane I agree with you.
IMO "separate context menu option to launch each Custom command." is possible
Great module! And must has this feature. I vote for this enchancment
I also would like this enhancement. Either that or being able to run a command with a key shortcut, right from the keyboard.
Adding actions at runtime is technically possible.
See http://wiki.netbeans.org/DevFaqActionsAddAtRuntime
This allows to
- add actions to the "action pool"
- add actions to toolbar
- add shortcuts for actions
@dkirrane / @Gittino / @mikbox74 / @negora / @tychobrailleur : Please provide a dialog mockup!
Hi Markiewb, for me the best would be to have some toolbar button (like the ones available for the maven actions), what do you think about it?
Edit: NOTE: The maven buttons that I mentioned are the customizable ones ( Tools -> Options -> Java -> Maven -> Execution -> Edit Global Custom Goal Definitions..) not the standard ones
The relevant code for the custom maven toolbar icons.
https://github.com/Tateology/java-corpus/blob/4c8b54c226ebbb7051fc18b4d0e44ce46ff5000b/netbeans/maven/src/org/netbeans/modules/maven/actions/RunCustomMavenAction.java
https://github.com/Tateology/java-corpus/blob/4c8b54c226ebbb7051fc18b4d0e44ce46ff5000b/netbeans/maven/src/org/netbeans/modules/maven/customizer/ActionMappings.java#L721
@dkirrane / @mikbox74 / @negora / @tychobrailleur : Any other proposals?
@markiewb IMO the less clicks and mouse moves the better. If the custom command could be listed directly beneath the custom command toolbar button.
@markiewb just thinking is it possible to add keyboard shortcuts to custom commands.
I believe that if you had many custom commands, their buttons might clutter the toolbar. In my opinion, it would be better to combine a drop-down list with the possibility of defining keyboard short-cuts. That way, one could have direct access to the most used commands with a pair of key strokes, while still being able to have a long list of commands that is just 2-click away.
Obviously, there should be also an option to suppress the confirmation window before the execution of each command, at the own risk of the user.
But it's only my opinion. If you implement the buttons in the toolbar, it will be also a good feature.
- [x] Remove other dialogs (everything can be mapped using this custom dialog)
- [ ] add positioning attributes to prevents warning in the log
- [x] Add custom entries to toolbar presenter popup entries
- [x] Add custom entries to menu bar
- [x] Rework/Simplify options
- [ ] Allow reordering of actions
- [ ] Deleting entries should remove shortcuts and toolbar entries
- [ ] Escape names
- [x] Provide no reimplementation of tooling to define Shortcuts/Toolbar entries, let the user use the dialogs of NB
- [x] Add hinting label to dialog, that Shortcuts can be defined at xxx
- [x] Add hinting label to dialog, that Toolbar entries can be added via xxx