Skip to content

robert-corlett/SubNotify

 
 

Repository files navigation

SubNotify

Sublime Text notification plugin (Windows|OSX|Linux)

Features

Usage

class SubNotifyTestCommand(sublime_plugin.ApplicationCommand):
    def run(self):
        sublime.run_command("sub_notify", {"title": "SubNotify", "msg": "Debug test popup!", "sound": False})

Growl

By default SubNotify will try and use:

  • Windows: Native taskbar notifications
  • OSX: Notification Center via terminal-notifier (if the correct path is provided)
  • Linux (Ubuntu): OSD via notify-send

To enable growl, in the settings file enable the following setting:

    // Attempt to enable growl if available
    "enable_growl": true,

Windows Taskbar Notifications

Install Pywin32: https://github.com/facelessuser/Pywin32. Make sure Growl is disabled in SubNotify.

Ubuntu OSD

Ensure you have notify-send installed on your system. It should be accessible via the command line. Make sure Growl is disabled in SubNotify.

OSX Notification Center

Ensure you have terminal-notifier installed https://github.com/alloy/terminal-notifier. The recommended way is to install via Ruby gem. See the repo for more info. If the path differs from the default in listed in the settings file, define the absolute path to terminal-notifier:

    // terminal-notifier path for Notification Center
    // Internal default when this is not defined is:
    // /Library/Ruby/Gems/2.0.0/gems/terminal-notifier-1.5.1/bin/terminal-notifier
    // This assumes installed with gem
     "terminal_notifier_path": "/Library/Ruby/Gems/2.0.0/gems/terminal-notifier-1.5.1/bin/terminal-notifier"

Included 3rd Party Libraries

License

SubNotify is released under the MIT license.

Copyright (c) 2013 Isaac Muse isaacmuse@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Sublime Text notification plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%