-
-
Notifications
You must be signed in to change notification settings - Fork 186
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
Add new mode for statusbar tab behaviour #1912
Add new mode for statusbar tab behaviour #1912
Conversation
5904e71
to
a6e2aa7
Compare
I will provide comments here for each rebase to keep the context. Previous rebases were with master, just to keep the code up-to-date. |
f213499
to
5b6481d
Compare
Revision 1
Revision 2
|
5b6481d
to
58a59b4
Compare
Revision 3Improve commit message. |
58a59b4
to
f5a33f4
Compare
Revision 4Calculate range bounds only once and pass it as arguments to width calculating function to avoid excessive computations. |
f5a33f4
to
7e12c46
Compare
Revision 5Addressed the issues that were pointed out in the code review. |
7e12c46
to
6172fef
Compare
Revision 6Rebased on master |
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.
-
IIUC this changes the default behavior of the statusbar.
TBH I don't think that we should do that w/o at least having an option to disable it and IMO this new style shouldn't be the new default, but an option that can be enabled. -
I didn't look yet in detail at the changes, but I've one question: Did you test whether the
actlist
mode also still works? I guess so, since it seems to be a completely different code path, but I prefer to be on the safe side.
It's basically a fix for 2 issues mentioned earlier, not even a new feature, but rather a development of older and underdeveloped feature.
|
The description of this PR is quite confusing to me. I read it several times and still wasn't sure what it does and how it changes the current behaviour. So I pulled the changes and tested what happens. So I think for some people this can be helpful to know where they are. What I didn't understand: This is the only change I noticed when trying the PR. Was there something else that I did miss? |
Quite often your PRs/issues contain a huge wall of text but somehow fail at bringing the information across to the reader. If I understand your PR now correctly, then it should have been quite easy to understand it with a better description.
It's quite late and I'm tired so the words might not be perfect. But I guess you get what I mean with a better explanation. You instead say:
And I thought: ok, dont we do that already? Or whats the current behaviour? Should I change my whole settings to understand which options are available and check how it differs? And:
Where I dont understand what it means at all. I can always navigate through the open windows easily... So now that I understood what actually changes: I don't think this should just be the new default behaviour without any notice of it anywhere. No notice in the commit message or PR that the default behaviour changes and how... The proposed change itself is fine. But right now I believe that there should be a setting to use this behaviour or our current default. Then there is actlist too etc. So there will be 3 ways. There needs to be a well thought through setting with explanation for it. |
There is no objective reason to keep old behaviour. Current PR fixes 2+ issues, it's not a feature, I reclassify it as a "fix". |
6172fef
to
ed50f30
Compare
One reason could be that I open my windows in a certain order. Could be the 5 first windows are the ones that are most important to me. I always want to see the tabs for those windows. I immediately want to see when somebody writes me on those windows. The rest might be windows that I don't care much about. In this case the Another reason could be that I don't like the UI to change all the time. I don't want that the titlebar/statusbar changes when I change the focus of a window. Maybe I only want that the content of the window changes and the rest should look stable. So there are 2 objective reasons. If I think harder I could probably find more. Just because something isn't your use case or to your liking, doesn't mean it doesn't exist. |
|
Much better. But now you did the opposite of:
And the text is misleading again. Since you write Like this the behaviour will stay the same for users but they can choose to change to the dynamic or actlist modes. |
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.
Please change 2nd commit to actually preserve the default behaviour as default and add an option for your new mode with the name dynamic
.
PollOld style to the left, new style to the right. Upvote for a new style as a new default, downvote for old style. Don't mind the margin as it's not a subject to change, pay attention only to the pages being displayed (ease of navigation). 8 windows are open, Win 1Win 3Win 4Win 5Win 7Win 8 |
Separate it on `dynamic` mode, as opposed to `static` (ex `default`). Despite usefulness of the solution, it was not approved to be a new default. Vote (link below) amongst users has shown inconclusive result and it was not representative, as it had low number of participants. profanity-im#1912 (comment)
097025b
to
ad2f7e2
Compare
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.
see comments
Return static tabmode as default, separate previous change in `dynamic` mode. Despite usefulness of the solution, it was not approved to be a new default. Vote (link below) amongst users to change default has shown inconclusive result and it was not representative, as it had low number of participants. profanity-im#1912 (comment)
ad2f7e2
to
b73fd1b
Compare
New revision
|
Return static tabmode as default, separate previous change in `dynamic` mode. Despite usefulness of the solution, it was not approved to be a new default. Vote (link below) amongst users to change default has shown inconclusive result and it was not representative, as it had low number of participants. profanity-im#1912 (comment)
b73fd1b
to
937329e
Compare
New revisions
|
This commit changes the current behaviour which displays always the first tabs until `maxtabs` to display N tabs around the currently selected tab. So if we are having a maxtab of 1 and the actively selected window is 2, then 2 is displayed only. So far we have only displayed `>` to indicate that there are more windows. Since this PR shifts the range of tabs that are displayed we also add `<` indicator now to indicate windows to the left of the currently displayed. Fix profanity-im#1283 Fix profanity-im#1764
Return static tabmode as default, separate previous change in `dynamic` mode. Despite usefulness of the solution, it was not approved to be a new default. Vote (link below) amongst users to change default has shown inconclusive result and it was not representative, as it had low number of participants. profanity-im#1912 (comment)
937329e
to
917558d
Compare
Thanks for the changes and for the feature! |
Return static tabmode as default, separate previous change in `dynamic` mode. Despite usefulness of the solution, it was not approved to be a new default. Vote (link below) amongst users to change default has shown inconclusive result and it was not representative, as it had low number of participants. profanity-im#1912 (comment)
Display current pages dynamically so users can navigate easily in-depth.
How to test the functionality
scripts/msg
folder and/account set YOUR_ACCOUNT startscript msg
(BEWARE: can cause occasional strophe-related crash, use 10-15 windows for safety and make/statusbar maxtabs 5
to see the effect better)/statusbar hide name
,/statusbar show name
,/statusbar hide number
to test all the possible mods.Potentially fixes #1764.
Fixes #1283
Before the change
Win 6 (or 7, I don't know and remember and have no way to know except manually counting)
2 tabs more left to the previous position
Win 3
After the change
Win 6
Win 8 with new message in console
Win 2 with new message in console
Win 4 with new message in console and from a "friend"