Commit graph

70 commits

Author SHA1 Message Date
Folke Lemaitre
a13c891a59
fix(notifier): keep notif when current buf is notif buf 2025-02-16 08:21:33 +01:00
Folke Lemaitre
2b38a19dc9
feat(notifier) added opts.filter to filter out unwanted notifications. Closes #431 2025-01-20 13:08:14 +01:00
Folke Lemaitre
daa575e3cd
fix(notifier): added SnacksNotifierMinimal. Closes #410 2025-01-20 12:49:41 +01:00
Folke Lemaitre
f29f7a433a
fix(notifier): win:close instead of win:hide 2025-01-19 23:40:36 +01:00
Folke Lemaitre
0e277379ea
fix(notifier): content width. Fixes #631 2025-01-19 11:01:48 +01:00
Folke Lemaitre
cf5f56a1d8
perf(notifier): skip processing during search. See #627 2025-01-19 10:53:47 +01:00
Iordanis Petkakis
d2b5680359
fix(notifier): open history window with correct style (#307)
## Description
This
[commit](fd9ef30206)
renamed the style for `history_notification`, but opening the window
still used the old name.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->
2024-12-15 13:24:16 +01:00
Folke Lemaitre
fd9ef30206
fix(notifier): rename style notification.history -> notification_history 2024-12-15 11:17:12 +01:00
Marcin
8f56e19f91
feat(notifier): notification history option (#297)
## Description

<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

Option to exclude some notifications from notification history,
for example, when dealing with spinners.

## Related Issue(s)

<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->
2024-12-15 07:46:27 +01:00
Folke Lemaitre
12e68a33b5
fix(notifier): set modifiable=false for notifier history 2024-12-13 13:36:59 +01:00
Folke Lemaitre
8b58b55e40
fix(notifier): toggle show history. Fixes #197 2024-12-11 22:26:23 +01:00
Folke Lemaitre
140204fde5 build: added metadata to plugins 2024-12-10 13:55:51 +01:00
Folke Lemaitre
0194f18cfa refactor: auto-gen plugin types 2024-12-10 13:55:51 +01:00
Folke Lemaitre
e26ab0ef2c
style(notifier): title 2024-12-02 20:11:46 +01:00
Folke Lemaitre
5a50738b8e
feat(notifier): reverse notif history by default for show_history 2024-12-01 09:30:19 +01:00
Folke Lemaitre
0bbc9e7ae6
fix(notifier): gracefully handle E565 errors 2024-11-23 13:10:33 +01:00
Folke Lemaitre
02d90ff843
docs(notifier): docgen 2024-11-23 00:04:35 +01:00
Folke Lemaitre
bebd7e70cd
feat(notifier): added history opts.reverse 2024-11-23 00:03:02 +01:00
Folke Lemaitre
0c7f7c5970
fix(notifier): always show notifs directly when blocking 2024-11-22 23:52:50 +01:00
Folke Lemaitre
cf72c06ee6
feat(notifier): show indicator when notif has more lines. Closes #112 2024-11-20 20:15:41 +01:00
Folke Lemaitre
7a061de75f
fix(notifier): hide existing nofif if higher prio notif arrives and no free space for lower notif 2024-11-20 18:07:57 +01:00
Folke Lemaitre
99f1f49104
fix(notifier): also handle timeout = false / timeout = true. See #102 2024-11-18 23:30:09 +01:00
Folke Lemaitre
0cf22a8d87
feat(notifier): timeout=0 keeps the notif visible till manually hidden. Closes #102 2024-11-18 23:13:56 +01:00
Folke Lemaitre
d540fa607c
feat(dashboard): added new dashboard snack (#77)
## Description

A new dashboard plugin that comes with sane defaults, and can be fully
customized to your liking.

## Screenshots


![image](https://github.com/user-attachments/assets/944373ea-f443-4c16-bfe0-2dc78101f8f5)


![image](https://github.com/user-attachments/assets/492b075e-168d-4d58-af39-1268c047f374)


![image](https://github.com/user-attachments/assets/53a388c2-ca5a-4efb-94f2-752222f43584)


![image](https://github.com/user-attachments/assets/3c6ee94b-6785-4035-8ed2-2f67f39b5f06)


![image](https://github.com/user-attachments/assets/5b7a7117-e504-4b36-88db-91ccc89d8997)
2024-11-18 16:25:17 +01:00
Folke Lemaitre
73b1e20d38
feat(notifier): global keep when in cmdline 2024-11-18 08:57:32 +01:00
Folke Lemaitre
ec9cfb36b1
feat(notifier): allow specifying a minimal level to show notifications. See #82 2024-11-16 07:21:27 +01:00
Iordanis Petkakis
bc80bdcc62
fix(notifier): no gap in border without title/icon (#85)
## Description
Don't put padding with no title and no icon, so that there is no gap in
the border.
<!-- Describe the big picture of your changes to communicate to the
maintainers
  why we should accept this pull request. -->

## Related Issue(s)
Fixes #84.
<!--
  If this PR fixes any issues, please link to the issue here.
  - Fixes #<issue_number>
-->

## Screenshots

<!-- Add screenshots of the changes if applicable. -->

---------

Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
2024-11-16 06:58:28 +01:00
Folke Lemaitre
1c4c74828f feat(health): added health checks to plugins 2024-11-14 23:56:37 +01:00
Chris Grieser
7627b81d9f
fix(notifier): disable colorcolumn by default (#66)
## Description
`colorcolumn` should be disabled by default, since in most cases, the
user will not want to have them displayed in a notification.

## Screenshots
before:
![Pasted image 2024-11-12 at 19 59
40](https://github.com/user-attachments/assets/c866b87a-6cae-4cb1-9a0c-a769acb3e99a)

after:
![Pasted image 2024-11-12 at 20 02
06](https://github.com/user-attachments/assets/55dc0ea7-34f1-47c4-aaf7-f55175422506)
2024-11-12 20:09:37 +01:00
Folke Lemaitre
09a6f17ecc
fix(notifier): take title/footer into account to determine notification width. Fixes #54 2024-11-11 11:07:28 +01:00
Folke Lemaitre
da86b1deff
perf(notifier): only force redraw for new windows and for updated while search is not active. Fixes #52 2024-11-09 21:47:53 +01:00
Folke Lemaitre
df8c9d7724
feat(notifier): added refresh option configurable 2024-11-09 21:47:04 +01:00
Folke Lemaitre
4f99818b0a
fix: added compatibility with Neovim >= 0.9.4 2024-11-09 15:38:43 +01:00
Folke Lemaitre
9b9777ec3b
feat(notifier): added backward compatibility for nvim-notify's replace option 2024-11-09 14:44:48 +01:00
Folke Lemaitre
7e6ea65f5f
docs: better docgen using treesitter 2024-11-09 14:42:09 +01:00
Folke Lemaitre
7f9f691a12
fix(notifier): update layout on vim resize 2024-11-08 21:19:14 +01:00
Folke Lemaitre
b8cc93e273
fix(notifier): re-apply winhl since level might have changed with a replace 2024-11-08 09:28:13 +01:00
Folke Lemaitre
8512896228
perf(notifier): optimize layout code 2024-11-08 08:07:41 +01:00
Folke Lemaitre
08190a5458
perf(notifier): skip processing queue when free space is smaller than min height 2024-11-08 00:10:51 +01:00
Folke Lemaitre
662795c285
fix(notifier): set default conceallevel=2 2024-11-07 22:31:13 +01:00
Folke Lemaitre
65d8c8f00b
feat(notifier): added history to notifier. Closes #14 2024-11-07 22:25:03 +01:00
Folke Lemaitre
5df4394c60
perf(notifier): index queue by id 2024-11-07 20:43:37 +01:00
Folke Lemaitre
080e0d4039
feat(notifier): added option to show notifs top-down or bottom-up. Closes #9 2024-11-07 11:41:51 +01:00
Folke Lemaitre
9bdb24e735
fix(notifier): try to keep layout when replacing notifs 2024-11-07 11:21:37 +01:00
Folke Lemaitre
8bcb2bc805
feat(notifier): allow overriding hl groups per notification 2024-11-07 11:08:31 +01:00
Folke Lemaitre
36e9f45302
feat(notifier): allow setting dynamic options 2024-11-07 10:47:06 +01:00
Folke Lemaitre
cad236f9bb
feat(win): allow setting ft just for highlighting without actually changing the filetype 2024-11-07 00:17:39 +01:00
Folke Lemaitre
8a96888409
feat(notifier): allow config of default filetype 2024-11-06 18:56:20 +01:00
Folke Lemaitre
fd57c24301
fix(notifier): modifiable 2024-11-06 18:53:18 +01:00
Folke Lemaitre
d9a1f23e21
fix(notifier): sorting 2024-11-06 18:35:16 +01:00