Commit graph

6106 commits

Author SHA1 Message Date
Nazar Kalinowski 7f6d49377b Make non-empty textual columns come first in sorting
Summary:

Current behavior of dolphin in sorting of files with textual columns (e.g. tags) is to show files without this particular textual column (e.g. without tags) first.
This patch changes this behavior so that dolphin shows the files with some value before the files without any value for chosen sorting method.

BUG: 410538

Test Plan:
Sorting by name (isn't affected by the patch): https://i.imgur.com/eqbYwyZ.png
Sorting by textual column ("tags" in this particular example),
old version (non-tagged files and folders come first): https://i.imgur.com/5KLLujU.png
patched version (tagged files and folders come first): https://i.imgur.com/oUAeZ2z.png

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23482
2019-09-01 17:50:25 +02:00
Méven Car eaec53a7af Add click to play/pause feature on previews for audio/video
Test Plan:
In dolphin, click on a video or audio preview in the information panel.
The video or audio preview starts

Reviewers: elvisangelaccio, #dolphin, ngraham

Reviewed By: elvisangelaccio, #dolphin, ngraham

Subscribers: alexde, anthonyfieroni, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22183
2019-09-01 16:47:22 +02:00
Christoph Feck 246a525fda GIT_SILENT Upgrade KDE Applications version to 19.08.1. 2019-09-01 05:28:07 +02:00
Kai Uwe Broulik db717a21c5 Don't store view properties on network shares
Entering a folder will have Dolphin determine whether it can store the view properties in a .directory file within the folder or
in a generic config location.
It does so by checking for permissions on the file and parent dir causing various stat calls that potentially block on a slow mount.
Also, the config reading thereafter can be very slow.
Moreover, network shares are typically shared between users, so one user's view properties shouldn't affect or be overwritten
by this Dolphin instance.
It doesn't resolve symlinks but is surely an improvement over the status quo.

Differential Revision: https://phabricator.kde.org/D23458
2019-08-28 09:47:29 +02:00
Kai Uwe Broulik f4a1d1b022 Always periodically dispatch pending items
"Local" URLs can also be slow.
This might jeopardize loading large local directories where a resorting could take place but imho it's better than leaving the user
wondering when files will finally show up. However, it takes some time for KDirLister to initially signal items having been added,
and only then our 2 second timer starts.
Also, stop the timer when loading has completed.

Differential Revision: https://phabricator.kde.org/D23460
2019-08-27 13:26:26 +02:00
Nate Graham 0c4f58328f Merge branch 'Applications/19.08' 2019-08-25 10:36:26 -06:00
Alexander Saoutkin 91709cb6fe Fixing bug where split view opens with no URLs
Summary:
BUG: 411193
FIXED-IN: 19.08.1

Test Plan:
Reproduce steps as given in bug report. Observe the exected result.
Used qdbusviewer and ShowFolders method to observe that no regressions occured
in the "open new folders in tabs" feature.

Reviewers: elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23445
2019-08-25 10:36:07 -06:00
Simon Krull 9cd042a86c Change default Dolphin toolbar layout
Summary:
{F7205836}

Use a default toolbar layout that looks better and makes more sense for new users.

Test Plan: Open Dolphin (with the default toolbar)

Reviewers: #dolphin, #vdg, ngraham, GB_2, elvisangelaccio

Reviewed By: #dolphin, #vdg, ngraham, GB_2

Subscribers: iasensio, filipf, meven, elvisangelaccio, felixernst, GB_2, ndavis, ngraham, kfm-devel, #vdg, #dolphin

Tags: #dolphin, #vdg

Differential Revision: https://phabricator.kde.org/D23075
2019-08-25 09:35:00 -06:00
Nate Graham 97f4934748 Middle-elide file/folder labels so the extension is always visible
Summary:
This ensures that the filename extension is always visible, and also is just a
nicer way to elide file and folder names in general.

BUG: 404955
FIXED-IN: 19.12.0

Test Plan:
Details view: {F6648784}
Icons view with limited label height: {F6648785}

Reviewers: #dolphin, #vdg, elvisangelaccio, GB_2

Reviewed By: #dolphin, #vdg, elvisangelaccio, GB_2

Subscribers: GB_2, ndavis, rooty, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19471
2019-08-24 12:44:56 -06:00
Nate Graham 7a83a680a5 Correct "New Window" tooltip
BUG: 411215
FIXED-IN: 19.12.0
2019-08-24 08:16:42 -06:00
Laurent Montel 6dc0e81ef1 Exclude build* repository 2019-08-23 08:10:41 +02:00
Nazar Kalinowski 30b57ac339 Fix a typo
Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23264
2019-08-19 09:57:37 -06:00
Nate Graham ea82a36420 Correct translation context for zoom out action's what's this text 2019-08-14 12:04:56 -06:00
Antonio Prcela 0ab2779058 Remove redundant code
Summary: Remove redundant negation and the AND check. OR is enough.

Reviewers: meven, elvisangelaccio

Reviewed By: meven, elvisangelaccio

Subscribers: elvisangelaccio, meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23129
2019-08-13 23:22:06 +02:00
Elvis Angelaccio c18f5fde4b Match style of if() condition used above
To be consistent with aeba47648d.
2019-08-11 16:05:42 +02:00
Elvis Angelaccio 87f30d3fc8 Merge branch 'Applications/19.08' 2019-08-11 16:01:41 +02:00
Andrey Yashkin ec1a0c2543 Fix an issue with focus lost after closing terminal panel
Summary:
After leaving terminal with Ctrl-D or exit commands the input focus isn't set back to the folder view.
The problem appears, because `TerminalPanel::isHiddenInVisibleWindow` returns not what it supposed to return,
since when the terminal process exits, `m_terminal` is set to nullptr.

I moved unwanted checks from it inside `TerminalPanel::dockVisibilityChanged`

This change also exposes a crash in `DolphinMainWindow::slotTerminalPanelVisibilityChanged()`,
which was previously working only by luck.
Now we check whether `m_activeViewContainer` is not null before using it.

BUG: 407979
FIXED-IN: 19.11.80

Test Plan:
1. Open Dolphin
2. Press F4 to open the terminal panel
3. Type exit<Enter> or press Ctrl-D
4. Check current focus widget

Reviewers: #dolphin

Subscribers: ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22420
2019-08-11 13:14:00 +02:00
Elvis Angelaccio 4a25f01b7c Move variables closer to their usage
GIT_SILENT
2019-08-11 12:37:51 +02:00
Elvis Angelaccio 2de943fbe4 Coding style fixes
GIT_SILENT
2019-08-11 12:35:08 +02:00
Elvis Angelaccio aeba47648d Do not match daemonized dolphin instances: part 2
Summary:
`dolphin --daemon` does not have the `/dolphin/Dolphin_1` dbus path,
because it doesn't have any DolphinMainWindow.

Checking if the QDBusInterface is valid is not enough, we also need to look for dbus errors.

This should have been part of commit 7df5fc8edb. Not sure how I missed it.

BUG: 408244
FIXED-IN: 19.08.0

Test Plan:
1. Make sure the new "Open new folders in tabs" setting is enabled.
2. Run `dolphin --deamon` and make sure is the only dolphin process around.
3. Call the `org.freedesktop.FileManager1.ShowFolders` method from QDbusViewer.

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23087
2019-08-11 12:18:53 +02:00
Christoph Feck 40bc9531c5 GIT_SILENT Upgrade KDE Applications version to 19.08.0. 2019-08-09 01:59:49 +02:00
Wolfgang Bauer e39b7e8f5a Merge branch 'Applications/19.08' 2019-08-07 18:11:51 +02:00
Wolfgang Bauer 68aee5ed51 Fix build with cmake < 3.7
`VERSION_GREATER_EQUAL` was introduced in cmake 3.7, but the specified
minimum version is 3.0.
So use `NOT VERSION_LESS` instead to still support older cmake versions
too.

Differential Revision: https://phabricator.kde.org/D22984
2019-08-07 18:08:57 +02:00
Piotr Henryk Dabrowski ba92917ac2 [Dolphin] Hide tooltip instantly on key press
Summary:
Instantly hide tooltip shown over an element when a key is pressed.

Currently, when pressing an alphanum key to select a different file,
the tooltip continues to cover much of the window - often hiding that newly selected file from view.

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: broulik, elvisangelaccio, kfm-devel, pdabrowski

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22512
2019-08-03 15:29:26 +02:00
l10n daemon script 50c1fcce37 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-07-31 08:56:25 +02:00
l10n daemon script 2baa6d1871 GIT_SILENT made messages (after extraction) 2019-07-31 07:41:55 +02:00
l10n daemon script 89239912d8 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2019-07-31 05:06:34 +02:00
l10n daemon script 5bc8a93bfb GIT_SILENT made messages (after extraction) 2019-07-31 02:26:09 +02:00
Christoph Feck 813e8866b7 GIT_SILENT Upgrade KDE Applications version to 19.07.90. 2019-07-29 15:44:58 +02:00
Yuri Chornoivan cbaa58b372 Fix minor typo (thanks to Iñigo Salvador Azurmendi) 2019-07-29 10:13:04 +03:00
Andrey Yashkin e9d8bab20b Fix name grouping feature for cyrillic names
Summary:
All files and folders with cyrillic names are placed in latin 'A' group. This patch fixes this issue.

CCBUG: 406867

Test Plan:
Make grouping by name in the dir with cyrillic files or dirs in it.
See screenshots below.
Before {F6985465}
After {F6985459}

Reviewers: #dolphin, ngraham, cfeck, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: hein, cfeck, ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22303
2019-07-28 22:14:25 +02:00
Elvis Angelaccio b8849f74aa Revert "Fix name grouping feature for cyrillic names"
This reverts commit dc586ada63.

D22303 had a wrong diff.

CCBUG: 406867
2019-07-28 22:14:18 +02:00
Elvis Angelaccio 572d4e54bb Merge branch 'Applications/19.08' 2019-07-28 18:31:46 +02:00
Andrey Yashkin 8bed4c25ee Fix dir change when show hidden terminal panel with running program in it
Summary: Terminal panel doesn't change its working directory, while any procces is running in it. However, if you hide it and show again the program will get a string with a //cd path// command.

Test Plan:
1. Open dolphin
2. Press F4
3. Start any process like gnu nano
4. Press F4 two more times

Reviewers: #dolphin

Subscribers: anthonyfieroni, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22422
2019-07-28 18:29:38 +02:00
Andrey Yashkin dc586ada63 Fix name grouping feature for cyrillic names
Summary:
All files and folders with cyrillic names are placed in latin 'A' group. This patch fixes this issue.

BUG: 406867
FIXED-IN: 19.11.80

Test Plan:
Make grouping by name in the dir with cyrillic files or dirs in it.
See screenshots below.
Before {F6985465}
After {F6985459}

Reviewers: #dolphin, ngraham, cfeck, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: hein, cfeck, ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22303
2019-07-28 17:07:05 +02:00
Andrey Yashkin 9d4c75d2f7 Fix an issue with a new tab focus
Summary:
When opening a new tab in the background and switching to that tab the focus is set on the location bar instead of the files view. If you switch back to the original tab and then to the new tab again focus will be set on the files view. The problem is caused by creation of //DolphinTabPage// in an active state which leads to skipping by //return// in //DolphinView::setActive(bool active)// without setting the focus on the view. This patch fixes this defect.

BUG: 407604
FIXED-IN: 19.11.80

Test Plan:
1. Open a new tab in the background
2. Switch to the new tab
3. Check current focus widget by the up/down arrows on the keyboard with and without changes.

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: ngraham

Subscribers: anthonyfieroni, ngraham, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22386
2019-07-28 16:18:17 +02:00
Alexander Potashev e5c698f295 Merge branch 'Applications/19.08' 2019-07-21 17:53:36 +03:00
Alexander Potashev 2f5e83419b servicemenuinstaller: Fix placeholders in i18n string
Test Plan: it compiles

Reviewers: #dolphin, aacid

Reviewed By: aacid

Subscribers: aacid, ltoscano, kde-i18n-doc, kfm-devel, #localization

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22597
2019-07-21 17:52:52 +03:00
Jackson Reed McNeill aabfce1679 Fix rubber band not going away after right-click
Summary: Fix rubber band not going away after right-click in the folder view

Test Plan:
Hold left click
Drag to make rubber band
Right click

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham

Subscribers: elvisangelaccio, ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21590
2019-07-17 21:37:21 +02:00
Alexander Potashev 0e16dbc78b Merge branch 'Applications/19.08' 2019-07-16 15:06:34 +03:00
Alexander Potashev f523585f1b servicemenuinstaller: Run installation scripts with cwd in their parent directories
Summary:
Otherwise, if cwd is set to the unpacked dir root, some service menus
fail to install.

Test Plan:
 - Successfully Installed and uninstalled the "Color Folder" service menu from "Configure Dolphin..." -> service menus -> KNewStuff.
 - ./test_run.rb still passes all its tests.

Reviewers: elvisangelaccio, sitter

Reviewed By: sitter

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22466
2019-07-16 15:04:54 +03:00
Alexander Potashev a001c39229 servicemenuinstaller: Use QMimeDatabase instead of running xdg-mime
Test Plan: ./test_run.rb still passes all tests.

Reviewers: elvisangelaccio, sitter, ngraham

Reviewed By: elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22465
2019-07-15 23:51:47 +03:00
Albert Astals Cid 981e96efe6 GIT_SILENT Upgrade KDE Applications version to 19.11.70. 2019-07-15 21:39:44 +02:00
Albert Astals Cid c951c63e14 GIT_SILENT Upgrade KDE Applications version to 19.07.80. 2019-07-15 21:17:55 +02:00
Méven Car 200bc71130 Fix a regression preventing previews to be resized
Summary: e6c1b97d67 introduced a regression preventing previews to be properly resized.

Test Plan: Manual : resizing the information panel and the window

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22473
2019-07-15 18:40:24 +02:00
Pino Toscano c2312b1323 i18n: drop servicemenuinstaller messages from main po file
They are extracted in an own pot file, so no need to duplicate them in
dolphin.pot
2019-07-15 08:08:23 +02:00
Alexander Potashev 1aaafe178c Rewrite servicemenu helper utility in C++
Summary:
     - Also support MIME type "application/x-compressed-tar".
     - Update tests in Ruby, remove SimpleCov.

BUG: 399229

Test Plan: Ruby tests passed

Reviewers: sitter, elvisangelaccio, ngraham

Reviewed By: elvisangelaccio

Subscribers: cfeck, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D21878
2019-07-15 01:39:15 +03:00
Nicolas Fella 95270333dc Use more human-readable sort order descriptions
Summary:
Anecdotal evidence shows that ascending/descending regularly takes people longer to process than necessary. This patch implements more human-friendly sort order descriptions, in particular:

A-Z/Z-A for text
Newest first/oldest-first for time
Lowest first/highest first for rating
smallest first/largest first for sizes

If there is no string for a particular role defined it will fall back to Ascending/Descending.

I'm aware that not every language uses A-Z. In this case the translator can pick any string that represents the concept of text sorting

Test Plan: Sort view in various ways

Reviewers: #dolphin, #vdg, ngraham

Reviewed By: #dolphin, #vdg, ngraham

Subscribers: ngraham, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D22006
2019-07-04 18:35:24 +02:00
Yuri Chornoivan cd2078cef4 Add docs about the new 'Open new folders in tabs' option 2019-06-26 10:48:17 +03:00
Kai Uwe Broulik 5d83ceeb33 Fix crash without baloo 2019-06-25 15:26:59 +02:00