Comments (1)
Thanks for your feedback! Judging by the GitHub stats, the mention by Sacha Chua is responsible for most of the recent interest in this package. Since you mentioned EXWM, I think of most of its users as potential users of EDNC as well, but they are hard to reach without spamming the project at places specific to EXWM. Seems I have to rely on word of mouth here.
Since I use exwm and as per my experiments it does not seem frames stack in exwm (though I could be wrong, I'll ask about this), I tried postframe.
This appears not to be possible in EXWM, unfortunately. One can get pretty close to what I think you want without using external packages. With the following function, an appropriately sized window should almost always appear at the bottom (though not at the bottom right) of the frame, and disappear once the notification is closed:
(defun show-notification-in-buffer (old new)
(let ((name (format "Notification %d" (ednc-notification-id (or old new)))))
(with-current-buffer (get-buffer-create name)
(if new (let ((inhibit-read-only t))
(if old (erase-buffer) (ednc-view-mode))
(save-excursion (insert (ednc-format-notification new t)))
(pop-to-buffer (current-buffer)
(cons #'display-buffer-at-bottom
'((window-height . fit-window-to-buffer)
(dedicated . t)))))
(kill-buffer)))))
I deliberately kept the functions in the README as minimal as possible, though, to encourage users to build their personal solution on top of EDNC, as that will be superior to anything I could possibly come up with. Nothing wrong with relying on external packages like posframe either!
I want to propose to add a simple example on how to actually see a notification happening.
Done. Unfortunately the notifications
library makes it a little too easy to create notifications that are in violation of the standard (e.g., by missing a default action).
from ednc.
Related Issues (11)
- FYI: if-let, when-let, pcase-let HOT 9
- Screenshots HOT 4
- ednc--get-hint errors out on valid association list HOT 4
- ednc-dismiss-notification key binding not working for me HOT 4
- Displaying new notifications in new frames is undocumented
- Support for embedded URLs could be better HOT 1
- Support for embedded images could be better HOT 5
- Interference by `openwith.el` HOT 5
- Feature requests HOT 2
- would calling something like herbe/wayherb still be possible with an hook with ednc? HOT 3
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 ednc.