-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nova opens go.mod in video player #19
Comments
Hi there! Indeed, that's a 'known' problem — it happens to me, too!
That said, I usually 'fix' this by doing the following:
However, I cannot guarantee that this will work consistently all the time... There are some (old) instructions on how to correctly assign file extensions to specific applications and their respective icons. However, this is something that has to be done 'inside' the Nova code, not via an extension/plugin. I believe that the Panic developers may have put some code in Nova to invoke the Launch Services and register new file extensions when a Nova extension uses it (which would be the way I'd do it, if I were Panic!), and un-register it when the Nova extension is deactivated. But I have no idea how exactly Nova does it. It's conceivable that Nova will first ask the Launch Services if a file extension is already registered before asking it to register that file extension on Nova's behalf; this would explain why 'nothing happens' when a different application already has requested it. However, this is not 100% consistent with Apple's description of how the Launch Services are supposed to handle multiple applications registering the same file extension; unlike what happens under other operating systems (Windows, for instance), you can have several applications notifying the Launch Services that they are able to open a specific file extension; that's how macOS 'knows' what are the 'recommended' applications to launch a specific file, for instance, and how the system can notify the user when it's unknown if a specific application can or cannot launch a certain file. All that 'magic' is supposed to happen in the background. For instance, this is how Nova registers with the Launch Services that anything finishing with In fact, if you open Using However, this is not the only way of registering file extensions, it's just the easiest. You can do that programatically, dynamically, depending on specific circumstances. In the case of Nova, it would make sense to register new file extensions declared by Nova extensions, once such extensions are installed and activated. But I don't really know if this is the case (much less why Please take into account that I'm not a professional Apple developer (not even an amateur one!). All the above comes mostly from reading documentation and a few StackExchange answers on the subject. I have no experience whatsoever in writing Apple applications 😅 so it's possible that everything I wrote is just plainly wrong. But please go ahead and try the 7 steps above for a possible 'fix'. With luck, you'll get things working, even if the icon will refuse to change. For now, this is the 'best' answer I can give to your issue — one that, as you so well pointed out, very likely affects most macOS users (since it's highly likely that practically everybody will have installed at least one other application that registered Oh, and by the way, historically, MOD files were used on the Commodore Amiga to store music tracks. It was a very popular format at the time, and lots of different platforms tended to use the same file format, or, at least, be able to convert to and from it. VLC, for instance, is still perfectly able to 'play' Amiga MOD files; it's not surprising, therefore, that some application might have registered You can also get a few real Amiga MODs to play from https://modarchive.org/ — VLC will play them flawlessly. I've tried, though, but Nova's built-in audiovisual player cannot (neither can QuickTime, at least not in my system). I suspect that Anyway, sorry for the delay in answering — and for writing such an elaborate answer... |
Yeah so since opening this issue, I figured I can go in Novas Preferences > Editor > Files and create a custom file type specifically for Of course, the extension should do this automatically but this depends on Nova letting it, which currently does not seem to be the case. So the proper state of this issue is probably „blocked by upstream“. I figure this has happened when I installed VLC. Thanks for all the text, you seem to have enjoyed writing it :) |
You're right — as far as I know, extensions do not have the ability (yet) to add custom file types to the editor in that way. Probably they're not even meant to ever do that, I don't know. I'll ask around in the dev forums again and see if someone from Panic replies (sometimes, @logan does). I've flagged this as blocked by upstream as you so very well suggested and I'll keep it open just to see if it's 'fixable' in future versions of Nova... And aye, I did enjoy writing the answer lol :-) |
When I click on a
go.mod
file, Nova opens a dysfunctional video player interface instead of an editor.Since this extension provides a syntax for
go.mod
files, I assume that either a recent Nova update has broken this, or there is some setting I am unable to find to fix this.I am mainly opening this issue to see whether this is a problem with my personal configuration or affects other people as well.
The text was updated successfully, but these errors were encountered: