Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Launch custom commands directly from Menu Item or Dropdown #59

Open
dkirrane opened this issue Dec 16, 2015 · 13 comments
Open

Launch custom commands directly from Menu Item or Dropdown #59

dkirrane opened this issue Dec 16, 2015 · 13 comments

Comments

@dkirrane
Copy link

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?"

@Git-GT
Copy link

Git-GT commented Dec 20, 2015

+1
Hi dkirrane I agree with you.

@markiewb
Copy link
Collaborator

IMO "separate context menu option to launch each Custom command." is possible

@mikbox74
Copy link

mikbox74 commented Feb 3, 2016

Great module! And must has this feature. I vote for this enchancment

@negora
Copy link

negora commented Feb 24, 2016

I also would like this enhancement. Either that or being able to run a command with a key shortcut, right from the keyboard.

@markiewb
Copy link
Collaborator

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

@markiewb
Copy link
Collaborator

@dkirrane / @gittino / @mikbox74 / @negora / @tychobrailleur : Please provide a dialog mockup!

@Git-GT
Copy link

Git-GT commented Mar 17, 2016

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

@markiewb
Copy link
Collaborator

@dkirrane / @mikbox74 / @negora / @tychobrailleur : Any other proposals?

@dkirrane
Copy link
Author

@markiewb IMO the less clicks and mouse moves the better. If the custom command could be listed directly beneath the custom command toolbar button.

@dkirrane
Copy link
Author

@markiewb just thinking is it possible to add keyboard shortcuts to custom commands.

@negora
Copy link

negora commented Mar 22, 2016

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.

quick-opener-mockup

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.

markiewb added a commit that referenced this issue Mar 22, 2016
Example: A custom action purely configured in layer.xml creates an context sensitive action/shortkey and toolbar icon
markiewb added a commit that referenced this issue Mar 22, 2016
Removed context awareness because we cannot see editor-changes like selects/line/number in the lookup
@markiewb markiewb added this to the 1.1.0 milestone Mar 22, 2016
markiewb added a commit that referenced this issue Mar 25, 2016
Register action programmatically via template in layer.xml (else it does not work using instanceCreate)
@markiewb
Copy link
Collaborator

markiewb commented Mar 27, 2016

  • Remove other dialogs (everything can be mapped using this custom dialog)
  • add positioning attributes to prevents warning in the log
  • Add custom entries to toolbar presenter popup entries
  • Add custom entries to menu bar
  • Rework/Simplify options
  • Allow reordering of actions
  • Deleting entries should remove shortcuts and toolbar entries
  • Escape names
  • Provide no reimplementation of tooling to define Shortcuts/Toolbar entries, let the user use the dialogs of NB
    • Add hinting label to dialog, that Shortcuts can be defined at xxx
    • Add hinting label to dialog, that Toolbar entries can be added via xxx

@markiewb markiewb modified the milestone: 1.1.0 Aug 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants