Replies: 4 comments 39 replies
-
Would be possible but seems a bit of a waste of space to me. mintty has escaped sequences to let the application control the real window scrollbar which may be a better bet. |
Beta Was this translation helpful? Give feedback.
-
Here is a mock-up of what I imagined this looking like: I envision a couple of new tmux commands which enable and disable a scrollbar in a particular pane. I see no reason there couldn't also be a horizontal scrollbar in a pane as well, but what would control the horizontal size of a window? Would it be possible to automatically set the width of the window based on the longest line in the window so it never wrapped? I have to admit I never saw a terminal program do that. To be clear, the scrollbar is there all the time regardless of being in copy mode or not. If you scroll up, then, you are in copy mode. The idea being that you can trivially just scroll up and look back at what's above. Hit a key and you're at the bottom again, back at the prompt. Very much like a real scrollbar. Maybe if tmux reacted to the escape sequences for scrollbars like mintty reference you sent above, I wonder if programs like emacs would be able to put scrollbars on each buffer. That...would...be..cool... If you still think this should be done in window-copy.c, let me know. Any hints appreciated. It's going to take me a bit to understand the innerworkings of tmux to do this. I may need help.... |
Beta Was this translation helpful? Give feedback.
-
Not each pane, all panes in a window or none. No flag to
I think entering the alternate screen should disable the scrollbar but not hide it. That is, the pane should stay the same size.
I think this is premature. mintty has had this extension for years and so far no applications use it. I would make it work for tmux's own copy mode and then see about implementing mintty's application escape sequences. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I have long wondered, has any thought been given to a character based scrollbar to scroll around in the copy buffer by clicking and dragging in the scrollbar? Scrolling using the mouse wheel works great. This seems like a logical extension of that. What I am imagining is a second pane or sub-pane (if that's the correct term) which contained a single column or two with a reverse color block or so (as in a space character with foreground and background colors inverted) forming the elevator part of the scrollbar. Clicking and dragging in the scrollbar would act similar to using the mouse wheel to scroll around in the copy buffer.
Beta Was this translation helpful? Give feedback.
All reactions