Kate Tab Bar Extension
Text Editors
Score 74%
Description:

Requirement: KDE 3.5

NOTE: This plugin will overwrite the Kate Tab Bar Extension included in the KDE module 'kdeaddons'. This is by intention, as the plan is to make this plugin the default for KDE 4.

The Tab Bar Extension supports:
- location: top and bottom
- styles: push buttons, flat buttons, frames
- sort by: opening order, name, URL, file extensions
- number of rows
- minimum and maximum width of tabs
- fixed tab height
- follows current document
- manual highlighting of tabs (context menu)
- text color of modified tabs
- highlight active/current tab
- highlight previous tab
- opacity of background shading (0%-100%)
- load/save (ie session) support
- synchronization of all view (if you have multiple mainwindows)
- "Remove all highlight marks" button
- icons for modified buffers and corrupted files on disk

MD5 checksum:
63d0ccc3fab14b47915b448becbef815 katetabbarextension-0.6.tar.gz

How to install:
tar xvfz katetabbarextension-0.6.tar.gz
cd katetabbarextension-0.6
./configure --prefix=`kde-config --prefix`
make
make install # as root

After this you have to enable the plugin in Kate: Settings > Configure Kate > Plugins > [x] Kate Tab Bar Extension
Last changelog:

12 years ago

2005-12-02 version 0.6
- fixed bug: setting the location to top works now also on Kate startup

2005-10-05 version 0.5
- Rewritten for KDE 3.5.x

hosseinmp

3 years ago

Is it possible to use this in Windows?

Report

noskule

9 years ago

hi, is it possible to do a splitview within a tab?
grz nos

Report

C

accolon

9 years ago

no.

Report

kdeapps270504

9 years ago

Is this Tab Bar Extension still going to be the default in KDE4?

The current Tab Bar Extension jumps from one line to another when a simple edit/save is done. I can't see a way to keep the Tar Bar Extension on its *own* line, rather than jumping around. I'm looking for options - thus my arrival here.

Thanks.

Report

kdeapps270504

9 years ago

Nice addition to Kate.

Subject: Clicking Tabs shortens Main Toolbar

When I click the a tab, the "Main Toolbar (KatepartView)" loses actions. Each time I clik a Tab, another action disappears and the Toolbar gets shorter and shorter. I went from 20 to 9 actions. It seems to stop there. When I stop and start Kate the Tool Bar is restored.

I did a reset to default for the Toolbar and the actions I added were gone. But as soon as I clicked a Tab, they reappeared. I stopped and started Kate and the default Toolbar was restored. I clicked multiple Tabs on the Tab Bar Extension and all appeared okay. It is only when I add actions to the Toolbar that this strange behavior starts.

How I added:

Configure->Toolbars
Selected: Main Toolbar KatePartView

I added 3 actions:
Collapse Top Level
Expand Top Level
Highlighting

I clicked on Change Icon for each (although this didn't seem to make a difference).

Report

C

accolon

9 years ago

That's a known issue but has nothing to do with the tabbar extension.

Report

kratky

9 years ago

See http://bugs.kde.org/show_bug.cgi?id=56229#c16 for a workaround.

Report

kdeapps270504

9 years ago

1. The Tab Bar Extension that was originally installed with Kate had a down arrow on the right-hand side that would expand and show all documents that were open. This was a nice feature because you could go directly to a file.

This Tab Bar Extension is missing that feature. It has two arrows on the right-hand side that scroll the tabs left and right. When you have many files open, clicking a drop-down and selecting from a list is very fast, verses scrolling through the tabs.

2. This Tab Bar Extension does not seem to remember configuration settings. I changed the Tab Location from Bottom to Top, Sort By Document Name, Min Button Width, Button Style, and Tab Highlighting. When I stop Kate and restart, these changes are lost.

Report

C

accolon

9 years ago

> 1. The Tab Bar Extension that was originally installed with Kate had a down arrow on the right-hand side that would expand and show all documents that were open. This was a nice feature because you could go directly to a file.

True, that's a nice wish.

> 2. This Tab Bar Extension does not seem to remember configuration settings. I changed the Tab Location from Bottom to Top, Sort By Document Name, Min Button Width, Button Style, and Tab Highlighting. When I stop Kate and restart, these changes are lost.

That works at least in KDE4 and there was a time where it also worked in KDE3. I don't know whether I'll find the time to look into the KDE3-version ever again. Let's see.

Report

FireStorm9

9 years ago

That's a shame about not fixing it for kde3 users. Even kde4.1 is not ready for public consumption. :(

It seems the problem is it doesn't properly open the katerc file for writing on exit.

If you add the following section manually to the katerc file (default ~/.kde/share/config/katerc), it loads the settings properly, but as stated will not save.

Thanks again for the extension.

[Kate Tab Bar Extension]
button style=0
color active=255,255,196
color modified=255,0,0
color previous=196,255,255
count of rows=1
fixed height=20
follow current tab=true
highlight active=true
highlight modified=true
highlight opacity=100
highlight previous=true
highlighted colors=
highlighted documents=
location top=true
maximum width=150
minimum width=100
plain color activated=128,128,255
plain color mousedown=128,128,255
plain color mouseover=255,128,128
sort type=0

Report

C

accolon

9 years ago

Yes, it is the default and already released with KDE 4.0. There were already some fixes which went into KDE 4.0.x.

Report

kilolima

10 years ago

Just like Homesite now, 7 years later.

seriously, been wanting something like this for Kate for a long time.

Report

newman

11 years ago

Very nice plugin. Thanks!

Suggestions:
1) In "bool operator< (KTinyTabButton const&, KTinyTabButton const&)", use QString::localeAwareCompare() instead of "bool QString::operator< (...)" and "bool QString::operator==(...)".
2) In the above "bool operator< (...)", in case of KTinyTabBar::Extension, if both aExt==bExt and aFile==bFile, return a.buttonID() < b.buttonID().
3) User QPtrList instead of QSortedList and get rid of the ugly "global_sortType".

