Feed Advanced Search

Feb 8 2018

markg added a comment to D10378: Deprecate KFileItemList and introduce KFileItemListV2.

Based on the comment you made in D10380 it's logical that this commit won't make it as it currently is implemented.
The using line is probably also not the best option if you want to keep the convenience functions, inheriting would be better. But then again, inheriting from an std container gives it's own issues (like no virtual destructor...)

Feb 8 2018, 12:30 PM · Frameworks
markg committed R241:80ccfabb06ff: Allow move semantics to be generated for KFileItem. The existing copy… (authored by markg).
Allow move semantics to be generated for KFileItem. The existing copy…
Feb 8 2018, 12:08 PM
markg closed D10341: Allow move semantics to be generated for KFileItem. The existing copy constructor, destructor and copy assignment operator are now also generated by the compiler..
Feb 8 2018, 12:08 PM · Frameworks
markg added a comment to D10341: Allow move semantics to be generated for KFileItem. The existing copy constructor, destructor and copy assignment operator are now also generated by the compiler..

I like the idea of enabling moves for KFileItem very much.

But here's a fun fact: your unittest passes even without the rest of the patch.

PASS   : KFileItemTest::testMove()

That's because std::move() doesn't move, it only makes the argument eligible for e.g. a move ctor, but will call a copy ctor if there's no move ctor. So that test is not really testing that move works ;)
That's always a bit tricky to test, I guess, because one can't really rely on the state of the moved-from object to be anything in particular. And we want =default, not to implement some counters in there.
Oh well, then maybe there's no real way to unittest that moving works.

I know, i - somewhat - mentioned it ;)
"New test for move semantics (it passes, would probably pass without as well but just be a copy)."

The test might be rather pointless as is, but running that test though callgrind does show move semantics which is why i added it.
Do i just remove it?

Anyhow, the thing I'm wondering is the following: does the rule-of-zero lead to more opportunities for optimizations by the compiler, who can see "from the outside" that the 5 special members are the default generated ones, while your patch "hides" the implementation, lowering the visibility for the compiler in the rest of the code? Well, one could just move the 5 "=default" to the header to fix that.

There was an issue with that... I don't quite remember what it was. Let me try again... (to be continued)

  • continued --

It doesn't compile...
I don't know why or how to fix it, you might :)
This is the message:

Feb 8 2018, 12:38 AM · Frameworks
markg updated the diff for D10380: Refactor KCoreDirLister(Cache) to use KFileItemListV2 where possible..

Get rid of the temp file.

Feb 8 2018, 12:27 AM · Frameworks
markg requested review of D10380: Refactor KCoreDirLister(Cache) to use KFileItemListV2 where possible..
Feb 8 2018, 12:22 AM · Frameworks
markg requested review of D10378: Deprecate KFileItemList and introduce KFileItemListV2.
Feb 8 2018, 12:09 AM · Frameworks

Feb 7 2018

markg added a comment to D10341: Allow move semantics to be generated for KFileItem. The existing copy constructor, destructor and copy assignment operator are now also generated by the compiler..

I like the idea of enabling moves for KFileItem very much.

But here's a fun fact: your unittest passes even without the rest of the patch.

PASS   : KFileItemTest::testMove()

That's because std::move() doesn't move, it only makes the argument eligible for e.g. a move ctor, but will call a copy ctor if there's no move ctor. So that test is not really testing that move works ;)
That's always a bit tricky to test, I guess, because one can't really rely on the state of the moved-from object to be anything in particular. And we want =default, not to implement some counters in there.
Oh well, then maybe there's no real way to unittest that moving works.

Feb 7 2018, 11:34 PM · Frameworks

Feb 6 2018

markg requested review of D10341: Allow move semantics to be generated for KFileItem. The existing copy constructor, destructor and copy assignment operator are now also generated by the compiler..
Feb 6 2018, 2:31 PM · Frameworks
markg added a comment to D10325: [KFileWidget] Hide places frame and header.

Would it be possible to show it as if it were locked? That would solve all the issues with it, right?

I don't get it. That "lock" feature is entirely a Dolphin invention. It does exactly what I do here:

