Bug 421747

Summary: Line returns in filenames in camelCase
Product: [Applications] dolphin Reporter: Hyoga <hyogapag>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: wishlist CC: elvis.angelaccio, kfm-devel
Priority: NOR    
Version: 19.04.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Hyoga 2020-05-18 23:06:08 UTC
I like to use camelCase to name my files and folders. It can be long names, which need several lines to display when using icons view (the default). But line returns occur whenever some maxlength is reached, not at the end of a word.

For instance, I have created a file called aVeryLongFilenameJustAsAnExample and Dolphin splits the name like that :

aVeryLongFilena
meJustAsAnExam
ple

Dolphin can already split filenames into several lines using some characters : spaces and underscores, afaik.

It would be great if some mechanism could split camel case filenames.
The logic would be like : if the filename doesn't contain any space nor underscore but is too long to fit on one line, split it after a lowercase character followed by an uppercase character.

I would greatly appreciate if this feature could be added in the future to Dolphin.

Thanks to all for Dolphin and the Whole KDE project. I really enjoy using it everyday since years.

Hyoga
Comment 1 Christoph Feck 2020-06-05 00:31:33 UTC
Dolphin uses Qt to wrap the label, so it needs to be added there. Please suggest a smarter implementation of the "wrap anywhere" mode directly to Qt developers via https://bugreports.qt.io/
Comment 2 Hyoga 2020-06-05 13:44:09 UTC
Thanks for the advice.
I opened this ticket: https://bugreports.qt.io/browse/QTBUG-84734