Commit graph

6821 commits

Author SHA1 Message Date
Stefan Brüns
dcdf4b01c8 [BalooRolesProvider] Reduce number of XAttr reads
Typically most of the extended attributes are not set for a file. Instead
of trying to fetch each attribute individually check which attributes
exist first.
2021-01-11 12:28:38 +01:00
Stefan Brüns
fa60438376 [BalooRolesProvider] Remove explicit default constructor calls 2021-01-11 12:28:38 +01:00
Stefan Brüns
7d716fd9bd [BalooRolesProvider] Remove unused roleForProperty method 2021-01-11 12:28:38 +01:00
Stefan Brüns
09b6c99325 [BalooRolesProvider] Simplify single tag case
When the list contains just one value, return it instead of trying to
sort the list with a QCollator.
2021-01-11 12:28:33 +01:00
Stefan Brüns
34f74e4226 [BalooRolesProvider] Move static tagsFromValues to anonymous namespace 2021-01-11 12:27:11 +01:00
Stefan Brüns
4c31ec3789 [BalooRolesProvider] Remove unused includes 2021-01-11 12:27:11 +01:00
l10n daemon script
a344998ae9 GIT_SILENT made messages (after extraction) 2021-01-11 02:57:22 +01:00
Anthony Fieroni
a73e81bf6a Open new tab placement option
Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
2021-01-10 21:54:45 +00:00
Kai Uwe Broulik
eb4b0fb480 Emit "itemMiddleClicked" when Ctrl-clicking a view in single selection mode
When Ctrl can't cause a change in selection, so instead emit `itemMiddleClicked`.
This way one can Ctrl-click a Place or folder in Folders panel to open it in
a new tab, similar to what web browsers.
2021-01-10 10:50:41 +01:00
l10n daemon script
6dd67f6f63 GIT_SILENT made messages (after extraction) 2021-01-10 02:57:47 +01:00
Nate Graham
b1cadeba93 Show button to open knetattach inline with URL nav on Remote:// view
In conjunction with
https://invent.kde.org/frameworks/kio/-/merge_requests/260,
the net result is to hide the knetattach launcher in the view, and show
it inline with Dolphin's URL navigator toolbar when viewing the
remote:// view, just like how we add an "Empty Trash" button when
viewing trash://.

CCBUG: 430211
2021-01-09 18:32:52 +00:00
l10n daemon script
e9f5525696 GIT_SILENT made messages (after extraction) 2021-01-09 02:59:47 +01:00
l10n daemon script
d05d8efcf7 GIT_SILENT made messages (after extraction) 2021-01-08 03:00:30 +01:00
Felix Ernst
0cee94ce82 Fix location bar being wrongly aligned on first startup
When starting Dolphin the very first time, the spacing in front of the
location bar is wrong. This commit fixes this by completely updating
all cached geometry every time adjustSpacing() is called. Because this
happens once on a timer 100 ms after every url change, it will happen
once shortly after the window is shown. At that point all geometry is
where it should be and spacing calculation works as expected.

The ViewContainer geometry retrieval is refactored into a small nested
helper class in DolphinNavigatorsWidgetAction by the name
ViewGeometriesHelper.

Previously the logic of that class was divided between DolphinTabPage
and DolphinNavigatorsWidgetAction.

BUG: 429447
FIXED-IN: 21.04.0
2021-01-06 01:38:45 +00:00
Martin T. H. Sandsmark
a993a5979d fix crashing on launch 2021-01-05 17:08:17 +00:00
l10n daemon script
49e8b67b71 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"
2021-01-05 06:38:36 +01:00
l10n daemon script
8c4d4b9a12 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"
2021-01-04 06:42:11 +01:00
Elvis Angelaccio
f8d1b494db Revert "ContextMenu: Allow plugins submenus to react to Shift modifiers"
This reverts commit ce3c243525.

The apidox of setParentWidget says:

    Set the parent widget for any dialogs being shown.
    This should normally be your mainwindow, not a popup menu, so that it still exists even after the popup is closed
    (e.g. error message from KRun) and so that QAction::setStatusTip can find a statusbar, too.

CCBUG: 425997
2021-01-02 19:22:10 +01:00
Felix Ernst
f01a61b76c Animate split view mode toggling
Have the secondary ViewContainer slide into/out of view when split view mode is switched on or off by the user.

This should help users understand what split view mode is about. Without the animation it might seem like the only thing the button does is creating a weird vertical line in the middle of the view or something. With the animation it should be clear that the second view is a separate entity that was added. The closing animation will help users understand which of the ViewContainers was just closed.
2021-01-02 17:48:52 +00:00
Christoph Feck
35104c052f GIT_SILENT Update Appstream for new release 2021-01-02 14:42:54 +01:00
Christoph Feck
d3c5bb6e9b GIT_SILENT Update Appstream for new release
(cherry picked from commit 35104c052f)
2021-01-02 14:42:54 +01:00
Christoph Feck
26ae39c230 GIT_SILENT Upgrade release service version to 20.12.1. 2021-01-02 14:13:04 +01:00
l10n daemon script
65ad995a8e GIT_SILENT made messages (after extraction) 2021-01-02 09:05:17 +01:00
l10n daemon script
4fc0e0da33 GIT_SILENT made messages (after extraction) 2021-01-02 02:46:01 +01:00
l10n daemon script
030e7857c2 GIT_SILENT made messages (after extraction) 2021-01-01 02:49:09 +01:00
l10n daemon script
fc56fb60c1 GIT_SILENT made messages (after extraction) 2020-12-31 08:27:23 +01:00
Piotr Henryk Dabrowski
a19469d83d use 'compass' instead of 'bookmarks' icon in Show Places Panel button
'bookmark' icon is already used for Bookmarks Menu
2020-12-30 00:05:49 +01:00
Piotr Henryk Dabrowski
741072272f update KParts' ReadOnlyPart::localFilePath in DolphinPart::openUrl() 2020-12-29 16:06:40 +01:00
Yuri Chornoivan
b5885871d8 Following renaming the 'Services' page in the code + Nepomuk -> Baloo (screenshots should be updated later) 2020-12-29 10:09:23 +02:00
l10n daemon script
66ba66b5a0 GIT_SILENT made messages (after extraction) 2020-12-29 02:37:52 +01:00
Duong Do Minh Chau
48af912b83 Add const 2020-12-28 20:18:31 +00:00
Chau Duong
6df591368e Apply Elvis suggestions 2020-12-28 20:18:31 +00:00
Duong Do Minh Chau
238eb86db7 Share actions with main window to avoid duplicating icon name and text 2020-12-28 20:18:31 +00:00
Duong Do Minh Chau
9a0552d51d Remove context menu settings KCM 2020-12-28 20:18:31 +00:00
Duong Do Minh Chau
a512176b4b Add options to hide some context menu entries
This commit add options to hide the following context menu entries:
- Add to Places
- Copy Location
- Duplicate Here
- Open in New Tab and Open in New Tabs
- Open in New Window
- Sort By
- View Mode