void DolphinDockWidget::setLocked(bool lock)
{
    ...
        if (lock) {
            ...
            setTitleBarWidget(m_dockTitleBar);
            setFeatures(QDockWidget::NoDockWidgetFeatures);

with m_dockTitleBar being a custom widget for some added padding

Feb 6 2018, 12:57 PM · Frameworks, Plasma

Feb 5 2018

markg added a comment to D10325: [KFileWidget] Hide places frame and header.

Why does it show the panel as if it were unlocked?
Your before image looks exactly like an unlocked frame in Dolphin.

Feb 5 2018, 3:41 PM · Frameworks, Plasma
markg added a comment to D10223: Improve preview thumbnail quality.

Hmm, weird. In my eyes the knovi thumbnail in the before image looks sharper than the after one. It's just blurred in the after one, not better.
I'm guessing the QML smooth property has a fairly naive implementation (in Qt).

Feb 5 2018, 2:32 PM · Plasma
markg added a comment to D10314: Use F11 as the shortcut to toggle the aside preview.

Fixed it!

Changing Dolphin to Alt-P would open a can of worms since the other panels are triggered with Function keys, so I think F11 makes sense here.

Feb 5 2018, 2:23 PM · Frameworks
markg accepted D10314: Use F11 as the shortcut to toggle the aside preview.
Feb 5 2018, 2:21 PM · Frameworks
markg accepted D10314: Use F11 as the shortcut to toggle the aside preview.

I use F11 to be consistent with Dolphin, where F11 toggles the information panel. It's not exactly the same thing, but I figured re-using existing KDE muscle memory was worthwhile. Alt-P could work too though, and would probably conflict less. Easier to type on a laptop with shared function keys, too.

Any ideas on the "ambiguous shortcut" issue?

Feb 5 2018, 2:20 PM · Frameworks
markg accepted D10319: [KFilePlacesModel] Group network shares under "Remote" category.

Makes sense imho.

Feb 5 2018, 12:36 PM · Frameworks
markg added a comment to D10314: Use F11 as the shortcut to toggle the aside preview.

+1 for the idea, just a question about the key.
Windows uses ALT+P: https://lifehacker.com/5811238/quickly-show-the-preview-pane-in-windows-7-with-alt-%252B-p
I don't know what Finder uses, you can probably tell ;)

Feb 5 2018, 12:32 PM · Frameworks

Feb 4 2018

markg requested changes to D10232: Include a pixel more in the dirty area.
Feb 4 2018, 9:53 PM · Konsole, Plasma
markg added a comment to D10232: Include a pixel more in the dirty area.

Please add a comment to the code for that.
It might be obvious now, but the next person that looks at that code without knowledge of this change probably has a "huh, what is that?" moment and left wondering why it's done.

Feb 4 2018, 9:53 PM · Konsole, Plasma
markg accepted D10085: Faster drag&drop in directories with thousands of files.
Feb 4 2018, 9:08 PM
markg added inline comments to D10288: [WIP, RFC] A different approach to reducing KFileItem copies.
Feb 4 2018, 2:13 PM
markg added a comment to D10288: [WIP, RFC] A different approach to reducing KFileItem copies.

When you measure the number of calls to the copy constructor, is that with a Debug build or a RelWithDebInfo build? The latter optimizes out a large number of calls to the copy ctor, so counting this on a debug build is a rather wrong measure.

Feb 4 2018, 1:52 PM
markg accepted D10085: Faster drag&drop in directories with thousands of files.

+1 from me.
Don't ship it yet though. Wait for at least @elvisangelaccio for his opinion about it.

Feb 4 2018, 1:29 PM
markg added inline comments to D10085: Faster drag&drop in directories with thousands of files.
Feb 4 2018, 3:26 AM
markg updated the diff for D10288: [WIP, RFC] A different approach to reducing KFileItem copies.
  • Revert change to CMakeLists.txt
Feb 4 2018, 3:11 AM

Feb 3 2018

markg committed R241:68a832c9e2aa: Use the destination KFileItem object to figure out of it's writable instead of… (authored by markg).
Use the destination KFileItem object to figure out of it's writable instead of…
Feb 3 2018, 11:37 PM
markg closed D10282: Use the destination KFileItem object to figure out of it's writable instead of creating a KFileItemListProperties which basically does the same thing but more expensive..
Feb 3 2018, 11:37 PM · Frameworks
markg added a comment to D10085: Faster drag&drop in directories with thousands of files.

You already have all the information you need. It's just incomplete when it arrives in DragAndDropHelper::dropUrls.

Feb 3 2018, 5:52 PM
markg committed R241:32b3bbcd16fd: Use the KFileItemListProperties copy constructor instead of the conversion from… (authored by markg).
Use the KFileItemListProperties copy constructor instead of the conversion from…
Feb 3 2018, 12:11 PM
markg closed D10261: Use the KFileItemListProperties copy constructor instead of the conversion from KFileItemList to KFileItemListProperties. This saves re-evaluating all items..
Feb 3 2018, 12:11 PM · Frameworks
markg requested changes to D10085: Faster drag&drop in directories with thousands of files.

I don't see why you use a QCache as you're not using any of it's features.
If you want to maintain a mapping of QUrl -> bool, just use a QHash.
I think maintaining a QUrl -> bool mapping is fine. What i did in my patch (only a bool) could have been an issue if you for whatever magical reason have a drag enter event with a different url without first receiving a drag close event - aka corner cases.

Feb 3 2018, 11:58 AM
markg accepted D10257: KUrlMimeData: fix handling of PreferLocalUrls.

Looks OK to me.
Had to read up on the KDE urls and local urls first though :)

Feb 3 2018, 2:05 AM · Frameworks
markg committed R241:c44784c98fcb: Don't cache the targetUrlList() result locally, return them from the locally… (authored by markg).
Don't cache the targetUrlList() result locally, return them from the locally…
Feb 3 2018, 12:22 AM
markg closed D10256: Don't cache the targetUrlList() result locally, return them from the locally cached m_items. Minor performance improvement as targetUrlList() is now only called (and the list created) when it's requested..
Feb 3 2018, 12:22 AM · Frameworks
markg updated the test plan for D10256: Don't cache the targetUrlList() result locally, return them from the locally cached m_items. Minor performance improvement as targetUrlList() is now only called (and the list created) when it's requested..
Feb 3 2018, 12:08 AM · Frameworks

Feb 2 2018

markg added a comment to D10085: Faster drag&drop in directories with thousands of files.

https://p.sc2.nl/S1yjzuGUz (hacked together, test thoroughly please)
Down to 5000 aka, the base testcase, it cannot go down further :) (did i just make it ~8 times faster? hehe)
And i'm using the QDropEvent isAccepted function now to prevent another call to urlListMatchesUrl.

