Skip to content
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

feat: add OSC-777 support for system notifications #99

Merged
merged 1 commit into from Nov 1, 2022
Merged

Conversation

muesli
Copy link
Owner

@muesli muesli commented Nov 1, 2022

Adds support for system notifications via OSC-777.

Copy link
Collaborator

@caarlos0 caarlos0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

import "fmt"

// Notification triggers a notification using OSC777.
func Notification(title, body string) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity was there a reason this was named Notification as opposed to Notify?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I'll rename this since it wasn't part of a release yet.

@maaslalani
Copy link
Collaborator

This is super cool!

@mathaou
Copy link

mathaou commented Nov 1, 2022

Huzzah!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants