Path Tools - plugin detail

Path Tools module provides Copy Paths, Explore, Shell and External Edit actions.

NetBeans Plugin - Path Tools
Plugin owner: sandipchitale
Website: http://blogs.sun.com/scblog
Added: 2007-03-22
License: CDDL
Category: Utilities
Downloaded: 15,185 times
Rating:
 4.55, by 19 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.02 MB   Last Update: 2008-05-09

What's new in this version

Now the NBM is signed. Added /D command line argument to the cd command of the default shell commands on WIndows platform.

Verifications for NetBeans versions

6.1 verification PENDING See verification details
Download plugin   Download size: 0.02 MB   Last Update: 2008-05-09

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

Now the NBM is signed. Added /D command line argument to the cd command of the default shell commands on WIndows platform.

Verifications for NetBeans versions

6.0 verification PASSED See verification details


Introduction

This module provides the following actions:
  • Copy Paths Action Copy the full paths of the files/folder of selected node to the clipboard. This also included the System File System nodes. Each file path is on a line. The lines are separated using the value specified by system property line.separator. For Project nodes the full path of the project directory is copied.
  • Explore Action Launch the OS File Explorer (such as Windows Explorer or Finder or Koquerer or Nautilus) with the path of the file or folder of selected node selected in it. For Project nodes the project directory is selected. The Windows Explorer is used on MS Windows. Finder is used on MacOS. The Nautilus or Konquerer is used on Linux. The FileMgr is used on Solaris.
  • Shell On Path Action Launch the OS shell (such as Command Prompt orXterm or Terminal) with the current directory set to path of the folder or parent path of the file of selected node. For Project nodes the project directory is used. The Command Prompt is used on MS Windows. Terminal.app is used on MacOS (not implemented yet). The Xterm is used on Linux and Solaris (not implemented yet).
  • Edit Action Launch the editor (such as Notepad or Edit or TextPad) with the path of the file or folder of selected node selected in it. For Project nodes the project directory is selected. The Notepad is used on MS Windows.
The commands to launch the external program can be configured using Tools:Options.The commands are parsed using the following API: http://www.netbeans.org/download/5_5/javadoc/org-openide-util/org/openide/util/Utilities.html#parseParameters(java.lang.String) Thus you can quote the paths with spaces in them.

Sources

DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.

Download NetBeans 5.x compatible version.

web tracker

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

User Comments

  

Works for NB 7.4 and 8.0

I did some test and it is still working for NetBeans 7.4 and 8.0.
Posted by hmichel on Mar 02, 2014
  

Commas in the path

Pathtools is a great great plugin!
We use it for long time.

But the error is that it fails to open file if the path contains comma (,)

It fails to open file, but copy path works great.
Would be nice to fix this.
Posted by daorus on Jul 29, 2013
  

Not working on Netbeans 7.2

What a pitty! It would be a GREAT plugin, but unfortunatly doesn't work on Netbeans 7.2

I tried evend version 1.5 of the plugin, but nothing
Posted by nulll on Jan 24, 2013
  

Works in 7.2 but not for all files

Although it has Copy Paths context menu item for Project node and java nodes, it doesn't have it for png files for example. Is it possible to add it to any file?

However toolbar button works even for png files.
Posted by mrkam on Aug 24, 2012
  

Version 1.5 Does Work in 7.2

Got the 1.5 version available as a link in a comment in bug report 153728:

http://netbeans.org/bugzilla/show_bug.cgi?id=153728
Posted by mark_barnes on Aug 23, 2012
  

Not working in 7.2

Just installed and restarted. Nothing.
Posted by mark_barnes on Aug 23, 2012
  

great plugin

it is very useful, thanks
Posted by vgrigory on Jul 17, 2012
  

Working with 7,2 beta too!

This plugin is awesome and never got into a compatibility issue till now.
Thanks Sandip Chitale
Posted by aliaseldhose on Jun 25, 2012
  

