Bug 272976

Summary: Kate trims filename improperly from the beginning in the left document tab window
Product: [Applications] kate Reporter: Matthew Schultz <mattsch>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: tambewilliam
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Matthew Schultz 2011-05-10 21:52:26 UTC
Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

Kate trims filename improperly from the beginning in the left document tab window.  This did not used to be a problem under KDE 4.4.  If the left document tab window was too narrow to show the entire filenames of the files, it would create a horizontal scrollbar.  Now under KDE 4.6.2, it trims the beginning of the file name with ... which is really not useful at all.  It would appear that it would be ok when showing full paths because it would trim the directory path first which is not as essential to see but if I am not using tree view, I would rather see the beginning of the filename because that is more important than the end of the filename.  The end of the filename is less important than the beginning of the filename because the end of the filename tends to contain an extension which is rarely necessary to see.  

I think you should give us an option on how we want to see the file list:  

1. Trim at the end of the filename if left document window is too narrow and not showing filenames with full paths.  In addition, it might be even better that if full paths are enabled, kate should trim the path first and then the end of the filename next so the beginning of the filename is always viewable.

or 

2. Show everything but with a horizontal scrollbar.

Reproducible: Always

Steps to Reproduce:
1. Open document tab window on left.
2. Make the document tab window too narrow to show complete filenames.

Actual Results:  
Filenames or paths are trimmed from the beginning with ...

Expected Results:  
1. Filenames without paths should be truncated from the end with ... and/or don't trim the filename but provide a horizontal scroll bar and/or do both.

2. If full paths are encountered, trim the directory and then trim the end of the filename or provide an option to enable a horizontal scrollbar like in KDE 4.4.
Comment 1 Dominik Haumann 2011-06-25 10:14:25 UTC
*** Bug 272091 has been marked as a duplicate of this bug. ***
Comment 2 Christoph Cullmann 2012-11-03 16:01:15 UTC
Git commit 29e122869bb24f85fd4ff2eda28758d35d678027 by Christoph Cullmann.
Committed on 03/11/2012 at 17:00.
Pushed by cullmann into branch 'master'.

dont force trim on left, works like wanted, files are trimmed from the right

M  +0    -2    kate/plugins/filetree/katefiletree.cpp

http://commits.kde.org/kate/29e122869bb24f85fd4ff2eda28758d35d678027