-
Notifications
You must be signed in to change notification settings - Fork 27
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
emulate-scroll-for-no-mouse-alternate-buffer not working for git log
#27
Comments
Note: This is a dupe of #25. EDIT: oops, a "dupe", not a "diff." Too much git talk. |
I'm not sure why it doesn't work for
That logic can be found here, in this part of the binding: If you enable the flag, it adds a check for From Here's a bit more info about the alternative screen: In theory, |
Thanks for the detailed response! Arrow keys do definitely work to scroll in my git log, I'm running git 2.11.0 and tmux 2.3. |
It does indeed seem like |
Ah, yeah, that makes sense. Thanks for looking into that! This looks promising!: Can you try echoing those values?:
For me, the first two are empty, For experimentation purposes, when I set So I'm thinking maybe there's some combination of your settings that are causing it to not enter the alternate pane? |
You might also check |
Adding this solves the issue
It also has some other side effects unfortunately, now |
Yeah that works for me too, and I'm seeing those same side-effects. I want to add |
Oh awesome, I'm glad to hear it! :) Yeah I'm not sure what the right settings are either, but I'm glad we found the root of your problem! Please do post back here if you find some combination that works for you! :)
How do you mean? I tried setting From my man page (
So I wonder why it is sufficient to make your less start paging with the alternate buffer! Weird.. |
Hey, I had the same problems and it seems that
|
@IngoHeimbach how do you do that? I already have a |
@alcesleo Git sets the I did some tests and found out that it is not possible to get the default git paging behavior (short outputs are not paged at all) and working tmux scrolling at the same time:
As a workaround I have created a small python script that detects if the output fits into one terminal page. If it fits, the output is simply written to stdout. Otherwise |
@IngoHeimbach That script works almost perfectly, thank you! The only problem I have with it is that some colours appear to be different than normal when the output is less than a page long. core.pager = less: core.pager = lesser.py: As you can see, git commit hashes seem to be less bright after the first line when using lesser.py – any idea why this might be? |
@anowlcalledjosh Sorry, at the moment I have no clue why the colors are different when using |
Just a note for diff so fancy users, I set my Git pager to this:
Whereas I was using this initially (as per the readme on diff so fancy):
the only problem is that if git show, for example, outputs shorter than a page, less will still open. This is not too much of a problem for me, so this problem is worth it for having mouse scrolling |
I'm just wondering, is there any way to allow workability for mouse scroll AND avoid entering alternate screen in less? |
I have this same issue. I checked, and Doing |
You can try to set export LESS="-R" |
@IngoHeimbach This works perfect for Sounds like that's an issue with P.S. But, it looks like Thanks for the help! |
Hi friends! :) I just want to say that I haven't been keeping up to date with the latest tmux in a long time. My setup mostly works, and I haven't had the time to maintain this package. Would any of you active users be interested in joining maintenance of this package? If so, please let me know, either via an email or a comment here: #41 :) Thanks everyone for your collaboration on making tmux more user-friendly! :) |
Really nice project! I'm trying to get the
emulate-scroll-for-no-mouse-alternate-buffer
option to work, and it does forless
but not forgit log
. I tried to understand how it works but I didn't get very far - could you maybe explain how it detects which programs it should send arrow keys to to scroll?Thanks!
The text was updated successfully, but these errors were encountered: