Comments (14)
I did start with your notification module, but agreed with Habbie to drop back to the notify module because the newer one seems to require 10.10 (thus sparking the Issue about module OS versioning ;)
from hammerspoon.
I'll look closer... I thought about using some of the 10.10 only features, but I thought I finally decided against it... maybe I'm remembering wrong...
On Oct 17, 2014, at 5:54 AM, Chris Jones [email protected] wrote:
I did start with your notification module, but agreed with Habbie to drop back to the notify module because the newer one seems to require 10.10 (thus sparking the Issue about module OS versioning ;)
—
Reply to this email directly or view it on GitHub #44 (comment).
from hammerspoon.
I'm adding a 10.8 virtual machine so I can test stuff against it as well as 10.10... looking at the notification code, I think the only 10.9 and 10.10 stuff currently not commented out is a couple of activation types that we can't even request with the module... I'll remove those as well. If I can confirm it works in 10.8 (the first that I believe supported ANY notification center), I'll put this in as a replacement and generate a new pull request. I've been thinking that if I do decide to add the 10.10 stuff, it would be in a separate module that "adds to" this one, so it will be clearly marked and optional.
from hammerspoon.
❤️
from hammerspoon.
Hmm... the precompiled version of HS doesn't run under 10.8 (require 10.9+). FWIW, Mjolnir does.
So... how far back do we want to go? I personally don't think we should go back further than 10.8, but I can argue 10.8 both ways... definitely 10.9+
from hammerspoon.
The decision to set the minimum at 10.9 was pretty arbitrary. I'm not opposed to setting it to 10.8 if it doesn't break anything.
from hammerspoon.
I don't know what the time frame is on getting 1.0 out, but I'm having problems with notification... Under some conditions, it crashes when sending a new notification after a restart. I think I know what the problem is, but the fix is non-trivial, and I want to rewrite portions of the code anyways to make it cleaner and easier to extend later... I have confirmed that notify does not have this problem, so if this ends up being a hold out to release, then go with notify for now. I'll update this when I'm ready to submit notification for testing.
I also plan on keeping notification able to functionally drop in and replace notify, so it will provide new functionality without breaking backwards compatibility if notify does get released first.
from hammerspoon.
FWIW, there is no timeframe for 1.0. It'll happen when we're ready for it. There's still a fair amount of documentation/tutorial stuff to write. I don't think the full notification extension is a blocker for 1.0, but it would certainly be nice to have.
from hammerspoon.
@asmagil how close to landable would you say this module is? We've got at least one crashed bug in hs.notify, and looking at the code I'm not at all happy with the module, so I'm wondering if we can replace it with less effort than fixing it!
from hammerspoon.
I'll take a look at it this weekend and let you know... iirc the problem was with inconsistent garbage collection, which I understand better now, so hopefully it won't be too difficult to finish.
On Jan 10, 2015, at 5:49 PM, Chris Jones [email protected] wrote:
@asmagil how close to landable would you say this module is? We've got at least one crashed bug in hs.notify, and looking at the code I'm not at all happy with the module, so I'm wondering if we can replace it with less effort than fixing it!
—
Reply to this email directly or view it on GitHub #44 (comment).
from hammerspoon.
Ok, I almost have a version of it ready for deploying for testing -- hope to have it ready tonight. I haven't looked at the github site yet, but is there a specific issue entered which details the hs.notify crash you speak of below? I'd like to see if this suffers from a similar issue before putting it out there.
Also not that this does not yet support scheduled notifications (i.e. those that you want sent at a specific time) or allow you to override the banner/alert style set in the Notification System Preferences panel; I plan to add those as a separate and probably third-party module or 2, as they are either 10.10 specific or use undocumented API's or both.
On Jan 10, 2015, at 5:49 PM, Chris Jones [email protected] wrote:
@asmagil how close to landable would you say this module is? We've got at least one crashed bug in hs.notify, and looking at the code I'm not at all happy with the module, so I'm wondering if we can replace it with less effort than fixing it!
—
Reply to this email directly or view it on GitHub #44 (comment).
from hammerspoon.
Ok, I think it's ready for public testing/perusal/nit-picking... still need to convert to the more expansive doc style, but that can wait for now...
It's at https://github.com/asmagill/hammerspoon_asm/tree/experiemental https://github.com/asmagill/hammerspoon_asm/tree/experiemental, if you want to take a look at it.
I'm more than happy to merge a hammerspoon only version into the core and issue a pull request, but what name should I give it? I'm leaning towards installing it as hs.notification, leaving hs.notify alone for now... after it's been reviewed and tested a bit by others, we can either drop hs.notify, or replace hs.notify with the portions of hs.notification that apply and have hs.notify require hs.notification. But I'll take your lead and issue the pull then.
On Jan 10, 2015, at 5:49 PM, Chris Jones [email protected] wrote:
@asmagil how close to landable would you say this module is? We've got at least one crashed bug in hs.notify, and looking at the code I'm not at all happy with the module, so I'm wondering if we can replace it with less effort than fixing it!
—
Reply to this email directly or view it on GitHub #44 (comment).
from hammerspoon.
Given that the extension provides backwards compatibility, I think we should kick the tyres a bit and then land it as a replacement for hs.notify. If we land it as hs.notification and then migrate it to hs.notify later, we'll confuse people and probably end up carrying a compatibility shim, which will be confusing for new users.
from hammerspoon.
This is now merged into 0.9.17. Thanks!
from hammerspoon.
Related Issues (20)
- [bug] Hammerspoon (and forked child processes) can't see files in `/Applications` when launched as a Login Item HOT 10
- Unable to set global varable in Hammerspoon Lua HOT 13
- Hammerspoon crashes upon hs.reload(), and won't successfully execute again until macOS reboot
- Shift agruments in `hotkey.new`
- Is there a solution to implement SpaceFN
- Hammerspoon does not respond/hang when the frontmost application does not respond
- Feature Request: I would like to know if a modal is in the state active HOT 1
- Feature request: `:keydown` callback for `hs.chooser`
- Delete Preferences modal is confusing
- Moving Apps To Spaces HOT 2
- Memory is growing up to 2-4GB after some time - how to debug? HOT 1
- ** Warning: LuaSkin: hs.audiodevice.watcher callback fired, but theWatcher is nil. This is a bug
- ERROR: hotkey.lua:415: key must be a string or a number HOT 6
- Create Helper apps with Hammerspoon and sell it? HOT 2
- attempt to call a nil value (method 'setCallback')
- A way to prevent hs.alert.show() from stealing focus? HOT 1
- Unexpected behavior when moving a window with `moveToUnit` HOT 2
- hs.window:raise() focuses raised window when other window for same application is focused HOT 1
- hs.window.filter stops emitting windowFocused events for application if one window has tabs HOT 1
- Add functions to hs.mouse to get more information about cursor type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hammerspoon.