Closed depressiveRobot closed 9 years ago
Any error message in the console? I'll have a look this evening, thanks for the report. BTW I only tested this for Linux but I'd happily try to make it work for OS X and PR are most welcome :wink:
There is no output in the console when selecting the WAR file...
Is there a way to see if your plugins gets triggered?
One thing worth mentioning: the plugin closes the preview for bin files the first time you open them, but the second time in a row that the same file is opened it does not close it. This is on purpose, as to simulate "double-click forces open".
@depressiveRobot I tested the plugin on a MacBook pro and it seems to work ok.
Can you see if there are exceptions in the ST console when the plugin gets loaded (at the beginning of the console's output there's a list of all plugins loaded).
To see if the plugin is triggered you can add a print
statement at the beginning of on_load
.
BTW I am committing some new changes that affect the "double-click" behaviour I was refering to in the previous post.
Ok, reinstalled. Now it works for PDF files and WAR archives. But JPGs still opened in the editor.
Ah yes, JPGs are opened by ST3 automatically (this is a new feature not present in ST2).
ST3 bypasses EventListeners of any plugin when opening images and this is why the plugin does not have the chance of triggering.
Even more sadly, image preview views return None
as file_name()
so even the open_externally
command will not work on them.
Have you opened an issue for that?
Just did :wink: SublimeTextIssues/Core#986
:+1:
Hello!
I just stumbled over your plugin, exactly what I want! :+1:
Unfortunately, I doesn't work for me. Here is my configuration:
When clicking on a WAR file, it still tries to open it. Same for JPGs etc.
OS X 10.10.5 Sublime Text Build 3083