Not compatible to NB7.2

Seems not to work with NB 7.2 b1 anymore - see http://netbeans.org/bugzilla/show_bug.cgi?id=212411

An alternative is http://plugins.netbeans.org/plugin/43217/quickopener
Posted by markiewb on Jun 16, 2012
  

Works with NB 7.1

I can also confirm that this plugin works with NB 7.1.

But one issue: When you copy paths in favorites view, ".shadow" will be appended to filename.
Posted by markiewb on Jan 17, 2012
  

Works with 7.1 release

I confirm: it works with NB 7.1 release
Posted by jmborer on Jan 09, 2012
  

Works with 7.1

Works with 7.1
Posted by sfiedler on Dec 15, 2011
  

shell on path not working netbeans 7.0 / ubuntu

shell on path not working netbeans 7.0

getting java.lang.ArrayIndexOutOfBoundsException: 0
Posted by sasime2 on Jul 18, 2011
  

Beats all the VIM Plugins…

… because you can use the one and only original Vim. Hint: use

cmd /C start path to vim\gvim.exe -g --servername project-name --remote-silent "{path}"

to start. That way all files will be opened by the same vim server instance. On Mac OS and Linux you won't need the cmd stuff as vim will spawn itself into the background.
Posted by krischik on Dec 13, 2010
  

RE: Does not work with 6.8

Hi thomasbarnett,

Glad to hear you got it working.

I have tried fix to the bugs in my plugins several times but I just could not get the hg clone of the main and main/contrib mercurial repos to finish after several attempts. The repos have just gotten too huge. Very frustrating.

thanks,
Sandip
Posted by sandipchitale on Jun 25, 2010
  

[solved] RE: RE: Does not work with 6.8

I did not change any setting though the quotes were not escaped, e.g. was "explorer /e, "{path}"". Escaping quotes did not make a difference. However, "cmd /C start..." did the trick. Thanks. I would try to debug, if I could figure out how to checkout the pathtools only and not the entire contrib :)
Posted by thomasbarnett on Jun 25, 2010
  

[solved] RE: RE: Does not work with 6.8

I did not change any setting though the quotes were not escaped, e.g. was "explorer /e, "{path}"". Escaping quotes did not make a difference. However, "cmd /C start..." did the trick. Thanks. I would try to debug, if I could figure out how to checkout the pathtools only and not the entire contrib :)
Posted by thomasbarnett on Jun 25, 2010
  

RE: Does not work with 6.8

Did you by any chance change the settings for explore command file or folder ? The default settings are - "explorer /e, \"{path}\"" for folder and "explorer /e,/select, \"{path}\"" for file. If that does not work you can try something like "cmd /C start explorer \"{path}\"".

I currently do not have access to a Windows XP machine so I could not try it.

BTW the source code for the plugin is at http://hg.netbeans.org/main/contrib/file/tip/pathtools in case you want to attempt to debug it.
Posted by sandipchitale on Jun 06, 2010
  

Does not work with 6.8

While it lasted it was an indispensable plugin, alas does not work properly with 6.8. When one use's "Explore Path..." from the context menu within the Projects pane IDE freezes until the launched Explorer window is closed. NetBeans 6.8 (Build 200912041610); XP Pro SP3.
Posted by thomasbarnett on Jun 05, 2010
  

RE: 6.8 version

Hi zudrom,

I just tried Path Tools on NetBeans 6.8 and it worked. What is not working for you?

Regards,
Sandip
Posted by sandipchitale on Mar 28, 2010
  

6.8 version

Could you please update plugin to work with current Netbeans version (6.8)?
Posted by zurom on Mar 26, 2010
  

RE: edit problem on linux

Hi calcifer,

I tried with the following edit command for File: and it worked for me.

/usr/bin/gedit "{path}"

Can you try that and let me know it it works?
Posted by sandipchitale on Aug 07, 2009
  