The Services settings page is renamed to Context Menu

ShowCopyMoveMenu option is moved from GeneralSettings to ContextMenuSettings

BUG: 314594
2020-12-28 20:18:31 +00:00
Eike Hein
b339ac1b5f Use a faster way to determine kio-stash isn't installed
Summary:
Dolphin needs to figure out whether or not kio-stash is installed
to set the enabled state of a UI action.

When KProtocolInfo::isKnownProtocol can't find a protocol it gets
worried its protocol cache might be out of date, so it rebuilds it
(doing plenty of disk I/O) and looks again. kio-stash is currently
not yet installed on many systems, so this means most Dolphin
startups out there.

This patch switches to using QDBusConnectionInterface::isServiceRegistered
instead to determine whether the stash notifier daemon is running,
which should be faster than doing disk I/O.

Reviewers: davidedmundson, elvisangelaccio, shortstheory

Subscribers: emmanuelp, alexeymin, ngraham, #dolphin

Differential Revision: https://phabricator.kde.org/D9094
2020-12-28 17:59:14 +01:00
Nate Graham
b14f98de19 Make it more obvious that you can connect to servers on remote:/ page
Right now it is not super obvious how you connect to a remote server
in Dolphin when you already know the URL. Users will go to the
"Network" item in the Places panel, but from there it is not totally
clear. The "Add Network Folder" icon in the view opens a complicated
wizard and it's also a bit of an odd UX to have it living in the view as
opposed to being a toolbar button.

Old hands and developers know that the URL navigator is, well, a URL
navigator, and as such, it accepts arbitrary URLs from any view.
However this may not be obvious to other more casual users, for
two reasons:
1. The URL navigator is in breadcrumbs view nearly all of the time and
   by default, so may users may not know that it can accept text at all
2. Even when it's displaying URLs, they are almost always local paths,
   so users may not make the connection that it can accept remote URLs
   rather that just local paths

To improve the discoverability of this feature, this commit makes the
following change:

When the view is displaying the remote:/ ioslave (i.e. the "Networks"
place), the URL navigator is put into URL entry mode and given some
placeholder text that hints at what it can do. It reverts to breadcrumbs
mode when you leave.

BUG: 414670
FIXED-IN: 21.04
2020-12-27 17:38:55 +00:00
Méven Car
88d3f92dff Apply sugestions 2020-12-27 17:18:40 +00:00
Méven Car
f6a465c911 Review feedback 2020-12-27 17:18:40 +00:00
Méven Car
c1739d5c4d Version Control plugin: allow plugins to return repository root
Currently plugins `fileName()` only return path file extension.

This changes allows plugins to return the absolute file path to their repository root.

CCBUG: 430024
2020-12-27 17:18:40 +00:00
Nate Graham
c6cdf4126a Fix typo
GIT_SILENT
2020-12-27 08:25:04 -07:00
Yuri Chornoivan
c26b71f1c5 Add docs on the 'Date style' option 2020-12-24 10:05:46 +02:00
l10n daemon script
3c85f4ce3d GIT_SILENT made messages (after extraction) 2020-12-24 02:40:02 +01:00
Méven Car
f0d03c7dd7 Details View: display dates as relative Short dates
CCBUG: 340982
2020-12-24 00:11:21 +00:00
Nate Graham
9abe299c77 Merge branch 'release/20.12' 2020-12-23 11:40:09 -07:00
Eduard Manta
303740c68a Fix vertical scroll with horizontal component not being recognized properly
BUG: 430532

a scroll that includes an horizontal component != 0 might still be a vertical scroll
2020-12-23 17:17:19 +01:00
l10n daemon script
7f44b11a5e GIT_SILENT made messages (after extraction) 2020-12-23 02:43:39 +01:00
l10n daemon script
ac796744ff GIT_SILENT made messages (after extraction) 2020-12-22 02:41:00 +01:00
Derek Christ
87bb0ca10b Allow non-local startup location
Only local directories were supported to be set as the starting location
of Dolphin. This commit fixes this by using an KIO::StatJob to determine
if the path is actually pointing to a directory or a file regardless if
it is a local or a remote path.

Additionaly a hard-coded exception for urls with the scheme "timeline"
was removed because with the new fix it is now obsolete.

BUG: 428885
2020-12-21 21:28:50 +00:00
l10n daemon script
ecd5c7d678 GIT_SILENT made messages (after extraction) 2020-12-21 02:47:25 +01:00