Feb 2 2018, 11:30 PM
markg added a comment to D10085: Faster drag&drop in directories with thousands of files.

@jtamate how about this patch: https://p.sc2.nl/HyrIiwfIG
The rationale behind it is as follows. If a paste is allowed is checked upon drag enter and upon hovering a different folder within the drag. That value is stored in a bool.
Upon drag leave the value is always reset to false.

Feb 2 2018, 11:05 PM
markg requested changes to D10085: Faster drag&drop in directories with thousands of files.

@jtamate, you are trying to make this faster, which is awesome! But i think there is another issue. I just tried to benchmark this as well with a folder of 5000 empty files.
Within DragAndDropHelper::urlListMatchesUrl i see 40.007 calls to QUrl::matches. That smells weird.
Sure, there are probably some extra urls's (don't know where they come from), but that could explain the last 7. But the remaining 40.000 is 8x as much as the number of items that are being dragged. That's wrong!
Note that this is merely with one drag/drop.

Feb 2 2018, 7:44 PM
markg added a comment to D10245: Add more default user locations to Places model/panel.

Ha, funny. I would say +1 :)
Your idea is good and the default user places could imho be more then what is there by default right now.

Feb 2 2018, 4:04 PM · Frameworks

Jan 30 2018

markg added a comment to D7700: Show list of tags in PlacesView.

FWIW I'm still in favor of putting this in the Places panel via KIO, especially now that we have support for showing and hiding categories. If we make this its own new panel, I'd want to push for adding it to the default layout in Dolphin, or else nobody will ever see it and the work will be wasted.

Jan 30 2018, 7:59 PM · Frameworks, Dolphin

