Leap 42.1 - Kate - Documents panel - Files not sorted correctly.

Hello.

I plan to change 13.2 to leap.
I have just installed leap 42.1 to replace 13.2

Laptop ASUS G75VW 24Gb of ram.
Done a fresh install.
Folder / , folder /home and folder /root has been formatted during install.
Installed language is English, keyboard layout is french.

In kate documents panel,iIs there any tips to have documents sorted.

http://paste.opensuse.org/91393881

like in dolphin

http://paste.opensuse.org/28217525

Any help is welcome.

Any help is welcome

And what’s your “problem” exactly?

They should be sorted alphabetically by filename.
And if you right-click on the panel, there’s an “Sort By” sub menu where you can choose to sort by file path and opening order.
You can choose the default in Kate’s settings.

Or do you want to have “natural” sorting?
Like yast20.txt coming before yast100.txt, not after?
Well, that’s not implemented in Kate AFAICS. Feel free to file a bug report/wishlist entry at http://bugs.kde.org/.

The problem is :
13.2 Kate and dolphin have same sorting.
In Kate the document panel show (natural sorting as in dolphin)


01_file_a
02_file_b
0_file_c
1_file_d
2_file_x
3_file_y
...
9_file_e
10_file_f
11_file_g
11a_file_h
...
20_file_i
....
98_file_k
.......
101_file_l
102_file_m
.........
110_file_n
........

Leap 42.2 Kate and dolphin have different sorting.
Natural sorting
In Dolphin 42.2 in the file panel I have


0_file_c
01_file_a
1_file_d
2_file_x
02_file_b
3_file_y
...
9_file_e
10_file_f
11_file_g
11a_file_h
...
20_file_i
....
98_file_k
.......
101_file_l
102_file_m
.........
110_file_n
........

In Kate 42.2 in the file panel I have


0_file_c
01_file_a
02_file_b
1_file_d
10_file_f
101_file_l
102_file_m
110_file_n
11_file_g
11a_file_h
2_file_x
20_file_i
3_file_y
9_file_e
98_file_k

Yes, and?

In 13.2 both dolphin and kate were KDE4 based, in 42.1 they are KF5 based.

In KDE4, dolphin’s settings for this actually changed the global KDE settings for sorting things.
In KF5, the dolphin developers decided to change this and use their own setting now, because dolphin’s settings should not have effect on the rest of the system for seemingly unrelated stuff.

And kate now just uses non-“natural” sorting in its document panel apparently.
There is no setting for this and it doesn’t use the global setting either (from ~/.config/kdeglobals).

As I wrote, feel free to report this at http://bugs.kde.org/.
I’d consider this as a missing/unimplemented feature as I wrote, or call it a “porting bug” if you want.

OK. I will fill a feature report.

Thank you again.

I have emit a bug report
https://bugs.kde.org/show_bug.cgi?id=375676

How to use the information :

           [EMAIL="wbauer@tmo.at"] Wolfgang Bauer[/EMAIL]                                                  2017-04-14 10:45:04 UTC                                                
   Git commit eb9cab2e55ba9b7f9b86577ba12f673c40e07e67 by Wolfgang Bauer.
Committed on 14/04/2017 at 10:43.
Pushed by wbauer into branch 'Applications/17.04'.

Enable numericMode for sorting document list in filetree

Turns on "natural" sorting for the document list in the filetree addon,
 so that e.g. 10 comes after 9, not before.
That's how the KDE4 version behaved too.
FIXED-IN: 17.04.1
Differential Revision: https://phabricator.kde.org/D5448

M  +1    -0    addons/filetree/katefiletreeproxymodel.cpp

https://commits.kde.org/kate/eb9cab2e55ba9b7f9b86577ba12f673c40e07e67

I don’t see any things to do :

Enable numericMode for sorting document list in filetree

That means that this change has been committed to the KDE source repository, and it will be in 17.04.1.
So the file list in the documents panel will be sorted “naturally” in kate 17.04.1 or higher (will be in Leap 42.3 as well).

Now we just wait opensuse update ?

Yes, but that definitely won’t happen for 42.1, which will be out of support in about a week.

As I wrote, kate 17.04 (with this “fix”) will be in Leap 42.3, or you can get it for 42.2 from the KDE:Applications repo.
We could release that change for 42.2 as official update too, but that would need an openSUSE bug report.

Hello.

Thank you.

What is the official version of Qt for 42.2 ?
I have found kate 17.04 in http://download.opensuse.org/repositories/KDE:/Applications/KDE_Frameworks5_openSUSE_Leap_42.2 but I can’t install it because libQt5Core.so.5(Qt_5.8)(64bit) is needed.

5.6.1.

I have found kate 17.04 in http://download.opensuse.org/repositories/KDE:/Applications/KDE_Frameworks5_openSUSE_Leap_42.2 but I can’t install it because libQt5Core.so.5(Qt_5.8)(64bit) is needed.

That repo requires you to add KDE:Qt5 and KDE:Frameworks5 on 42.2 too:
http://download.opensuse.org/repositories/KDE:/Qt5/openSUSE_Leap_42.2/
http://download.opensuse.org/repositories/KDE:/Frameworks5/openSUSE_Leap_42.2/

The latest KDE applications require newer KDE Frameworks versions than shipped in 42.2.

Adding those repos will upgrade Qt5 and KDE Frameworks5/Plasma5 to the latest upstream versions, currently Qt 5.8.0, KF 5.33.0 and Plasma 5.9.5.

To avoid version incompatibilities, you should do a full switch to the repos.

Alternatively, file an openSUSE bug report and I’ll backport the fix to the standard kate package in 42.2.

Though TBH, I personally do not consider that important really.
And 42.3 will be released in July already.

I agree.

Thank you for helping.