Enhancement requests

I would love to see some of the enhancements I asked for iin this feature request:

http://www.netbeans.org/issues/show_bug.cgi?id=169084

They involve being able to copy & paste files to/from the Projects/Files views and the local file system.

Also, the "Explore" option should be available when right-clicking files (in addition to folders) for easier use on folders that have a lot of files.

Awesome plugin!
Posted by markeb on Jul 24, 2009
  

works fine

windows xp\netbeans 6.5\jdk1.6.0_12

thank you very much.
Posted by lmw on Mar 10, 2009
  

edit problem on linux

i installed it on linux but not working edit button.
i tried {path} and the other marks but file name is incuding extra ":" char at end of the file name

for ex: index.php:
so dont work
Posted by calcifer on Feb 03, 2009
  

Excellent

I love this plugin! Great work!

I do much of my work from the cygwin command line, and having the ability to just click a button to open a bash prompt at the desired location is a great time saver.

BTW: I have not had any problems using it with NB 6.5
Posted by frosty on Jan 28, 2009
  

Hi

First of all. great job!it's a very usefull netbeans plugin.I'm having some trouble with it, I'm using netbeans 6.5 and after having a couple of files open I wan't to explore a path, the explorer is open but the ide freezes... :(
Posted by wadijm on Jan 13, 2009
  

Editor Context Menu? Editor Tab Context Menu

I thank you for this as well. It is indeed very useful.

Could you add options to add these choices to the Editor context menu
and especially to the Context Menu that is displayed from the Editor Tabs
themselves?

When your cursor hovers over one of these tabs, a tool tip displays the
full path for the file that is being edited with the editor page associated
with that tab, but you can't copy that full path to the clip board at that
time.
Posted by mbarnes on Jan 02, 2009
  

Copy Path and Explore actions in popup menus of file and folder nodes

Copy Path and Explore actions have been added to the popup menus of file and folder nodes
Posted by sandipchitale on Sep 10, 2008
  

6.5 support

Seems to work in 6.5 also.
Posted by sandipchitale on Jul 14, 2008
  

6.5 support

Will you ever get around to provide support for NB 6.5?
Posted by nsegura3 on Jul 09, 2008
  

RE: Suggestion

bbtech, I have added the /D command line argument as suggested by you. Thanks.
Posted by sandipchitale on Jan 22, 2008
  

Suggestion

Thanks for the great plugin!

I would like to suggest that you change the default shell commands to:
cmd /C start cmd /K cd /D "{path}"
cmd /C start cmd /K cd /D "{parent-path}"
(note the /D option)

That will make it so that it will open the prompt in the correct drive.
Posted by bbtech on Jan 17, 2008
  

Thanks

Thanks for your comments. I am looking into adding some of these actions to the nodes in Files and Projects windows. I need to find the sources myself ;)
Posted by sandipchitale on Dec 21, 2007
  

Perfect

Thanks for the plugin. This is exactly what I was looking for, especially the "Explore Action" that launches the File Explorer. I use it all the time now.
Posted by brian_S on Dec 20, 2007
  

Feature request --- context menu item & sources

I really like this plugin (as it saves me hours of typing “cd” commands into a terminal:)

Would it be possible to add two context menu items – “Explorer path” and “Shell on path” in the project/files view? (like Explore from here has http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=15)

Also are there sources available? (Your blog says coming soon :)

Best regards,
Ajasja
Posted by ajasja on Dec 18, 2007
  

Download file extension changed to .nbm

Done.
Posted by sandipchitale on Oct 24, 2007
  

Change file extension to .nbm

It happened to me too. I will have it corrected.
Posted by sandipchitale on Oct 09, 2007
  

Change file extension to .nbm

The file that I downloaded has a .zip extension, in order to install it in Netbeans it needs to be changed to .nbm.
Posted by heismann on Sep 20, 2007
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