manateelazycat / awesome-tab

Emacs package to provide out-of-the-box configuration to use tabs.
383 stars 38 forks source link

add wrapped move support #26

Closed levindu closed 5 years ago

levindu commented 5 years ago

Use:

(setq awesome-tab-cycle-wrap t)

to enable wrapped move.

For example, if the current tab at the rightmost, awesome-tab-forward-tab will select the leftmost tab, instead of moving to next group; awesome-tab-move-current-tab-to-right will swap the rightmost tab with the leftmost one.

manateelazycat commented 5 years ago

Hi,

Thanks for PR.

Default, awesome-tab-forward-tab or awesome-tab-backward-tab will set awesome-tab-cycle-scope with 'tabs. Then, awesome-tab will navigate through visible tabs in current group only when you press awesome-tab-forward/backward-tab. That's mean, awesome-tab-forward-tab will switch to leftmost tab if current tab is rightmost one.

I don't understand what the problem this patch is trying to solve?

Look forward to your reply

-- Andy

levindu commented 5 years ago

My bad. C-c C-left/right are bound to awesome-tab-backward/forward by default, and I don't pay attention to awesome-tab-backward/forward-tab. Plz ignore this PR.

Suggestion: make C-c C-left/right bound to awesome-tab-backward/forward-tab by default.