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

fix: Allow quick navigation with (centaur-tabs-{backward,forward}--button) #233

Merged
merged 1 commit into from
May 14, 2024

Conversation

erikmd
Copy link
Contributor

@erikmd erikmd commented May 6, 2024

Summary

@jcs090218 I recently noticed that when clicking "too fast" on centaur-tabs-forward-button (resp. …-backward-…) several times, centaur-tabs only moves one tab at a time… which was quite distracting from a UX point of view.

This PR fixes this 🙂

Remarks

  • This patch is simpler than what I was expecting:
    Unbind (delete-other-windows) at [centaur-tabs-display-line double-mouse-1]

  • This is not a loss in functionality, given:
    Function (delete-other-windows) is already bound at [mode-line mouse-2]

…tton)

* To do so:
  Unbind (delete-other-windows) at [centaur-tabs-display-line double-mouse-1]

* Note:
  Function (delete-other-windows) is already bound at [mode-line mouse-2]
@jcs090218
Copy link
Collaborator

Can you elaborate on the situation? 🤔 I don't see the UX problem here. Thanks!

@erikmd
Copy link
Contributor Author

erikmd commented May 6, 2024

Can you elaborate on the situation?

Sure! Let me know if you can reproduce the following issue:

(I'm using the latest centaur-tabs from MELPA using GNU Emacs 27.1)

Actual behavior:

  • When there are ≥ 3 visible tabs
  • Assuming the first tab is selected
  • When I click two times (quickly) on the forward button ⏵
  • (§) Then centaur-tabs only moves-right once (selecting the second tab) and display "No other windows to delete"

Expected behavior (OK after applying the PR):

  • (§) Then centaur-tabs moves-right twice (selecting the third tab)

@erikmd
Copy link
Contributor Author

erikmd commented May 14, 2024

Hi @jcs090218 !

Was my explanation clear enough? or do you need more details

Kind regards.

@jcs090218
Copy link
Collaborator

Sorry for the late reply!

I did not know there was a forward button since I switch tabs using the key more often. 🤔 I might have overlooked this customization.

@erikmd
Copy link
Contributor Author

erikmd commented May 14, 2024

OK thanks @jcs090218 !

Indeed, I now realize that this feature is not "on" by default... so to give full context:

Capture d’écran 2024-05-15 à 00 18 50

Copy link
Collaborator

@jcs090218 jcs090218 left a comment

Choose a reason for hiding this comment

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

That make sense! Thank you!

@jcs090218 jcs090218 merged commit 1b46298 into ema2159:master May 14, 2024
10 of 14 checks passed
@erikmd erikmd deleted the fix-navigation branch May 15, 2024 06:38
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