Bug 457885

Summary: show end of line type on the status bar
Product: [Applications] kate Reporter: João Vidal da Silva <joao.vidal.silva>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: christoph, waqar.17a
Priority: NOR    
Version: 22.04.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description João Vidal da Silva 2022-08-14 16:02:04 UTC
It would be helpful if Kate could show the End of Line type (unix/windows/mac) on the status bar for the displayed document.

I was looking at two identical text files that had different file sizes. A 'Meld' comparison told they're identical. Finally using 'hexdump' I saw the different '0a' / '0d0a' characters.
Of course, then I checked Kate's menu Tools->End of Line for both files and they were different, but that's not very pratical.
Comment 1 Waqar Ahmed 2022-08-15 13:04:37 UTC
Seems overkill to show it in the statusbar, space is precious there so only very high priority/commonly found stuff lives there. That said, if there are any other editors that also show it maybe we can too
Comment 2 Christoph Cullmann 2022-08-15 15:19:17 UTC
If one adds some configuration for that, no problem.
But to show it per default is a no-go for me, I close to never in my life care for that. And I would assume most other people neither.
Comment 3 Waqar Ahmed 2022-08-15 21:09:17 UTC
Git commit 88ce720d481aa26b0b7143a59c84eddd020c3475 by Waqar Ahmed.
Committed on 15/08/2022 at 21:02.
Pushed by waqar into branch 'master'.

Optionally allow to show EndOfLine type in statusbar

M  +3    -0    src/dialogs/katedialogs.cpp
A  +84   -0    src/dialogs/statusbarconfigwidget.ui
M  +1    -0    src/utils/kateconfig.cpp
M  +1    -0    src/utils/kateconfig.h
M  +29   -0    src/view/katestatusbar.cpp
M  +3    -0    src/view/katestatusbar.h
M  +5    -0    src/view/kateview.cpp
M  +1    -0    src/view/kateview.h

https://invent.kde.org/frameworks/ktexteditor/commit/88ce720d481aa26b0b7143a59c84eddd020c3475