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

[Feature request] Horizontal mouse scroll #868

Open
migueltc13 opened this issue Jan 7, 2024 · 7 comments
Open

[Feature request] Horizontal mouse scroll #868

migueltc13 opened this issue Jan 7, 2024 · 7 comments
Labels

Comments

@migueltc13
Copy link

Problem:
Terminator lacks support for horizontal mouse scrolling in TUI tools, impeding navigation within pagers (e.g., less) dealing with horizontally extensive content.

Solution:
Implement horizontal mouse scrolling in Terminator for seamless navigation in TUI applications with horizontal content and mouse support.

Alternatives:
Current alternatives involve reliance on keyboard shortcuts (akin to existing page_down/up).

Additional Context:
Evaluate scenarios within specific TUI tools (e.g., neovim, less) where horizontal scrolling would significantly improve usability.

@mattrose mattrose added the vte label Mar 21, 2024
@mattrose
Copy link
Member

That needs to be implemented by vte, I think. It seems like a fairly simple ask, but I don't see any work done on it.

Opened https://gitlab.gnome.org/GNOME/vte/-/issues/2765

@egmontkob
Copy link

Thanks @migueltc13 for this report and @mattrose for forwarding it!

It's a valid feature request, and unfortunately I missed it when occasionally checking Terminator's bugs.

@mattrose
Copy link
Member

@egmontkob And thank you so much for writing a patch to vte that looks like it will be accepted basically overnight (in my timezone, at any rate). You rock!

@mattrose
Copy link
Member

In record time, the above gitlab issue is fixed.

Can you give me an exact example of how you would use this? My thought was to use sudo journalctl -xe and try and horizontally scroll on the output of that, but maybe you have some other use cases?

@egmontkob
Copy link

journalctl calls less (or whatever your preferred viewer is), right?

I think it definitely deserves a feature request against less. Assuming it doesn't support it already. My version (590) doesn't seem to support it, and I couldn't find anything relevant in the changelogs since then, nor in the opened or closed bugs.

Similarly, any file viewer or editor could receive this feature.

I hope @migueltc13 has even more cool ideas. (I know you asked him, not me :))

@mattrose
Copy link
Member

Yeah, I know journalctl calls less, but on my fedora install, it calls it in such a way that it doesn't wrap the lines, but lets them flow off the terminal to the left, and you can slide the window horizontally using arrow keys.

I was hoping that it would also interpret horizontal scrolling, but alas, no. I might try neovim, but that means installing neovim and I'm worried it would interfere with my vim setup, as I use vim as my main editor.

@egmontkob
Copy link

vim supports horizontal scrolling, neovim doesn't (at least my versions). I used vim quite a lot for testing this feature.

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

No branches or pull requests

3 participants