| Summary: | Ability to specify default editor for text files | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Client | Assignee: | Mark Macdonald <mamacdon> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | johnjbarton, susan |
| Version: | 0.2 | ||
| Target Milestone: | 0.4 M1 | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Mark Macdonald
*** 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. |