GNOME Bugzilla – Bug 571749
Show in File Manager command
Last modified: 2013-01-23 20:26:45 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.
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...).
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
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.
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.
Sure, you can do that!
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.
Created attachment 234049 [details] [review] file-manager: Add "Open in File manager" action to document popup.
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.
Created attachment 234053 [details] [review] file-manager: Add "Show in File manager" action to document popup.
Review of attachment 234053 [details] [review]: Thank, you can commit such changes directly if you agree with my comments.