gonsole weeks: a git console for eclipse
Even though Eclipse ships with a comprehensive Git tool, it seems that for certain tasks many developers switch to the command line. Because of that, Frank and I started to fill this gap a few weeks ago.
If you are interested in what happened during this time you may want to read these posts: git init gonsole, eclipse egit integration, content assist for git commands, oops – it’s a framework and multiple console sessions.
This weeks update brings usage hints for commands, a command history, an Open Console contribution for the EGit Team menu and a small enhancement for the use
command. If you want to try the new features by yourself, you can install the tool from this update site: https://rherrmann.github.io/gonsole/repository/
Command Usage Hints
The content assist now gives you usage hints for the selected proposal.
History
Finally the long promised command history is there:
To bring up the history popup, you can use the same key as in the Unix shell: Arrow Up. As with the content assist, the entries are filtered. Text that you have already typed or type while the popup is open will filter the entries that are shown.
Use Command Enhancement
With the use
command it is now possible to switch to a repository that is not known to your IDE. If you enter the command followed by the absolute path to the .git directory of a repository, Gonsole will switch to this repository.
EGit Team Menu
If Gonsole is installed, the EGit Team menu shows an Open Console entry. If you select it, a console session will be opened for the repository that the selected resource belongs to.
Conclusion
While we had much fun over the last weeks we were also able to learn a few things from experiementing with new programming techniques. In particular, the nested TDD approach has worked out very well for us. This was also our first encounter with Travis – that we found very pleasant. It provides a lean CI build infrastructure and integrates well with GitHub.
But we will take a break for now from working on Gonsole as we have to attend to other duties. In the meanwhile, we gather feature requests that might surface and see what can be achieved with the next version.
Yours Sincerely, …
- Extras for Eclipse: Neon Update - 6. July 2016
- What’s the Difference? Creating Diffs with JGit - 16. June 2016
- Terminate and Relaunch in Eclipse - 19. April 2016
Good idea
Is there a way to change text colors? the blue,red,black colors don’t work very well with the Dark theme of eclipse Luna
Managing (custom) alias could be a good enhancement
For instance
# cat /root/.gitconfig
[alias]
co = checkout
ci = commit
st = status
br = branch
rb = rebase
hist = log –pretty=format:\”%H %ad | %s%d [%an]\” –graph –date=short
type = cat-file -t
Thanks for your input!
Unfortunately text colors aren’t yet configurable (see https://github.com/rherrmann/gonsole/issues/30). Taking configured aliases into account seems like a good idea. Would you mind to open an enhancement request therefore?
Regards,
Rüdiger
Text colors can now be configured, please see the Usage section on http://gonsole.codeaffine.com for details.
In CVS while we commit it shows the full path of the file which gets committed but in GONSOLE I did not find the same feature.
Nihar,
which Git command would you expect to show more information? Gonsole delegates the entred commands to the JGit command line interface. If you have a specific request, you’re probably best off filing an enhancement request against JGit. As soon as the feature is released in JGit, it can be integrated into Gonsole.
How to setup git repo credentials to use while git push
Which protocol and authentication method do you use? Do you use the EGit integation and is your repository known to EGit?