Jan 28 2018

markg requested changes to D8855: Use Kio::KPlacesModel as source model for PlacesItemModel.

See previous message (i don't know why phabricator immediately marked it as accepted when re-opening).

Jan 28 2018, 1:12 PM · Dolphin

Jan 25 2018

markg reopened D8855: Use Kio::KPlacesModel as source model for PlacesItemModel.

I think this commit broke a test.
https://build.kde.org/job/Applications%20dolphin%20kf5-qt5%20SUSEQt5.9/17/testReport/(root)/TestSuite/placesitemmodeltest/

Jan 25 2018, 8:14 PM · Dolphin

Jan 23 2018

markg added inline comments to D10015: Added the option to enable blur behind the window.
Jan 23 2018, 10:32 PM · Konsole
markg added a comment to D10015: Added the option to enable blur behind the window.

I very much like it!
I among others tried to fix this as can be seen in issue #198175 but gave up due to the wildly different corner cases that would make a small change really complicated.

Jan 23 2018, 3:20 PM · Konsole

Jan 18 2018

markg accepted D9824: Optimize inotify KDirWatch backend: map inotify wd to Entry.

Ship it from my side.

Jan 18 2018, 11:06 PM · Frameworks

Jan 16 2018

markg added a comment to D9824: Optimize inotify KDirWatch backend: map inotify wd to Entry.
In D9824#191929, @rjvbb wrote:

I am going to assume you would have said so by now if the fix is not applicable to the QFSW backend because it doesn't do the same costly walk.

> So please MAKE your PATCH TOUCH the QFSW backend AND MEASURE THE IMPACT ON ITS PERFORMANCE

I don't care a rat's ass if that is done in a separate patch or in this one, it just has to be done.

Jan 16 2018, 3:45 PM · Frameworks

Jan 15 2018

markg added inline comments to D9824: Optimize inotify KDirWatch backend: map inotify wd to Entry.
Jan 15 2018, 10:13 AM · Frameworks

Nov 6 2017

markg added a comment to D7440: Turn on Dolphin icon previews by default.

Note: i do think that you need to get an opinion from the Dolphin maintainer before pushing regardless of who else gives a +1 as this change could potentially be quite invasive and is going to change the default look (thumbnails be default).

Nov 6 2017, 5:00 PM · Dolphin
markg added a comment to D7440: Turn on Dolphin icon previews by default.

That was my thought too, but @markg and @anthonyfieroni weren't too keen on all the duplicated code, and it does allow us to centralize the kconfig part rather than duplicating it three times.

Nov 6 2017, 4:57 PM · Dolphin

Oct 31 2017

markg accepted D8527: Display "Downloaded From" by default, if file supports it.

Lovely! Less code, more features, those are the cool changes :)
I think it's safe to push.

Oct 31 2017, 8:51 AM · Dolphin

Oct 25 2017

markg accepted D8454: Make Saved Search feature discoverable.
Oct 25 2017, 8:15 PM · Dolphin
markg accepted D8454: Make Saved Search feature discoverable.

Ohhh! Nice addition!
+1 for the idea. Code looks OK in my opinion.
Don't push it right away, wait at least a few days or till someone else also gives a +1.

Oct 25 2017, 4:22 PM · Dolphin

Oct 23 2017

markg resigned from D7647: Two clicks on file/folder to rename.

I resign (for now), i need to retest this.
Sars brought up a very valid point that i didn't even consider yet. You do introduce some hybrid between single- and double click flows while potentially breaking current flows.

Oct 23 2017, 8:50 AM · Dolphin

Oct 21 2017

markg resigned from D7440: Turn on Dolphin icon previews by default.

I have my doubts for this one. The same block of code is now duplicated 4 times.. 3x in Dolphin, 1x in KIO.
Why not wait? Getting this in is not *that* important.. On the other hand i do get that waiting half a year (for applications 18.04) also seems excessively long which is why i understand the workaround.

Oct 21 2017, 6:13 PM · Dolphin
markg accepted D7647: Two clicks on file/folder to rename.
In D7647#156773, @markg wrote:

@elvisangelaccio and @markg, how's this looking now?

I don't see the suggested changes so a +1 is a bit premature.

