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
Developer procedure #6
Comments
Provide a minimal way to install/manage modules
|
CONTRIBUTING.md covers the angles for devs who want to submit their modules to us. |
@Habbie how do you feel about deferring this past 1.0? I'm not seeing any interest in working on this, and I'm starting to think maybe we leave it until someone actually asks how they can distribute third party extensions. It shouldn't need any code changes in Hammerspoon at that point, right? Just documentation for how they should do it. |
I agree, it's not a blocker. |
Longer term, I don't necessarily see this as being restricted to developers. What if a normal user wants to install a module that gives them functionality out of the box, like a full-on window manager? They could install as many of these as they want to customize their OSX workflow, just like plugins in a text editor. Is this a use case you want to support? |
@tmandry yes, I think that is worth supporting, although I'd still like to explore having them shipped with Hammerspoon where possible. If an extension was suitably crafted, a user could either just enable a given set of behaviours when Hammerspoon loads, or have hotkeys that flip them into different modes. Either way, we support loading extensions from ~/.hammerspoon/ now, so it's already possible for people to distribute extensions outside of the app :) |
I'm going to re-milestone this for 1.0, because it is a question that's come up twice now, so I think we should cover it in some docs somewhere. |
Sounds good. I think there is a lot of merit in having separate release cycles for plugins whose maintainers want to update them regularly. Sounds like ~/.hammerspoon will work for now. |
I'd like to do a new pure lua extension. Do I have to rebuild the app in XCode every time I want to test my extension? Or can I just drop it in a folder somewhere and it'll get picked up and reloaded every time my config is reloaded? I've read this and seen this but neither were explicit about how to test this simple case of a pure lua extension. Thanks! |
Hey... I'm sure it was obvious to most, but I just figured out how to test a pure lua extension easy... All I had to do was create a new folder at: /Applications/Hammerspoon.app/Contents/Resources/extensions/hs/my_extension and drop the init.lua file in there, and it's working great. Thanks! |
@bradparks yep, that works. you can also put it into ~/.hammerspoon/ which may be easier |
yes, better put it into |
ah! good point... thanks a bunch! |
#5 - `hs.urlevent` updates.
I'm going to close this out - we have Spoons now, which likely cover much of what this issue was intended to cover. |
Normal users ('the 99%') will make do with the modules we include, and will not have to bother with brew or rocks or whatever.
For the rest, being developers, and users who want beta stuff, we need to document how to submit and how to use third party mods. Probably comes down to how Mjolnir works right now for all modules.
The text was updated successfully, but these errors were encountered: