GithubHelp home page GithubHelp logo

Comments (3)

sinic avatar sinic commented on July 30, 2024

The implemented specification prescribes semantics that go beyond simple linear output. There's an expectation, for example, that notifications get closed at some point (by the user, by the application, or by expiry). And if graphical representations of notifications stick around beyond their true lifetime, a user might try to invoke actions on notifications that the application no longer knows about.

That said, there's a hook ednc-notification-presentation-functions, by default containing the internal ednc--update-log-buffer function, that you can take a look at for inspiration. If you're okay with confusing behavior like the one I described above, you can put a function there that simply appends (the data of the new) notification to a file, or calls some external program.

from ednc.

formula-spectre avatar formula-spectre commented on July 30, 2024

i just want emacs to be my notification manager but also a pop up man
jk, i'll take a look; i'll leave this open until I find a hack (or a curse) that allows me to achieve it

from ednc.

sinic avatar sinic commented on July 30, 2024

i just want emacs to be my notification manager but also a pop up man

To be clear, the ednc-notification-presentation-functions hook can contain an arbitrary number of functions. If you keep the ednc--update-log-buffer function in there, EDNC keeps working as it does by default, but at the same time you can have a function in there that calls external programs, or appends notifications to a file, or whatever.

Just be aware that there are situations where the behaviour of the external program might look odd. In that case you can resort to the regular EDNC way of doing things.

from ednc.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.