본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Unable to Open Bookmarks to Local Text Files in External Editor

  • 6 답장
  • 15 이 문제를 만남
  • 1 보기
  • 최종 답변자: FFmurphy

more options

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.

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.

글쓴이 FFmurphy 수정일시

모든 댓글 (6)

more options

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://


See:


External Application Buttons mod for Firefox 3.0+: https://addons.mozilla.org/firefox/addon/12892

more options

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.

more options

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.

more options

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 ... ;)

글쓴이 FFmurphy 수정일시

more options

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?

글쓴이 Metta 수정일시

more options

Dear 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.

글쓴이 FFmurphy 수정일시