Unable to Open Bookmarks to Local Text Files in External Editor
In MSIE, it's absolutely no problem to create bookmarks to open local text files in an external editor. In Firefox, bookmarked local text files are opened in an internal browser window – and unbelievable enough, there seems to be no way to change this behavior :( Does anyone have an idea how I can manage to bookmark local files with Firefox in a way so that these files are opened in external applications? Editing the MIME type handling didn't succeed so far, as the handling of internal MIME types (text/html, text/css, text/plain etc.) unfortunatly overrides any configuration similar to the handling of external MIME types (image/jpg, video/avi etc.) = editing the mimeTypes.rdf or the like doesn't come to any effect.
Modified by FFmurphy
Additional System Details
Every time Firefox opened
This started when...
I tried to bookmark local files in FF like I did in MSIE
- Winamp Application Detector
- The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
- Default Plug-in
- Adobe PDF Plug-In For Firefox and Netscape "9.4.0"
- Shockwave Flash 10.1 r85
- DivX Web Player version 220.127.116.11
- Next Generation Java Plug-in 1.6.0_21 for Mozilla browsers
- NPRuntime Script Plug-in Library for Java(TM) Deploy
- Windows Presentation Foundation (WPF) plug-in for Mozilla browsers
- RealPlayer(tm) LiveConnect-Enabled Plug-In
- RealJukebox Netscape Plugin
- Google Update
- Version 1.1.4, copyright 1996-2010 The VideoLAN Teamhttp://www.videolan.org/
- Npdsplay dll
- DRM Store Netscape Plugin
- DRM Netscape Network Object
- User Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:18.104.22.168) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)
Firefox will always open a local text file in a browser tab. A MIME type only applies to files from a (local) web server and not for files that you open locally via file://
External Application Buttons mod for Firefox 3.0+: https://addons.mozilla.org/firefox/addon/12892
Since Firefox didn't seem to make any difference between local files and server files (as opposed to MSIE, which does) I saw the only chance to alter the unwanted behavior in changing the MIME type handling – but however, this didn't succeed even for server files, since the handling of internal MIME types like text/plain apparently can't be changed anyway ... which we do not have to understand :|
I already edited the values view_source.editor.external and view_source.editor.path ... unfortunately this only has effect on viewing source code (e.g. by Ctrl+U), but not on the loading of txt-files; neither locally (file:///) nor remote (http://).
If this could be influenced in the same way as source code viewing, that would be the solution.
Once the file has opened in a tab you can use "View > Page Source" to open the file in the text editor. I don't know of a way to override the default behavior for files send as text/plain, so you will have to do that extra step.
A possibility is to create a custom button that prompts for a link and opens that link in that text editor.
The first suggestion of course is self-evident, and therefore pressing Ctrl+U (see my last posting where this was mentioned already) after opening a text file has been my workaround ever since.
The second suggestion (basically producing the same effect) for me is not an expedient alternative since I mostly use the keyboard – and have to use it anyway once the editor has opened up.
The disadvantage of both is that an external editor doesn't provide clickable links as the internal source code viewer does (which is why I would like to keep the latter) and that these are only workarounds not solving the original problem.
Having reached this point already, I posted my request above ... ;)
Modified by FFmurphy
I don't know if this will help with the original inquiry or not, but I may have found an extremely limited solution with the LocalLink extension: https://addons.mozilla.org/en-US/firefox/addon/locallink/
Once this add-on is installed, the following file formats can be opened in their own applications from FireFox bookmarks: -- .doc -- .rft
These files all open in and download (as a new file) from the browser: -- .pdf -- .xls -- .exe
The following files all open (and display) in the browser and are not editable: -- .jpg -- .gif -- .txt
In light of all these limitations, I'm wondering: has anyone else found a better solution to opening local files from the Bookmarks manager?
Modified by Metta
thanks for replying to the subject, and sorry for my late answer.
Unfortunately, this add-on deals with a completely different matter. Regarding the description on the extension homepage it affects the handling of file://-links on webpages with http://-links only.
Bookmarks of .doc, .rtf, .xls and other office file formats open these documents as downloads (not being displayed in the browser) anyway, this is the default behavior. Once you have checked the option "Do this automatically for files like this from now on" all the according documents are opened in their own applications directly without seeing the firefox open dialog.
So if you encounter different behavoir concerning these file formats this is only dependent on you personal settings, but not on the add-on you have mentioned.
Apart from that, this wouldn't solve the original problem, since this is only related to the handling of internal MIME types (like text/plain = .txt format) as specified in my first post, but not to file types that are external anyway.
Modified by FFmurphy