-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
[statusbar-] move sheet.longname into vd object #2186
Conversation
Thanks for noticing and addressing this. I believe sheet.longname isn't used anywhere else, and could be removed with this change. However, I believe that this change means both windows in splitpane will show the same last command; the intent is that if you don't do anything in one of the panes, it will still show the last command executed on that sheet. It's a minor issue, and I don't think we need to preserve that behavior, so perhaps we shouldn't show the previous command on the inactive sheet at all. But we should make sure splitpane acts reasonably here too. |
Oh, now I see the reason why each sheet stores longname. What if we copy |
Does this work for both cases? If so I'm willing to try it out. |
It works with a single pane and for split panes. But it is a bit hacky, and The situation for So maybe only |
2125a60
to
2a7b8b0
Compare
I've replaced the original commit with the discussed (2a7b8b0) that keeps For future reference, here are all the uncertain calls to It's a bit inelegant, but I think it's worth it, to help orient users. Sometimes I really want to see what command I just activated to create a new sheet. |
2a7b8b0
to
3ce6f65
Compare
The drawback of my previous proposed fix is that There is a better solution (e7da985). Instead of copying longname from the last sheet on
|
3ce6f65
to
a91038c
Compare
I've rebased this patch onto current develop, so it's ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this, @midichef !
Immediately after moving to a new sheet, the
sheet.longname
in the statusbar is incorrect. On the latest 3.0dev as well as 2.11.1.For example, right after
sheets-stack
, the longname displayed is blank. That's because the new sheet'ssheet.longname
is''
. Then if we quit out of that sheet withq
, the longname shown in the original sheet is incorrect. I expect it to show"quit-sheet"
, but instead it shows"sheets-stack"
, the name of last command executed in the original sheet.This PR moves
longname
into the vd object, instead of storing it in each sheet. Will this work?And is it safe to remove
BaseSheet.longname
?I think it's now obsolete but it's possible I missed a use somewhere.