Bug 329555 - gt and gT do not always switch to tabs adjacent to the original
Summary: gt and gT do not always switch to tabs adjacent to the original
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: Vi Input Mode (other bugs)
Version First Reported In: 3.11.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-03 10:38 UTC by Geoffrey van Wyk
Modified: 2017-07-25 10:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffrey van Wyk 2014-01-03 10:38:52 UTC
In Vi mode, gt and gT do not always switch to the next tab and previous tabs, but to random tabs, especially when there are more than three tabs.

Reproducible: Always

Steps to Reproduce:
1. Open at least four tabs containing different buffers.
2. Use gt and gT repeatedly.
Actual Results:  
gt and gT would sometimes switch to tabs which are not adjacent to the original tab.

Expected Results:  
gt and gT should switch to tabs adjacent to the original tab.
Comment 1 Michal Humpula 2014-01-03 23:02:41 UTC
Hi Geoffrey,

The implementation in vi-mode calls the "bn" (for gt) and "bp" (for gT). Theese should be translated to switching buffers in filetree plugin, which does the actual view switching. And here comes the tricky part. The tabs are implemented as plugin, which tries to do its best to interact with the filetree and kate and display the correct "tab".

So, can you please confirm, that you get the same strange behaviour, when changing views trough filetree directly? Or trough "previous document" and "nect document" toolbar actions?

And most importantly. Which of two tab plugins are you using? Tabify or tabbarextension?
Comment 2 Geoffrey van Wyk 2014-01-04 08:25:03 UTC
(In reply to comment #1)
> Hi Geoffrey,

Hi Michal.

> The implementation in vi-mode calls the "bn" (for gt) and "bp" (for gT).
> Theese should be translated to switching buffers in filetree plugin, which
> does the actual view switching. And here comes the tricky part. The tabs are
> implemented as plugin, which tries to do its best to interact with the
> filetree and kate and display the correct "tab".
> 
> So, can you please confirm, that you get the same strange behaviour, when
> changing views trough filetree directly? Or trough "previous document" and
> "nect document" toolbar actions?

The "previous document" and "next document" toolbar actions have the same behaviour. I 

> And most importantly. Which of two tab plugins are you using? Tabify or
> tabbarextension?
 
I am using Tab Bar in Configure Kate >  Application > Plugins > Tab Bar.
Comment 3 Christoph Cullmann 2017-07-25 10:49:53 UTC
Looks ok for me with current Kate version that has completely different tabbing.