I set all comments to "Done" where I know they are done. There are still some left with no further comments from you guys, so they are done too?

Oct 21 2017, 11:41 AM · Dolphin
markg requested changes to D7440: Turn on Dolphin icon previews by default.

At the very least - regardless of my previous comment - you'd also have to raise the minimum required frameworks version in Dolphin' CMakeLists.txt.
It's the line: set(KF5_MIN_VERSION "5.37.0") which has to be changed to set(KF5_MIN_VERSION "5.40.0").

Oct 21 2017, 11:34 AM · Dolphin
markg added a comment to D7440: Turn on Dolphin icon previews by default.

With dependencies now merged, I think this is ready once more for the firing squad errr I mean review process. :)

Oct 21 2017, 11:25 AM · Dolphin

Oct 20 2017

markg accepted D8352: Use KIO::PreviewJob::defaultPlugins().

Please do make sure (just as a test before you push this) that the default plugins (which now is all except for the text plugin if i recall correctly) are enabled in Dolphin' settings (General -> Previews).

Oct 20 2017, 3:01 PM
markg added a comment to D8243: Implement support for categories on KfilesPlacesView.
In D8243#157336, @markg wrote:

We have such a nice modular design with panels yet we keep cramming everything in the places panel... Why?
It's not just here, I've seen patches like this for Dolphin as well.

Imho, the places panel should only contain the top places - favorites if you will - that you might want to access quickly. Nothing else and should stay small.
Baloo -> new panel
Devices -> new panel
Remote devices -> Either in Devices or a new panel as well
etc..

Having more panels will give a whole different issues. Scrolling. Since each panel would be relatively small if you add many you will get scrollbars within the panels. Well, lets just get rid of the per panel scrollbar and merely have one for the whole "panel container" (like in macOS finder).

Just my 5 cents...

@markg, I never used macOs finder, but looking at the internet images. This is exactly what I am proposing and what we have on dolphin today. A single list with only one scrollbar split in sections.

I am just trying to keep the same visuals on both (dolphin and file dialog) to avoid confusion for users,  they can get lost if you show different information.

Our final idea is that you will be able to hide sections that you do not want, For example the local devices and network.

Oct 20 2017, 12:46 PM · Frameworks
markg added a comment to D8243: Implement support for categories on KfilesPlacesView.

We have such a nice modular design with panels yet we keep cramming everything in the places panel... Why?
It's not just here, I've seen patches like this for Dolphin as well.

Oct 20 2017, 11:40 AM · Frameworks

Oct 18 2017

markg accepted D8347: KIO::PreviewJob::defaultPlugins() function.

I still need to add a @since in the header documentation, after which point hopefully @markg will approve. :)

Oct 18 2017, 5:06 PM · Frameworks
markg added a comment to D7647: Two clicks on file/folder to rename.

@elvisangelaccio and @markg, how's this looking now?

Oct 18 2017, 8:05 AM · Dolphin
markg requested changes to D8227: Show total space in status bar's Free Space widget.

-1 for the idea as is.

Oct 18 2017, 8:03 AM · Dolphin
markg requested changes to D8347: KIO::PreviewJob::defaultPlugins() function.

I'm a bit skeptical about this function...
It in fact is all plugins minus (in this case) the text thumbnail with no way to configure it afterwards.
That means a updates blacklist can only be distributed in a new kio release.

Oct 18 2017, 7:29 AM · Frameworks
markg added a comment to D6280: Dolphin softer drop shadow for thumbnails.

I still prefer the old one over the new one.
-1.

Oct 18 2017, 7:12 AM · Dolphin

Oct 16 2017

markg added a comment to D8273: Change window title when searching.
/**
 * Sets a context that is used for remembering the view-properties.
 * Per default the context is empty and the path of the currently set URL
 * is used for remembering the view-properties. Setting a custom context
 * makes sense if specific types of URLs (e.g. search-URLs) should
 * share common view-properties.
 */
void setViewPropertiesContext(const QString& context);
QString viewPropertiesContext() const;
Oct 16 2017, 10:50 AM · Dolphin

Oct 15 2017

markg accepted D8303: Show Date Modified information by default in Dolphin's Information Panel and Tooltips.

