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

Change the classes with shortcut #2413

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jannisCode
Copy link
Contributor

@jannisCode jannisCode commented Oct 17, 2024

This PR finishes the PR started by @Wittmaxi , who also did most of the work here: #1874
The objective of @Wittmaxi ´s PR is to be able to expand the functionality of the nextTab shortcut (default crtl + pgdown) so that after reaching the last tab, one more click changes the active tab back to the first one.

What this PR does

When there are too many tabs open, #1874 still went back to the first tab, ignoring the remaining tabs stored in the chevron (the >> container).
image
With the changes from this PR, when there are stored tabs in the chevron, clicking once more after the last tab has the same functionality as the default eclipse, going into the chevron.

tabaction.mp4

@jannisCode jannisCode force-pushed the tab_change branch 4 times, most recently from 21d07b3 to 402bd75 Compare October 17, 2024 08:53
Copy link
Contributor

github-actions bot commented Oct 17, 2024

Test Results

 1 820 files   -  1   1 820 suites   - 1   1h 48m 51s ⏱️ - 7m 26s
 7 712 tests ± 0   7 482 ✅  -  1  228 💤 ± 0  2 ❌ +1 
24 252 runs   - 45  23 513 ✅  - 36  737 💤  - 10  2 ❌ +1 

For more details on these failures, see this check.

Results for commit bb64c62. ± Comparison against base commit 0a3c1fd.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@Wittmaxi Wittmaxi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nitpicks. I can check functionality later and merge if it works

*
* @param folder
* @return if there are any items which are not shown in the folder (tabs in the
* >> column)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the ">> column" is called "the chevron"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

/**
* checks if there are any hidden items
*
* @param folder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please describe further

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

* >> column)
*/
private boolean areHiddenItems(CTabFolder folder) {
for (CTabItem i : folder.getItems()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

/**
* Sets the current selection to the second-to-last item in the given direction.
*
* @param folder
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe folder and forward

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@jannisCode jannisCode force-pushed the tab_change branch 9 times, most recently from 500e322 to e40fc60 Compare October 22, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants