After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 571749 - Show in File Manager command
Show in File Manager command
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: plugins: file-manager
SVN TRUNK
Other Linux
: Normal enhancement
: ---
Assigned To: Johannes Schmid
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2009-02-14 16:16 UTC by Adam Dingle
Modified: 2013-01-23 20:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
file-manager: Add "Open in File manager" action to document popup. (2.70 KB, patch)
2013-01-21 21:13 UTC, Carl-Anton Ingmarsson
reviewed Details | Review
file-manager: Add "Show in File manager" action to document popup. (2.80 KB, patch)
2013-01-21 22:34 UTC, Carl-Anton Ingmarsson
committed Details | Review

Description Adam Dingle 2009-02-14 16:16:14 UTC
Sometimes I have a project file open and I'd like to find it in the file manager tree.  Today, I have to move my cursor over the file's tab to see a tooltip with the file's full path, then manually drill down through the file manager tree to find the file.  Instead, it would be great if the document context menu (which appears when I right-click anywhere in the document) had a command "Show in File Manager".  When I select this command, the file manager would automatically open all containing directories and select the file.
Comment 1 Johannes Schmid 2009-02-14 19:50:42 UTC
What would be the benefit to find the file in the tree? BTW, it's not very trivial to open a random directory directly (and doing this async...).
Comment 2 Adam Dingle 2009-02-14 20:22:11 UTC
Well, here's one example where this would have been useful to me today.  I was using Anjuta to work on a large project (WebKit, if you're curious) with many nested directories.  I started Anjuta and used the File->Open Recent menu to open a Perl script in a deeply nested directory inside the project.  After a while, I decided that I wanted to look a related Perl script which I knew was in the same directory.  With the Show in File Manager command, I could have quickly found the script I was editing in the tree and then opened other scripts in the same directory.

Other benefits of finding the file in the tree would include
- seeing its Subversion status, indicated by its tree icon
- being able to perform file manager context menu commands on the file, such as [Open With] to open it in an external application
Comment 3 Adam Dingle 2009-02-14 20:23:34 UTC
By the way, I know this might not be trivial to implement, so implementing this may not be a high priority.  But I still think it would be to useful to have this capability at some point.
Comment 4 Filipe 2009-06-17 12:16:37 UTC
For a final year assignment we were told to implement a bug fix/feature enhancement, if you guys don't mind I would like to implement this feature if it gets approved by the teaching assistant.
Comment 5 Johannes Schmid 2009-06-17 15:12:01 UTC
Sure, you can do that!
Comment 6 Filipe 2009-06-24 08:48:31 UTC
Sorry guys, the teaching assistant didn't approve. He said that since we have very limited time I should pick an easier bug/feature request.
Comment 7 Carl-Anton Ingmarsson 2013-01-21 21:13:25 UTC
Created attachment 234049 [details] [review]
file-manager: Add "Open in File manager" action to document popup.
Comment 8 Sébastien Granjoux 2013-01-21 22:08:47 UTC
Review of attachment 234049 [details] [review]:

Thanks for fixing this, it's good but I have two remarks.

I think it would be better to name the menu item "Show in File manager" or "Select in File manager". With "Open in File manager", I expect to create a new window or something like this.

Then, I think you have to use "anjuta_shell_present_widget (ANJUTA_PLUGIN (file_manager)->shell, file_manager->sw, NULL);" to make sure that the file manager window is displayed. Without that, the menu item seems to have no effect if the file manager is not displayed.
Comment 9 Carl-Anton Ingmarsson 2013-01-21 22:34:43 UTC
Created attachment 234053 [details] [review]
file-manager: Add "Show in File manager" action to document popup.
Comment 10 Sébastien Granjoux 2013-01-22 18:06:09 UTC
Review of attachment 234053 [details] [review]:

Thank, you can commit such changes directly if you agree with my comments.