Regards

Report

C

accolon

10 years ago

> Suggestions:
> 1) use QString::localeAwareCompare()

maybe you are right here. I have to check again whether it still behaves as I want it to behave :)

> 2) In the above "bool operator< (...)", in case of KTinyTabBar::Extension, if both aExt==bExt and aFile==bFile, return a.buttonID() < b.buttonID().

then it sorts by using the opening order. I prefer the way it is right now, or did I miss something? :)

> 3) User QPtrList instead of QSortedList and get rid of the ugly "global_sortType".

It's ugly, right :) I will have a look for kde4.

Report

newman

10 years ago

>> 2) In the above "bool operator< (...)", in case of KTinyTabBar::Extension, if both aExt==bExt and aFile==bFile, return a.buttonID() < b.buttonID().

>then it sorts by using the opening order. I prefer the way it is right now, or did I miss something? :)

Currently, in the bool operator< (const KTinyTabButton& a, const KTinyTabButton& b), when sort order is "file name", and the file names are equal, the the operator returns a.buttonID() < b.buttonID(). There must be a reason for this, and I agree with this behavior. For the same reason, when sort order is "file extension", and the file names are equal (therefore the exensions are equal too), the operator should compare buttonID as well.

:) Regards

Report

C

accolon

10 years ago

makes sense, I modified the code accordingly for kde4.

Report

glepore70

11 years ago

I compiled and installed on Kubuntu Edgy, and the tab bar appears on the bottom of the screen, but there is no corresponding entry in Settings->Configure Kate->plugins. Is there another method for accession the configuration settings?

Report

C

accolon

10 years ago

Yes, invoke the tab bar's config dialog by clicking the small configure icon in the tabbar itself.

Report

arvenil

11 years ago

> make
make all-recursive

(...)

/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor -O2 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -o libkatetabbarextensionplugin.la -rpath /usr/lib64/kde3 -module -avoid-version -module -no-undefined -Wl,--no-undefined -Wl,--allow-shlib-undefined -R /usr/lib64 -R /usr/lib64 -R NONE -R /usr/X11R6/lib64 -L/usr/lib64 -LNONE -L/usr/X11R6/lib64 plugin_katetabbarextension.lo ktinytabbar.lo ktinytabbarconfigdialog.lo ktinytabbarconfigpage.lo ktinytabbutton.lo ktinytabbutton.moc.lo ktinytabbar.moc.lo -lkateinterfaces
libtool: link: only absolute run-paths are allowed
make[2]: *** [libkatetabbarextensionplugin.la] Error 1
make[2]: Leaving directory `/home/users/kamil/CENTRUM/source/katetabbarextension-0.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/users/kamil/CENTRUM/source/katetabbarextension-0.6'
make: *** [all] Error 2


This extension could be ver, very useful for me so please give me any sugestion how to compile it:(

Report

Ekardnam

11 years ago

Good!
Just some suggestions:
- Make it possible to hide/autohide the two arrow buttons.
- One thing I liked with the old plugin is that it is a toolbar. You could move it next to other toolbars etc.

One thing that really confuses me in Kate is this Documents thing. I would be happy if it opened a new document in a new tab. I know there is a tab feature in Kate, but one tab doesn't have to represent a document.
Sorry, a little bit OT.

Report

t0maz

11 years ago

Hello,

I'm a little bit confused now. Is this extension actually PART OF kdeaddons and offered here seperately? Or is this an independent one.

Report

C

accolon

11 years ago

It is thought as replacement. I did not manage to finish it in time for inclusion in KDE 3.5, so I posted it here. If you use the plugin in kdeaddons, you definitely should install this tabbar to overwrite the current one.

Report

t0maz

11 years ago

Thanks! That's the information I needed. I will install it.

Report

google01103

11 years ago

Tab location change isn't being saved, tabs always open on bottem though I've selected top

Report

C

accolon

11 years ago

That is true. I will fix it in version 0.6, which will be released after KDE 3.5 is officially out.

Report

12 years ago

2005-12-02 version 0.6
- fixed bug: setting the location to top works now also on Kate startup

2005-10-05 version 0.5
- Rewritten for KDE 3.5.x

product-maker 20 69

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
0.6
updated Dec 02 2005
added Oct 17 2005
downloads today
0
page views today 0