Honestly I think it's fine the way it is: in the details view, we have a nice compact string that doesn't make the column too wide, and in the Information Panel, we have a longer string that provides more information and isn't too big since text can wrap there.

I do see your point though, and I agree that the long string should be customizable in some way for people who prefer a shorter string. But that seems out of scope for this change; can we stick to this change here, and discuss that other change (which I do approve of:) ) in another patch or bug report?

Oct 15 2017, 7:51 PM · Dolphin
markg added a comment to D8303: Show Date Modified information by default in Dolphin's Information Panel and Tooltips.

@markg I actually like the current verbose format. That's somewhat unrelated to this; can we track that change, if any, with a new patch?

Oct 15 2017, 7:23 PM · Dolphin
markg added inline comments to D7647: Two clicks on file/folder to rename.
Oct 15 2017, 1:29 PM · Dolphin
markg requested changes to D7647: Two clicks on file/folder to rename.

I'm OK with this feature after the code is correct.
So with probably my suggestion and those of @elvisangelaccio

Oct 15 2017, 1:27 PM · Dolphin
markg requested changes to D8303: Show Date Modified information by default in Dolphin's Information Panel and Tooltips.

+1 for having this property
-1 for the current rather verbose date format. Look at the "Modified" column in the any dolphin details view. It (on my setup) just shows a date and a HH:MM timestamp. That would be enough information, right?

Oct 15 2017, 1:11 PM · Dolphin

Oct 12 2017

markg requested changes to D7446: [Places panel] Revamp the Recently Saved section.

That said, it's not just me who wants this in Dolphin, too. There's a Bugzilla ticket with one dupe and 32 votes: https://bugs.kde.org/show_bug.cgi?id=357542

Also, we have a semi-functional version of this already in the form of the Places panel's Recently Saved section. So there does seem to be some interest, both historical and current, in having Dolphin show recent files by default.

Oct 12 2017, 6:03 PM · Frameworks, Dolphin
markg added a comment to D7446: [Places panel] Revamp the Recently Saved section.

@markg, I strongly disagree that "recent files" are not useful in open/save dialogs.

As I've mentioned before, a common use case that this enables is when you save an item from one program and need to open it in another without having a Dolphin window open that shows it. One example is attaching files to websites. You just go to the "Recent files" entry in the Open window and voila, your latest saved file is right there on the top. It's a super fast workflow.

There is a reason why "Recent items" is a default entry in the file manager and open/save dialogs in macOS and GNOME. They didn't add it for no good reason.

Oct 12 2017, 5:31 PM · Frameworks, Dolphin

Oct 9 2017

markg added a comment to D8227: Show total space in status bar's Free Space widget.

That is a somewhat cryptic notation. Sure, it tells you exactly what you want to know "if" you know that's what it's telling you.
On the other hand, anything longer might be too long.

Oct 9 2017, 7:54 PM · Dolphin

Sep 25 2017

markg requested changes to D7647: Two clicks on file/folder to rename.

Please, change the naming of "fast renaming".
You could also argue that pressing F2 on a selected item (or multiple even) is even faster renaming.

Sep 25 2017, 8:17 PM · Dolphin

Sep 23 2017

markg added a comment to D7957: Turn on frames around dock widgets by default.

Watch this: https://www.youtube.com/watch?v=T0Jj4lUm_p8
Apple really has done a marvelous job in making tags useful!

Sep 23 2017, 11:31 PM · Plasma, Breeze
markg added a comment to D7957: Turn on frames around dock widgets by default.

-1 for the current version as well.
We've had those frames before. The benefit of locking docks is no frame (for me that is the benefit).

Sep 23 2017, 10:37 PM · Plasma, Breeze
markg added a comment to D7700: Show list of tags in PlacesView.

The title is only visible when the panels are unlocked. But in fact, the problem goes away when panels are unlocked; it's only a problem when locked. I'm working on a patch that improves this when panels are locked. Either way, we should continue that discussion in https://bugs.kde.org/show_bug.cgi?id=384999.

Sep 23 2017, 4:45 PM · Frameworks, Dolphin
markg added a comment to D7700: Show list of tags in PlacesView.

