dzsessona / QuickOpener-NetBeans

Sometimes while programming in NetBeans you want to explore a particular file that you are editing on the file system browser, or maybe launch a command in a terminal to do something with it.
52 stars 41 forks source link

Support integrating with Git Bash #28

Closed dkirrane closed 11 years ago

dkirrane commented 11 years ago

Hi,

A nice addition would be support for opening the fils/folder in Git Bash

dzsessona commented 11 years ago

Could you give an example? If you are talking about the external git bash I could add two actions but also need to add the logic in the preferences to let the user specify if and where git bash is installed. So, just to clarify , could you give me an example of how you thinnk the plugins should behave?

dkirrane commented 11 years ago

Yes I mean the external Git Bash tool. http://msysgit.github.com/

So, currently when I click on the 'Open in the default OS terminal' it opens DOS at the file/folder location. What I'd like is an option to 'Open in Git Bash' to open Git Bash at the file/folder location.

This is probably something that can be done in via the 'Launch custom command...' but I don't believe custom commands can be saved??

dzsessona commented 11 years ago

Of course the custom commands are saved. So thanks for your question, it reminded me that I should update the wiki, anyway, before i do anything about it can you try to:

1) build your command to open a file in git bash from console 2) go to Tools ->Options-> Miscellaneous -> Quickopener 3) Click on the commands category and set a description ("open in git bash" for exxample) and the command 4) Replace your file in the command with a parameter (${param1}) or ${currentFile} 5) Click Add 6) Click OK

Now you can try to use it selecting a file -> launch custom command, click on the comand that appear on the table, click ok. I you get the command wrong the first time, you can still edit it in the options:

ccommands

Let me know if it makes sense....