Feed Advanced Search

Mar 2 2018

rominf requested review of D10961: Add default shortcut "/" for opening filter panel.
Mar 2 2018, 7:53 AM · Dolphin
rominf updated the summary of D10960: Ask for confirmation when Closing Dolphin windows with a terminal panel running a program.
Mar 2 2018, 7:10 AM · Dolphin
rominf requested review of D10960: Ask for confirmation when Closing Dolphin windows with a terminal panel running a program.
Mar 2 2018, 7:08 AM · Dolphin
rominf updated the summary of D10959: Add action for focusing Terminal Panel.
Mar 2 2018, 6:14 AM · Dolphin
rominf requested review of D10959: Add action for focusing Terminal Panel.
Mar 2 2018, 6:12 AM · Dolphin
rominf added inline comments to D10804: Show "Empty Trash" button inside trash directory.
Mar 2 2018, 5:33 AM · Dolphin
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

Is the singleton class really needed? It imho seems a bit overkill for merely the trash status.
On the other hand, it does neatly move some trash functionality in it's own little space. But a class?..
The functions are also all self contained so it might be better suited in it's own namespace (say a TrashHelper::<youFunctions>).

Mar 2 2018, 5:22 AM · Dolphin
rominf updated the diff for D10804: Show "Empty Trash" button inside trash directory.
  • Remove memory leak
Mar 2 2018, 5:18 AM · Dolphin
rominf updated the summary of D10804: Show "Empty Trash" button inside trash directory.
Mar 2 2018, 4:29 AM · Dolphin

Mar 1 2018

rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

I did a major rewrite. Now it works fine. At least I cannot make it work wrong. I also fixed bug with trash icon after file restoration.

Mar 1 2018, 7:10 PM · Dolphin
rominf updated the diff for D10804: Show "Empty Trash" button inside trash directory.
  • Cleanup
Mar 1 2018, 6:08 PM · Dolphin
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

Try a .webm video; Phabricator doesn't look as though it can play the one you just uploaded.

Mar 1 2018, 3:41 PM · Dolphin
rominf updated the test plan for D10804: Show "Empty Trash" button inside trash directory.
Mar 1 2018, 3:39 PM · Dolphin
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

Try a .webm video; Phabricator doesn't look as though it can play the one you just uploaded.

Mar 1 2018, 3:33 PM · Dolphin
rominf updated the diff for D10804: Show "Empty Trash" button inside trash directory.
  • Squash commits to make the history more pretty
Mar 1 2018, 3:31 PM · Dolphin
rominf updated the summary of D10804: Show "Empty Trash" button inside trash directory.
Mar 1 2018, 3:23 PM · Dolphin

Feb 28 2018

rominf added inline comments to D10804: Show "Empty Trash" button inside trash directory.
Feb 28 2018, 1:02 PM · Dolphin
rominf updated the diff for D10804: Show "Empty Trash" button inside trash directory.
  • Disable Empty Trash button if trash was empty
Feb 28 2018, 10:45 AM · Dolphin
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

Now "Empty Trash" button is dynamically disabled on trash changes. Is uses dark KDirNotify magic and I'm pretty sure it's a huge overkill. I wanted to minimize watched directory by using trash:/ path, but it didn't work that way.

Feb 28 2018, 7:47 AM · Dolphin
rominf updated the diff for D10804: Show "Empty Trash" button inside trash directory.
  • Disable Empty Trash button when the trash is empty
Feb 28 2018, 7:42 AM · Dolphin

Feb 27 2018

rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

The problem is that it's not reliable. Steps to reproduce bug:

  1. Empty trash
  2. Delete 1 item to trash
  3. Restore that item by moving it outside of trash dir
  4. Observe that trash is empty but an icon is red (e.g. trash is full)

See also https://bugs.kde.org/show_bug.cgi?id=252483

Yes, exactly.

Feb 27 2018, 6:13 PM · Dolphin
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

Thanks, much better than before, but still various problems:

  • Button only shown on one side for Split, while it should show on both sides. Reason: The URL bar is located in such a way so the user knows it will affect what is below, the button should work the same. Besides, this breaks as soon as the split is undone, i.e. no button at all anymore depending on which side you close.

