Bug 290653 - Also add up total lines/words/characters when selecting multiple files
Summary: Also add up total lines/words/characters when selecting multiple files
Status: RESOLVED INTENTIONAL
Alias: None
Product: nepomuk
Classification: Miscellaneous
Component: widgets - FileMetadataWidget (show other bugs)
Version: 4.10.90
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Nepomuk Bugs Coordination
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 01:21 UTC by Kai Uwe Broulik
Modified: 2013-07-11 07:32 UTC (History)
2 users (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 Kai Uwe Broulik 2012-01-05 01:21:37 UTC
Version:           1.99 (using Devel) 
OS:                Linux

I don’t know if this is possible or would lead to a significant performance loss but it would be nice if the information panel also showed the total lines, words and characters when selecting multiple files. It already does with a single file but with multiple only their sizes are added up.

Reproducible: Always

Steps to Reproduce:
1. Select multiple e.g. PHP or C files

Actual Results:  
The info bar only shows a rating (average?), comments, keywords and total size

Expected Results:  
The info bar also shows the total amount of lines, characters and words in those files

Peter, didn’t you say something about that with the new view-engine it is possible to expose *all* properties to the view, i.e. make all properties such as rating, special JPEG or video properties available to have them displayed next to the file name, instead of only pre-chosen ones? Would this also make the above possible?
Comment 1 Frank Reininghaus 2013-07-11 07:20:50 UTC
If I'm not mistaken, this has nothing to do with Dolphin, but with the meta data widget (this is the reason why Peter originally reassigned the issue to kdelibs). We already tell it about all selected items, see the line

m_metaDataWidget->setItems(items);

in

void InformationPanelContent::showItems(const KFileItemList& items)

It's up to Nepomuk if showing meta information for multiple files makes sense. One important point to consider though is if how many resources pressing Ctrl+A in a huge folder would require then - if there is a risk that it might block the GUI for a considerable amount of time, then this should either be done asynchronously or not at all (depending on how important one considers this feature).
Comment 2 Vishesh Handa 2013-07-11 07:32:34 UTC
We do implement this for multiple files, but only when the files have been indexed via Nepomuk. In that case the word, line and character count are totaled.

It is a too big performance impact to implement this when the files are not indexed. I don't think I'm going to do that.

Marking as WONTFIX. Kai, please enable Nepomuk and index the files for which you want to see this additional information.