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

How do I clear Notification history? #158

Open
miversen33 opened this issue Nov 23, 2022 · 5 comments · May be fixed by #248
Open

How do I clear Notification history? #158

miversen33 opened this issue Nov 23, 2022 · 5 comments · May be fixed by #248

Comments

@miversen33
Copy link

Looking through the readme, it looks like we can view the notification history, but I am not seeing a way to clear it out. Am I missing something?

@rcarriga
Copy link
Owner

There is no way to do this. Why do you want to clear the history? Just asking to understand the need 😄

@miversen33
Copy link
Author

Well to clear the history of course ;)

The real answer, I have lua's print module go to nvim-notify because I prefer how it handles displaying information.

However if I print a ton of stuff quickly, I will need to be able to do back and see those, which I can of course do with looking at the history via the provided tools.

Except the history viewing tools will start you at the beginning of the history chain. If you've got a ton of notifications because you're abusing nvim-notify nervous glances, then finding the section of your history you care about is painful.

I could partially use telescope to find specific notification, but I really care about the chain of them. And IMO I shouldn't have to restart my editor to clear message history, especially when there is :messages clear.

TLDR: lots of notifications makes it hard to find a specific set of notifications

@rcarriga
Copy link
Owner

It sounds like instead of clearing history, your issue would be better solved by the history being in the order of most recent first which I think would make sense in general anyway. What do you think?

@miversen33
Copy link
Author

I do like that option, though I still think that clearing your notifications makes alot of sense IMO.

@nullromo nullromo linked a pull request Feb 1, 2024 that will close this issue
@nullromo
Copy link

nullromo commented Feb 1, 2024

I thought this feature would be useful too, so I made a pull request (#248) to add the appropriate command. I think another separate useful feature to help @miversen33's use case would be a way to search through the history or filter it, but the Telescope extension does a good job of that already in my opinion.

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

Successfully merging a pull request may close this issue.

3 participants