Fixed

  • Middle-clicking to open trash in new tab does not show button.

Fixed

  • Opening Find hides the URL bar, it should hide the button too.

Fixed

  • After triggering the action, disable the button instead of hiding it.

See comment below

  • When the trash is empty initially, disable the button.

See comment below

  • When a file is moved to the trash, the button should be enabled dynamically instead of having to navigate back and forth.\

See comment below

  • We could think about disabling the raised button border with setFlat(true), e.g. like in the toolbar or in the Find widget.

Fixed

Feb 27 2018, 5:52 PM · Dolphin
rominf updated the diff for D10804: Show "Empty Trash" button inside trash directory.
  • Show Empty Trash button every time user visits a trash
Feb 27 2018, 5:45 PM · Dolphin
rominf updated the summary of D10804: Show "Empty Trash" button inside trash directory.
Feb 27 2018, 5:35 PM · Dolphin
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

New idea: Add Empty Trash next to the URL bar. There should be plenty of space now, because "Trash:" will never grow. Also it would look quite similar to macOS if URL bar editing isn't active.

Feb 27 2018, 8:55 AM · Dolphin
rominf updated the diff for D10804: Show "Empty Trash" button inside trash directory.
  • Move Empty Trash button to navigation bar
Feb 27 2018, 8:54 AM · Dolphin
rominf retitled D10804: Show "Empty Trash" button inside trash directory from Show "Empty trash" button inside trash directory to Show "Empty Trash" button inside trash directory.
Feb 27 2018, 8:52 AM · Dolphin

Feb 26 2018

rominf added a comment to D10709: Add optional window title to filename templates.

Strange. Did you apply resize(500, 500);. Because it looks like you didn't.

I used arc patch, and I noticed that arc complained that this patch based on a commit not in the working copy. Could you re-base from master? Maybe that will fix it.

Feb 26 2018, 3:36 PM · Spectacle
rominf updated the diff for D10709: Add optional window title to filename templates.

Rebase on master

Feb 26 2018, 3:36 PM · Spectacle
rominf added a comment to D10709: Add optional window title to filename templates.

F5730612: %T.png

Was %T.png intentional, or did you trigger a bug?

Feb 26 2018, 10:12 AM · Spectacle
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

New idea: Add Empty Trash next to the URL bar. There should be plenty of space now, because "Trash:" will never grow. Also it would look quite similar to macOS if URL bar editing isn't active.

Feb 26 2018, 9:58 AM · Dolphin
rominf added a comment to D10709: Add optional window title to filename templates.

Here's one issue: the explanatory text now exceeds the bounds of the group box in Spectacle's settings:

Feb 26 2018, 9:16 AM · Spectacle

Feb 25 2018

rominf added a comment to D10832: Replace all enum to enum class.

Late to the party, here are my thoughts:

There's some value in the explicitness enum class sometimes provides, but counteracting it immediately with static_cast is not really useful.

