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

FR: Indicator for overflow in notification windows #112

Closed
1 task done
chrisgrieser opened this issue Nov 19, 2024 · 3 comments · May be fixed by #120
Closed
1 task done

FR: Indicator for overflow in notification windows #112

chrisgrieser opened this issue Nov 19, 2024 · 3 comments · May be fixed by #120
Labels
enhancement New feature or request

Comments

@chrisgrieser
Copy link
Contributor

Did you check the docs?

  • I have read all the snacks.nvim docs

Is your feature request related to a problem? Please describe.

When the notification text is longer than the max height of the notification window, the overflowing text is cut off.

While this makes sense to prevent windows becoming too large, this creates the problem that I am often not aware that there was text cut off. A notification having only n lines and one having n+ lines are not distinguishable.

Describe the solution you'd like

Similar to the @@@ in vim indicating that there is text outside the viewport, the snacks notifier should somehow indicate if there is text not visible in the notification window, so that the user is aware that they should inspect the window if needed.

Maybe an indicator icon added to the footer of the window?

Describe alternatives you've considered

Other than constantly inspecting the notification window, I am not aware of any alternative.

Additional context

No response

@chrisgrieser chrisgrieser added the enhancement New feature or request label Nov 19, 2024
@folke
Copy link
Owner

folke commented Nov 20, 2024

It seems that floating windows don't respect lastline in display

@folke
Copy link
Owner

folke commented Nov 20, 2024

Something like this maybe?

image

@chrisgrieser
Copy link
Contributor Author

yes, displaying a line count instead of just an icon is a great idea

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

Successfully merging a pull request may close this issue.

2 participants