If we can make it a separate panel and overcome some of the disadvantages of having multiple panels. I'm fine with it. That means:

  1. Make the Tags panel visible by default
  2. Include a visible separator between panels (https://bugs.kde.org/show_bug.cgi?id=384999)

    I can work on https://bugs.kde.org/show_bug.cgi?id=384999.
Sep 23 2017, 4:30 PM · Frameworks, Dolphin
markg added a comment to D7700: Show list of tags in PlacesView.

Again, same with recentdocuments, if stuff like this is added by default, it needs to work just fine in the normal usecases, otherwise it will cause bug reports which will in term cause the tags part to be disabled by default. Yes, chicken and egg problem plays here as well.

I'm working on improving the tags ioslave. D7855 was a first step on this.

Sep 23 2017, 4:27 PM · Frameworks, Dolphin
markg added a comment to D7700: Show list of tags in PlacesView.

Just curious, i have some files with tags (just added them). Baloo is running, but tags:/ is empty...
System monitor shows a baloo_file running at 100% cpu...

Sep 23 2017, 3:10 PM · Frameworks, Dolphin
markg added a comment to D7700: Show list of tags in PlacesView.

If we make a new panel, we incur the following disadvantages:

  1. Lots of extra work, increasing the chance that it won't get done. We already have working code to add it to the Places panel.
  2. Assuming we make a new Tags panel, if we don't make it visible by default, almost nobody will ever see it, negating the purpose of adding the feature and keeping the overall Tags feature very un-discoverable.
  3. If we *do* make the new Tags panel visible by default, it will compete for vertical space currently used by the Places and Folders panels, and people will probably close it if it's visible by default, and not open it in the first place if it's not.

    I know that technically Tags aren't places, but the advantage of putting this in Places is that people will actually see it and use it. If we put it somewhere else, especially in a not-visible-by-default panel, I worry that the work will be essentially wasted.
Sep 23 2017, 2:55 PM · Frameworks, Dolphin
markg added inline comments to D7700: Show list of tags in PlacesView.
Sep 23 2017, 2:42 PM · Frameworks, Dolphin
markg added a comment to D7700: Show list of tags in PlacesView.

Sorry for acting like a "protect the places panel" guy again.. but yeah, again :)
Please make a Panel for tags, not slapping it into the places panel. The macOS finder example was shown, that exact result can be achieved by putting it into the places panel, but also by putting it in it's own panel!
Making it's own panel for it is much cleaner and maintainable.

Sep 23 2017, 2:30 PM · Frameworks, Dolphin
markg added a comment to D7446: [Places panel] Revamp the Recently Saved section.

It seems odd to have all of these special KIO URLs that we don't actually want to use because they're rough and underdeveloped. They're rough and underdeveloped because they're hidden by default, so nobody sees them, and nobody files bugs or submits patches for them. But I do see your point.

That said, the advantage to adding this as a Places item is that it shows up in file open/save dialogs for free, which is where it's most useful. If we make this into a whole new panel, we'll have to do a bunch of otherwise unnecessary special work to get it into open/save dialogs. I don't see the advantage.

If the objection is that the content isn't useful (why does it show URLs?), then I can fix that too, but only if by doing so, folks will be amenable to adding a "Recent Documents" entry by default. It really is useful to have recent documents aggregated somewhere.

Sep 23 2017, 12:06 PM · Frameworks, Dolphin

Sep 22 2017

markg added a comment to D7446: [Places panel] Revamp the Recently Saved section.

Yeah I also find weird to see weblinks in there. Maybe if we call it "History" would be a bit better (and it would also match the History tab in Kickoff).

Sep 22 2017, 9:33 PM · Frameworks, Dolphin
markg added a comment to D7446: [Places panel] Revamp the Recently Saved section.

I don't think this is "semi-useful". " A Recent Documents feature in the file manager and open/save dialogs is IMHO really important, especially for lesst-technical users who use features like this on other platforms expensively instead of making extensive use of folder hierarchies. "The user can add it" is a problematic response since 99.9% of users don't know this exists, and therefore don't know that this functionality is available in the first place (and if they did, they would find it challenging to add).