I'd vote to apply this to new code only for now. Speaking from recent experience, it's easy to get things wrong regarding an enum refactoring ;) Better not to perform a mass change, unless there is a reviewer checking very thoroughly (I won't).

Feb 25 2018, 5:42 PM · Dolphin
rominf added a comment to D10832: Replace all enum to enum class.

That said, if we really want to do it, please get rid of those static_casts where possible, they will only reduce the readability of the code.

Agreed.

Feb 25 2018, 2:32 PM · Dolphin
rominf updated the summary of D10832: Replace all enum to enum class.
Feb 25 2018, 1:19 PM · Dolphin
rominf updated the summary of D10832: Replace all enum to enum class.
Feb 25 2018, 1:15 PM · Dolphin
rominf added a reviewer for D10832: Replace all enum to enum class: Dolphin.
Feb 25 2018, 12:58 PM · Dolphin
rominf requested review of D10832: Replace all enum to enum class.
Feb 25 2018, 12:57 PM · Dolphin
rominf updated the diff for D10709: Add optional window title to filename templates.

Replace QStringLiteral with isEmpty()

Feb 25 2018, 5:45 AM · Spectacle
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

Maybe send an email to kde-devel@kde.org?

Feb 25 2018, 3:50 AM · Dolphin
rominf added a comment to D10709: Add optional window title to filename templates.

It doesn't work with %T -> .png too.

Why not?

Because empty (except extension) filename looks strange. Also, I wonder how this will be displayed in file managers that are configured to hide extensions. File with an empty name?

Of course it would work without annoying everyone with Screenshot in most of their filenames. Taking your example:

%TScreenshot.png
%Y-%M-%D_%H-%m-%S_%T2018-02-21_19-10-42.png

Edit: Don't forget that users could already start their filename template with Screenshot_, so duplicating this would look quite odd.

Feb 25 2018, 1:09 AM · Spectacle
rominf updated the summary of D10709: Add optional window title to filename templates.
Feb 25 2018, 1:08 AM · Spectacle
rominf updated the diff for D10709: Add optional window title to filename templates.

Remove separators if there is no window title

Feb 25 2018, 1:06 AM · Spectacle

Feb 24 2018

rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

Yes, that would be in a separate diff. If you'd like, implement the feature in Dolphin for now, and then we can remove it when your KIO patch lands. Otherwise we'll have to delay this by a few weeks or more, waiting for whatever KDE Frameworks version your KIO patch lands in.

Feb 24 2018, 11:57 PM · Dolphin
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

I think that checking trash emptiness with KIO can be implemented in separate diff because it concerns another place. I guess I'm done.

Feb 24 2018, 11:23 PM · Dolphin
rominf updated the summary of D10804: Show "Empty Trash" button inside trash directory.
Feb 24 2018, 11:12 PM · Dolphin
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

It would be better to show button only if trash is not empty. KIO (https://api.kde.org/frameworks/kio/html/namespaceKIO.html) doesn't have isTrashEmpty function. Now Dolphin uses special code to check it. I propose to add it there. Can you point me at KIO repo?

Feb 24 2018, 11:11 PM · Dolphin
rominf updated the summary of D10804: Show "Empty Trash" button inside trash directory.
Feb 24 2018, 11:07 PM · Dolphin
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.
  1. This is definitely better than not having it, but it needs some UI polish. How about:
    1. Make the "Empty Trash button smaller, somehow. Do we have a less tall button we can use for this?

Why? In my opinion all buttons should be the same.

Feb 24 2018, 11:06 PM · Dolphin
rominf updated the diff for D10804: Show "Empty Trash" button inside trash directory.

Fixed compilation. Unified empty trash functions.

Feb 24 2018, 11:01 PM · Dolphin
rominf updated the diff for D10804: Show "Empty Trash" button inside trash directory.

Add licenses, move "Empty trash" button to the right, remove close button.

Feb 24 2018, 10:47 PM · Dolphin
rominf added a comment to D10804: Show "Empty Trash" button inside trash directory.

There is 3 places that is responsible for emptying trash. 2 of them use code from trash/dolphintrash.cpp. Third place is https://github.com/KDE/dolphin/blob/master/src/panels/places/placespanel.cpp#L458

Feb 24 2018, 10:38 PM · Dolphin
rominf updated the summary of D10804: Show "Empty Trash" button inside trash directory.
Feb 24 2018, 10:30 PM · Dolphin
rominf added a reviewer for D10804: Show "Empty Trash" button inside trash directory: KDE Applications.
Feb 24 2018, 7:24 PM · Dolphin
rominf updated the test plan for D10804: Show "Empty Trash" button inside trash directory.
Feb 24 2018, 7:22 PM · Dolphin
rominf updated the diff for D10804: Show "Empty Trash" button inside trash directory.

Add missed files

Feb 24 2018, 7:19 PM · Dolphin
rominf updated the summary of D10804: Show "Empty Trash" button inside trash directory.
Feb 24 2018, 7:12 PM · Dolphin
rominf added a reviewer for D10804: Show "Empty Trash" button inside trash directory: Dolphin.
Feb 24 2018, 7:03 PM · Dolphin
rominf requested review of D10804: Show "Empty Trash" button inside trash directory.
Feb 24 2018, 7:03 PM · Dolphin
rominf added a comment to D10709: Add optional window title to filename templates.

It doesn't work with %T -> .png too.

Why not?

Feb 24 2018, 12:08 PM · Spectacle
rominf added a comment to D10709: Add optional window title to filename templates.

We've now established that the fallback phrases aren't ideal, so let's focus what we could do about the superfluous marker characters. Instead of inventing a complicated system with new adaptive divider templates, I'd like to suggest a very pragmatic solution:

Most users will never go to this dialog, some users will use characters like .,:/_ etc. between other templates/custom text and the %T placeholder, and a few select will do something weird. Therefore most cases can be dealt with by simply removing those special characters before and after %T in case the window title is empty.

Would you be able to implement that?

I'm able to implement this but I found this approach dirty and complicated. It doesn't work with %T -> .png too. I changed my mind. I think that it's better to replace %T to "Screenshot":
%T -> Screenshot.png
%Y-%M-%D_%H-%m-%S_%T -> 2018-02-21_19-10-42_Screenshot.png

Feb 24 2018, 10:43 AM · Spectacle
rominf updated the test plan for D10709: Add optional window title to filename templates.
Feb 24 2018, 10:19 AM · Spectacle
rominf updated the diff for D10709: Add optional window title to filename templates.

Remove intermediate slot SpectacleCore::setWindowTitle

Feb 24 2018, 9:48 AM · Spectacle
rominf updated the test plan for D10709: Add optional window title to filename templates.
Feb 24 2018, 9:46 AM · Spectacle

Feb 23 2018

rominf updated the diff for D10709: Add optional window title to filename templates.

Add '%T' placeholder for filename pattern to insert window title.

Feb 23 2018, 5:50 PM · Spectacle
rominf added a comment to D10709: Add optional window title to filename templates.

@rominf Thanks for the updates, I'll look at the code later. Meanwhile you could improve your summary and your test plan a bit.

Done.

Feb 23 2018, 10:06 AM · Spectacle
rominf added a comment to D10709: Add optional window title to filename templates.

@ngraham What would be your preference: Adding "Fullscreen/Desktop/Region" when no window title is available, or simply omitting it?

If we omit %T when no window title available we will have bad filenames. For example: %T -> .png, `%Y-%M-%D %H-%m-%S. %T -> 2018-02-21 19-10-42. .png. We can insert generic Screenshot for %T, but in my opinion Full screen, etc. is better.

Feb 23 2018, 9:16 AM · Spectacle
rominf updated the summary of D10709: Add optional window title to filename templates.
Feb 23 2018, 9:12 AM · Spectacle

Feb 22 2018

rominf updated the diff for D10711: Remove "Remember last used Save mode" checkbox.
  • Remove saveButtonMode
Feb 22 2018, 1:45 PM · Spectacle
rominf updated the test plan for D10711: Remove "Remember last used Save mode" checkbox.
Feb 22 2018, 8:01 AM · Spectacle
rominf updated the diff for D10711: Remove "Remember last used Save mode" checkbox.

Updating D10711: Remove "Remember last used Save mode" checkbox

Feb 22 2018, 7:56 AM · Spectacle
rominf added inline comments to D10709: Add optional window title to filename templates.
Feb 22 2018, 7:47 AM · Spectacle
rominf added a comment to D10709: Add optional window title to filename templates.

Could you check this? We should test whether an emoji set in a webpage's title can be in the filename, also I could imagine that there are length restrictions. I'm not saying we should handle this ourselves, but we need to make sure that e.g. Qt is doing it for us.

According to https://stackoverflow.com/a/3085216/2108548 Qt doesn't handle filename restrictions. I searched for the good solution for this. It seems that the only real solution is to use boost. It's not an option, I suppose. I asked a question on IRC, nobody replied.

Feb 22 2018, 7:44 AM · Spectacle
rominf updated the diff for D10709: Add optional window title to filename templates.
Feb 22 2018, 7:43 AM · Spectacle

Feb 21 2018

rominf updated the summary of D10709: Add optional window title to filename templates.
Feb 21 2018, 4:13 PM · Spectacle
rominf updated the test plan for D10709: Add optional window title to filename templates.
Feb 21 2018, 4:08 PM · Spectacle
rominf added a comment to D10711: Remove "Remember last used Save mode" checkbox.

Is it OK now?

Feb 21 2018, 3:58 PM · Spectacle
rominf updated the summary of D10711: Remove "Remember last used Save mode" checkbox.
Feb 21 2018, 3:53 PM · Spectacle
rominf updated the diff for D10711: Remove "Remember last used Save mode" checkbox.

Remove "Remember last used Save mode" checkbox

Feb 21 2018, 3:31 PM · Spectacle
rominf updated the summary of D10711: Remove "Remember last used Save mode" checkbox.
Feb 21 2018, 3:28 PM · Spectacle
rominf added a comment to D10718: Remove "Remember last used Save mode" checkbox in Configure window.

Duplicates https://phabricator.kde.org/D10711

Feb 21 2018, 3:27 PM · Spectacle
rominf updated the diff for D10709: Add optional window title to filename templates.
  • Use "Desktop", "Full screen", "Region" in screenshot filenames
Feb 21 2018, 3:22 PM · Spectacle
rominf updated the summary of D10709: Add optional window title to filename templates.
Feb 21 2018, 3:19 PM · Spectacle
rominf added a comment to T8036: Use window title to suggest file names.

@rkflx, I agree with you. I changed the template to the one you've proposed.

Feb 21 2018, 2:46 PM · Spectacle
rominf updated the diff for D10709: Add optional window title to filename templates.
  • Use "Desktop", "Full screen", "Region" in screenshot filenames
Feb 21 2018, 2:41 PM · Spectacle
rominf added a reviewer for D10711: Remove "Remember last used Save mode" checkbox: rkflx.
Feb 21 2018, 1:05 PM · Spectacle
rominf requested review of D10711: Remove "Remember last used Save mode" checkbox.
Feb 21 2018, 1:03 PM · Spectacle
rominf added a comment to T8036: Use window title to suggest file names.

@rkflx Not sure if I understand you correctly. Do you propose to expand '%W' to window caption if that was a window screenshot, and to "Desktop", "Region" and "All monitors" for the other cases?

Feb 21 2018, 12:54 PM · Spectacle
rominf added a reviewer for D10709: Add optional window title to filename templates: rkflx.
Feb 21 2018, 12:22 PM · Spectacle
rominf added a comment to T8036: Use window title to suggest file names.
Feb 21 2018, 12:16 PM · Spectacle
rominf added a comment to T8036: Use window title to suggest file names.

See https://phabricator.kde.org/D10709

Feb 21 2018, 12:16 PM · Spectacle
rominf requested review of D10709: Add optional window title to filename templates.
Feb 21 2018, 12:15 PM · Spectacle
rominf added a comment to T8036: Use window title to suggest file names.

@rkflx Can you mock the GUI? I cannot find the solution that satisfies me.

Feb 21 2018, 11:07 AM · Spectacle
rominf added a comment to T8036: Use window title to suggest file names.

I already implemented windows title extraction and '%W' placeholder. Now I'm wondering how do I implement gui.

Feb 21 2018, 10:58 AM · Spectacle
rominf triaged T8036: Use window title to suggest file names as Normal priority.
Feb 21 2018, 10:57 AM · Spectacle

Feb 20 2018

rominf added a comment to D10683: Fix compilation on Qt 5.6.

@rkflx did you mean QT_MIN_VERSION and PLASMA_MIN_VERSION or just QT_MIN_VERSION?

Feb 20 2018, 4:23 PM · Spectacle
rominf updated the diff for D10683: Fix compilation on Qt 5.6.
  • Set minimal Qt version to 5.6
Feb 20 2018, 4:20 PM · Spectacle
rominf requested review of D10683: Fix compilation on Qt 5.6.
Feb 20 2018, 3:16 PM · Spectacle