On Wednesday 18 February 2009 20:03:20 Randall R Schulz wrote:
On Wednesday February 18 2009, JB2 wrote:
On 18 February 09, Rajko M. wrote:
On Tuesday 17 February 2009 09:49:31 am JB2 wrote:
I'm finally getting around to asking this question. In the picture, when I mouse on 'open recent' a list pops up next to it. Every item in the list also has the location of that item after it in brackets '[ ]'. ...
How do I get rid of the garbage in the brackets? There's nothing in the 'settings' that does anything about it.
John
That seems to be in all KDE programs having Open Recent option. I checked KWrite and Kate and it is the same.
<sigh>...I just checked Kate also and you're correct, it does it there too.
This is sad. It used to be that my Linux system allowed me to be in charge, change things as *I* wanted them. ...
I think the OP confuses the illusion that an army of open source coders exists to read his mind and implement everything he desires with happiness. The freedom to use the source, change it as I wants and participate in improving it gives me more material feelings of warmth and being in control.
They don't come much more control freakish than I, so I won't (wouldn't) suggest that such control wouldn't be useful.
I think, though, that the reason for it is that many files with a given base name may occur, and presenting the full path name helps disambiguate in this situation.
You're right.
So at a minimum, they could be more selective and show the full names only when that information actually does disambiguate the overall list.
Should be a doddle for anyone with C++ 101 and an ounce of DIY: http://lxr.kde.org/source/KDE/kdelibs/kdeui/actions/krecentfilesaction.cpp#2... The simplest approach is to iterate the list of RecentFiles once before the current for loop, first counting each unique nameValue, then in the current loop only add the "[" + value + "]" if the count is greater than one. You'd want something like QHash<QString, uint> (http://doc.trolltech.com/4.4/qhash.html) to store the counts. Any takers? Will -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org