Bug 272976 - Kate trims filename improperly from the beginning in the left document tab window
Summary: Kate trims filename improperly from the beginning in the left document tab wi...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 272091 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-10 21:52 UTC by Matthew Schultz
Modified: 2012-11-03 16:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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