TerminalExtras - plugin detail

Better terminal integration.

NetBeans Plugin - TerminalExtras
Plugin owner: odavid
Website:
Added: 2011-10-12
License: GPL
Category: Utilities
Downloaded: 4,537 times
Rating:
 4.51, by 10 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.03 MB   Last Update: 2016-10-10

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

- Update to NB 8.2 - code cleanup, some fixes.

Verifications for NetBeans versions

8.2 verification PASSED See verification details
Download plugin   Download size: 0.03 MB   Last Update: 2014-12-16

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

- 8.0 support.
- Internal fixes, more robust terminal handling.
- More node types are supported.
- Alt+',' changes the terminal's current dir to the project's root dir.
- Shift-Alt+',' copies the project's root dir to the clipboard.


Verifications for NetBeans versions

8.0 verification PASSED See verification details
Download plugin   Download size: 0.03 MB   Last Update: 2014-01-14

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

- added Alt+'/' (or Alt+'.') for directory change to be consistent across multiple OS
- added DnD from nodes to the terminal to paste the path
- fixed the initial opening of the terminal
- added Shift-Alt+'/' (or Shift-Alt+'.') to copy the path to the clipboard


Verifications for NetBeans versions

7.4 verification PASSED See verification details


Introduction

TerminalExtras integrates the built-in NB terminal window better into the IDE. Easily switch to the NB terminal within the context of your projects, folders, files, libraries, editor, etc.
This it what is does:
  • Press Alt+'/' (or Alt+'.') on any selected node or editor and the terminal prompt changes into the node's directory. The terminal opens if needed and gets the focus.
  • Press Alt+',' on any selected node or editor and the terminal prompt changes into the node's project root directory. The terminal opens if needed and gets the focus.
  • Press Shift-Alt+'/' (or Shift-Alt+'.') on any selected node or editor to copy its file path to the clipboard.
  • Press Shift-Alt+',' on any selected node or editor to copy its project root directory to the clipboard.
  • Drag and drop a node to the terminal to paste its file path at the current cursor location.
There is no UI for this module, just a few global keystrokes: Alt+'/' and Shift-Alt+'/' (or Alt+'.' and Shift-Alt+'.'), Alt+',' and Shift-Alt+','. (Reassign them if you want).
I hope you find this plugin useful.

[ You have to be logged in to be able to comment. ]

User Comments

  

Changing to project root is flaky

Hi,

using the shortcut to change to project root works unreliably. Sometimes it works, sometimes it pastes in some string from the clipboard.
The jump to current file directory seems to always work though.

Can you put the source up on github or similar so we could take a look?

I'm using windows+cygwin btw.

Thanks!

EDIT: Actually both the shortcuts act seemingly random. Sometimes they paste the clipboard or whatever that is to the terminal, and sometimes they paste the correct path.
Posted by Copperis on Apr 24, 2016
  

Thanks

Works really well when you have multiple projects and like to maintain them all using command line git.
Posted by Copperis on Feb 21, 2016
  

NB 8.1

I can confirm this. I always have my terminal window open on startup, therefore I didn't notice it. I'll look into this issue, thanks for posting it.
Posted by odavid on Feb 09, 2016
  

Partially working with NB8.1

In NB8.1, first Alt+. opens Terminal but doesn't change the directory.
If I switch back to editor/node and press Alt+. again, the directory changes.
Posted by justpusher on Feb 08, 2016
  

Problem under windows with NB8.1

Hi,

Thanks for your work. This is great help. but I have a problem with using this plugin under Windows.
When I open terminal, it starts cygwin's bash.

Pressing Alt + , or Alt + / does not work. It seams to use Windows paths to files, while cygwin uses linux like paths.

It would be great to allow path translation from windows backslash notation to linux slash notation and some configurable mapping to repalce eg. C:\Users\username with /home/username or D:\projects with /mnt/d/project

Best regards,
SWilk
Posted by swilk on Dec 11, 2015
  

Thanks, Benny ...

for your kind comment and rating. This plugin grew from personal need of having a more efficient workflow within NB. I'm glad it fits in your's, too. :)
Posted by odavid on May 31, 2015
  

Great addition to the integrated NetBeans Terminal

TerminalExtras is the perfect addition for the Terminal in NetBeans. Just click on a folder in your project list, hit "Alt" + "." on your keyboard and it will open the Terminal with the selected directory as the current working directory. Also on a German keyboard and also on Windows 8. Nice! :-)
Posted by bennyn on May 24, 2015
  

NBM update with fixes.

- fix for Alt+',' when editor has focus.
- tested with Bookmark/VCS/Navigator/.. nodes
- Spec version 1.11
Posted by odavid on Dec 16, 2014
  

NBM update for NB 8

Implemented Alt+',' to change into a node's project root dir as suggested.
Posted by odavid on Dec 09, 2014
  

Source, feature request

Hello,

Could you put the source on github or similar? Or could you implement a shortcut to open the terminal and change to the current node's project dir?

Thanks!
Posted by Copperis on Dec 06, 2014
  

NBM update.

Added self-signed NBM version, no code change.
Posted by odavid on Jan 14, 2014
  

NBM update.

Some module install/uninstall and node type recognition bug fixes.
Posted by odavid on Dec 25, 2013
  

Added alternative shortcut.

Right, added an alternative shortcut (Alt+'.') and uploaded a new version.
Posted by odavid on Dec 04, 2013
  

Working on german keyboard?

I'm not sure, but I'd suspect it doesn't work with the german keyboard, since the / is only reachable via SHIFT-7
Posted by tomzi on Dec 04, 2013
  

Check your settings..

What OS and which NB version are you using? Does it show a "Change Terminal Directory" Action in "Options | Keymap"? Does your IDE Log shows an exception?
Posted by odavid on Jan 27, 2012
  

Does not function

This sounds like a great feature, however, it doesn't work with the suggested shortcut. Is any alternative way to launch it? Thanks.
Posted by richtrf on Jan 27, 2012
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo