You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am using a vertical layout on my display and I would like to scroll the preview window horizontally as sometimes the line doesn't fit completely in the preview window.
Describe the solution you'd like
I would like the ability to configure a keymap to scroll the preview window horizontally
Describe alternatives you've considered
I considered publishing a PR, similar to the way the preview window is scrolled right now.
I understand we need to add it to win.lua like this:
because in order to scroll we need to do zl however we send one keycode here... I'm not sure we can send two and what happens if someone remaps the zl keymap?
also, I'm not sure what the sidescrolloff option means and if it related...
Thanks a lot!
Additional context
Love your work!!
The text was updated successfully, but these errors were encountered:
Did you check the docs?
Is your feature request related to a problem? Please describe.
I am using a vertical layout on my display and I would like to scroll the preview window horizontally as sometimes the line doesn't fit completely in the preview window.
Describe the solution you'd like
I would like the ability to configure a keymap to scroll the preview window horizontally
Describe alternatives you've considered
I considered publishing a PR, similar to the way the preview window is scrolled right now.
I understand we need to add it to win.lua like this:
snacks.nvim/lua/snacks/win.lua
Line 483 in 233356e
and add an action here:
https://github.com/folke/snacks.nvim/blob/main/lua/snacks/picker/actions.lua#L296
However, what is worrying me is this line here:
https://github.com/folke/snacks.nvim/blob/main/lua/snacks/win.lua#L144
because in order to scroll we need to do zl however we send one keycode here... I'm not sure we can send two and what happens if someone remaps the zl keymap?
also, I'm not sure what the sidescrolloff option means and if it related...
Thanks a lot!
Additional context
Love your work!!
The text was updated successfully, but these errors were encountered: