This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Based on a user feedback: A really great little feature would be if a right-click on the file tab would allow you to copy the filename+path to the clipboard. This is possible in PsPAD and it is very addictive
I also want to see the full path of the current file in the IDE title bar. This is actually an important thing for me.
i'nedd this! this is basic!
*** Issue 160337 has been marked as a duplicate of this issue. ***
*** Issue 171220 has been marked as a duplicate of this issue. ***
This is really basic functionality - one of the first things I noticed missing when I started using NetBeans a couple of months ago.
Take a look at this plugin [1]. This should solve your problem. Regards [1] http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=676
That plugin only works until version 6.0
(In reply to comment #7) > That plugin only works until version 6.0 No, not really. I am using this for all 6.X version without any problem. Try it and let me know if you face any problem.
*** Bug 156048 has been marked as a duplicate of this bug. ***
*** Bug 180835 has been marked as a duplicate of this bug. ***
+1 for copying file name/path from tab and from context menu in the Projects/Files windows
(In reply to comment #8) > (In reply to comment #7) > > That plugin only works until version 6.0 > > No, not really. I am using this for all 6.X version without any problem. Try it > and let me know if you face any problem. Well, the problem here is that there is no public official place to get the latest version of this plugin from. The plugin portal contains an obsolete (old) version and presumably the only person, who could update it is Sandip. Moreover, the plugin is not included in the experimental cluster and so is not available in the 'Latest Development Build' update center either. So, the only way how to get hold of the latest version is to build it from sources. I did that and can confirm that the plugin works fine in the current trunk (ie. post-6.9 codebase, but close enough to 6.9 to be pretty sure that it is going to work in Nb6.9 build). Unfortunately (and quite understandably), building from sources is not something an average user would want to do.
Created attachment 100199 [details] PathTools NBM built from post-6.9 coudebase
Current workaround: S-F4 A-P C-A C-C ESC
Pathtools works with NB-7.1. Three people confirmed it in http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=676 - see the comments. (Version: 1.4 Source: 1210303533494_org-netbeans-modules-pathtools.nbm)
I installed Path Tools on 7.2 and restarted. I can't see any changes to context menus.
I spoke too soon. I installed version 1.5 from a link in the previous comment and it now works. But... there's still nothing added to the context menu for TABS! I also have CoolEditorActions 1.3.1, which claims to add this functionality to a new menu in the Editor Toolbar. It doesn't. Not for 7.2, anyway. It adds the menu alright, but in includes only "Open in System", "Explore in System", "Select in Projects", "Select in Files" for each component in the path. Cool! No copy path to clipboard, however. There's also CopyQualifiedName 1.0. It adds "Copy qualified name" to the Editor Context Menu.
(In reply to comment #17) > I spoke too soon. I installed version 1.5 from a link in the previous comment > and it now works. > > But... there's still nothing added to the context menu for TABS! Yes you are right. There is no menu entry for the tab. BUT you can click the tab to focus the document and then press the icon for "Copy Path". > > I also have CoolEditorActions 1.3.1, which claims to add this functionality to > a new menu in the Editor Toolbar. It doesn't. Not for 7.2, anyway. It adds > the menu alright, but in includes only "Open in System", "Explore in System", > "Select in Projects", "Select in Files" for each component in the path. Cool! > No copy path to clipboard, however. > I did not see any claim at the plugin site (at the first glance) that this feature is supported. > There's also CopyQualifiedName 1.0. It adds "Copy qualified name" to the > Editor Context Menu. What the point with the plugin?
(In reply to comment #18) > (In reply to comment #17) > > I spoke too soon. I installed version 1.5 from a link in the previous comment > > and it now works. > > > > But... there's still nothing added to the context menu for TABS! > > Yes you are right. There is no menu entry for the tab. BUT you can click the > tab to focus the document and then press the icon for "Copy Path". Not as convenient, but workable. I'd rather not have to switch files just to get the path into the clipboard. Not even the drop-down on the tab group that lists all the files in the tab group can do it. Now that would be convenient. > > I also have CoolEditorActions 1.3.1, which claims to add this functionality to > > a new menu in the Editor Toolbar. It doesn't. Not for 7.2, anyway. It adds > > the menu alright, but in includes only "Open in System", "Explore in System", > > "Select in Projects", "Select in Files" for each component in the path. Cool! > > No copy path to clipboard, however. > > > > I did not see any claim at the plugin site (at the first glance) that this > feature is supported. Sorry. Previous version claimed it in the Plugin Description. I hadn't noticed the claim was gone in the newer version. > > There's also CopyQualifiedName 1.0. It adds "Copy qualified name" to the > > Editor Context Menu. > > What the point with the plugin? More convenient than having to go all the way up to the toolbar.
(In reply to comment #19) > (In reply to comment #18) > > (In reply to comment #17) > > > I spoke too soon. I installed version 1.5 from a link in the previous comment > > > and it now works. > > > > > > But... there's still nothing added to the context menu for TABS! > > > > Yes you are right. There is no menu entry for the tab. BUT you can click the > > tab to focus the document and then press the icon for "Copy Path". > > Not as convenient, but workable. I'd rather not have to switch files just to > get the path into the clipboard. Not even the drop-down on the tab group that > lists all the files in the tab group can do it. Now that would be convenient. I looked it up. It is very easy to integrate the existing 'copy path'-action into the contextmenu of the tab - as you see in http://wiki.netbeans.org/DevFaqActionAddTabPopup - and to integrate in the contextmenu of the current file. BUT the pathtools plugin seams to be unmaintained and cannot be extended this way. Providing a thirdparty-plugin to integrate a thirdparty-plugin is not reasonable. In the end i could do it on my own. I'll provide a contributer-patch in a few days, which reimplements the action and the registration in the contextmenu of the tab and the editor. This way the requested feature could go into the next version of NetBeans IDE.
Created attachment 123488 [details] Proposed copyToClipboard action (In reply to comment #20) > In the end i could do it on my own. I'll provide a contributer-patch in a few > days, which reimplements the action and the registration in the contextmenu of > the tab and the editor. This way the requested feature could go into the next > version of NetBeans IDE. Attached sample code. @NetBeans-Dev: Please review and commit. Action is shown * in context menu of tab (as requested) * as menu item in menu bar at Edit * in context menu of every editor (as requested) It supports DataShadows, so the path of items in the favorites window can be copied properly. It support items within JAR-files. It does not support projects. ToDos: - moving to correct package / module - needs testing / simple unit test required - repositioning of item within the menu
Thank you very much for providing the patch! > Action is shown > * in context menu of tab (as requested) OK > * as menu item in menu bar at Edit > * in context menu of every editor (as requested) The new action was not added to these menus (maybe later). The default actions was set to Alt-Shift-L. > ToDos: > - moving to correct package / module Done. Moved to module utilities. > - needs testing / simple unit test required Done. > - repositioning of item within the menu Done. I've slightly modified the implementation to support multiple selected files. If you select some nodes in Projects window and press Alt-Shift-L, all paths will be copied to clipboard, separated by new line character. http://hg.netbeans.org/core-main/rev/5dd35e929ad7
Integrated into 'main-golden', will be available in build *201209120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5dd35e929ad7 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #153728 - Provide an action to copy the filename + Path to the clipboard
*** Bug 171222 has been marked as a duplicate of this bug. ***
*** Bug 170203 has been marked as a duplicate of this bug. ***
" " would arguably be a more convenient separator than "\n" (or "\r\n") for typical purposes such as pasting into a shell/batch command line. Of course a newline is a bit safer when file paths may contain ' ' as is commonplace on Windows. archiveFileName can never be null so it is senseless to check for it; just use archiveFileName.isEmpty(). It is conventional to place @Messages on the nearest enclosing element using particular keys, in this case setClipboardContents for CTL_Status_CopyToClipboardMulti and CTL_Status_CopyToClipboardSingle.
http://hg.netbeans.org/core-main/rev/c1d4f6ae2209 (In reply to comment #26) > " " would arguably be a more convenient separator than "\n" (or "\r\n") [...] Certainly. Paths that contain spaces are quoted. That hopefully works fine on both Windows and Unix. > Just use archiveFileName.isEmpty() [...] > It is conventional to place @Messages on the nearest enclosing element [...] OK Thank you.
Integrated into 'main-golden', will be available in build *201210070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c1d4f6ae2209 User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #153728: Use space as separator for copied file paths, code cleanup
*** Bug 106788 has been marked as a duplicate of this bug. ***
*** Bug 221418 has been marked as a duplicate of this bug. ***
*** Bug 214515 has been marked as a duplicate of this bug. ***