Community
Participate
Working Groups
Orion 0.3M2 1. Go to the Navigator. 2. Create a file with some unrecognized extension -- for example foo.jsp 3. There is no UI for opening an editor on this file. The navigator simply generates a link to view the raw file contents (which is empty). I would like to have the choice of viewing the file or editing it. I should also be able to associate it with a registered editor as a user preference.
*** Bug 365263 has been marked as a duplicate of this bug. ***
I keep hitting this too. For example *.properties and other random text files. I'm tempted to say by default we always try to open in the editor, and have another "View" or "Display" command in the Actions column.
*** Bug 363063 has been marked as a duplicate of this bug. ***
Perhaps we can allow an editor be designated as the default to fallback on if nothing better is found. The Orion editor would do this so random file types could be edited easily. However certain types (GIF/PNG/JPG/etc) should always get the "View" action as the default unless there's some pixel editor available to actually edit them.
I added an "orion.navigate.openWith.default" service. An editor ID can be registered with this service, which sets it as the default to use for opening files when a more specific editor isn't found. Images are still handled as a special case in the navigator: they get a direct link and a thumbnail instead of the default editor. Anyway, I still like the idea of having a View/Display action in the Actions menu. It would be a good way to get a raw view of a file, and it also gives you a quick hook for downloading a single file (right-click > Save Link As).
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=1280fc1e08f5d44573d52b07c6af110b715cfcac Note that you'll probably have to do a localStorage.clear() after you pick up the fix, or you won't see any effect. See 365663.