The file managers and open/save dialogs in macOS and GNOME both have some kind of "recent stuff" feature shown by default, and it's really nice. And ad evidenced by the but report and the fact that people have voted for it, this is a desirable feature to some of our users.

Sep 22 2017, 9:24 PM · Frameworks, Dolphin
markg added a comment to D7446: [Places panel] Revamp the Recently Saved section.

You could continue and add about a dozen more "semi-useful" protocol links (ftp, settings, programs, bluetooth, and much more) ;) .
I don't think that's the route for the places panel to go. Not by default that is.
If the user wants it, it can be added just like any shortcut can be added in the places thingy. By default it should stay rather clean. recentdocuments is (in my opinion) not one that should be there by default. Also, for me personally it seems rather weird as recently visited url's are also in the recent documents.... And files I've accessed on the console don't appear in it at all (understandable though).

Sep 22 2017, 8:54 PM · Frameworks, Dolphin

Sep 5 2017

markg added a comment to D7655: Make sure we always have Shift+Del as shortcut.

Imho, it should just use the one set in system settings. Not hardcode anything besides perhaps a default one if nothing has been set.

Sep 5 2017, 3:43 PM

Sep 4 2017

markg added a comment to D6280: Dolphin softer drop shadow for thumbnails.

Ugh, both don't look that neat to be honest.
But i would still prefer the old one over the softer one. The soft one looks too soft, specially with the tiny thumbnails in list mode, it looks like a weird white area (not as a shadow) while the old one did look like a shadow.

Sep 4 2017, 11:43 AM · Dolphin

Aug 27 2017

markg added a comment to D7498: Add option to group hidden files and folders at the end.

I'm sorry, but i'm very much against adding this feature.
It was shot down by the previous maintainer for (in summary) being a really small feature that a _really_ small percentage of the users would be using (if any).
See Frank's reasoning for closing it as wontfix: https://bugs.kde.org/show_bug.cgi?id=333219

Aug 27 2017, 8:15 PM

Aug 21 2017

markg added a comment to D7440: Turn on Dolphin icon previews by default.

With all the thumbnailers you turned on, i'd be against it.
It's probably not going to slow down scrolling speed because the thumbnail generation is done in another process. Thankfully! Otherwise you would be horrible slow :)
But on large folders it will have an impact on the CPU i think.

Aug 21 2017, 2:34 PM · Dolphin

Jun 19 2017

markg accepted D6269: Support "Deletion Date" role in Trash.

A very big +2!
You can wait for Emanuel to chime in and give his opinion.
It seems a bit unlikely that he would chime in anytime soon though. His last mail in the KFM list (either by mail or by comment on reviewboard or here) is from Feb. 18. You can wait for him, but i think he would be fine with fine with the change.

Jun 19 2017, 3:23 PM

May 15 2017

markg committed R135:f25c5e10d023: Fix deprecation warnings. setSelection -> setSelectedUrl ui -> uiDelegate (authored by markg).
Fix deprecation warnings. setSelection -> setSelectedUrl ui -> uiDelegate
May 15 2017, 1:04 PM
markg closed D5743: Fix deprecation warnings. setSelection -> setSelectedUrl ui -> uiDelegate by committing R135:f25c5e10d023: Fix deprecation warnings. setSelection -> setSelectedUrl ui -> uiDelegate.
May 15 2017, 1:03 PM · Plasma
markg committed R135:4aef17e64f56: Replace Q_DECL_OVERRIDE with override. (authored by markg).
Replace Q_DECL_OVERRIDE with override.
May 15 2017, 12:57 PM
markg closed D5742: Replace Q_DECL_OVERRIDE with override. by committing R135:4aef17e64f56: Replace Q_DECL_OVERRIDE with override..
May 15 2017, 12:57 PM · Plasma

May 8 2017

markg added a comment to D5767: Postpone searches for half a human moment.

I don't think adding a (rather massive) delay is the real fix here. It only masks the actual issue.

May 8 2017, 4:37 PM · Plasma

May 7 2017

markg created D5743: Fix deprecation warnings. setSelection -> setSelectedUrl ui -> uiDelegate.
May 7 2017, 3:47 PM · Plasma
markg created D5742: Replace Q_DECL_OVERRIDE with override..
May 7 2017, 3:27 PM · Plasma