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

wrap/nowrap implemented #42

Closed
wants to merge 1 commit into from
Closed

Conversation

mgrechukh
Copy link

Sometimes it's more convenient to stop tab switching without wrap around.

@mina86
Copy link
Owner

mina86 commented Oct 10, 2021

Shouldn’t it also apply to moving tabs?

@mina86 mina86 closed this in f39b2cc Oct 10, 2021
@mina86
Copy link
Owner

mina86 commented Oct 10, 2021

I went ahead with adding the configuration to next_tab and prev_tab actions instead. This way the behaviour can be customised differently for different key bindings giving more flexibility.

@mgrechukh
Copy link
Author

Shouldn’t it also apply to moving tabs?

good point.

mina86 added a commit that referenced this pull request Oct 12, 2021
Just like for `next_tab` and `prev_tab`, add a `:nowrap` variant for
`move_tab_left` and `move_tab_right` actions.  When used, moving tabs
stops at the edges of the tab bar rather than moving the tab to
opposite end.  To use the behaviour by default, the Control-Left/Right
keys can be configured to bind to the new actions:

    URxvt.keysym.Control-Left:  tabbedex:move_tab_left:nowrap
    URxvt.keysym.Control-Right: tabbedex:move_tab_right:nowrap

Issue: #42
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