Commit graph

7427 commits

Author SHA1 Message Date
Felix Ernst
44c82a16b3 Make space shortcut for selection mode view-local instead of global
Before this commit, the "Space" keyboard shortcut was bound to
triggering selection mode by default. After this commit, pressing
"Space" will only trigger selection mode when the file view area
has keyboard focus.

Pros:
+ Other buttons in the UI can be triggered with Space once again
  just like it is expected from an accessibility point of view.
+ "Type-ahead" searching works once more when typing the space
  char for file names containing such a space char.

Cons:
- "Space" can no longer be used to add the currently underlined
  item to the selection. Instead "Ctrl+Space" needs to be used.
  (However, this is the current status anyway unless a user has
  manually unbound "Space" as a shortcut from Selection Mode.)
- The Selection Mode action will no longer show "Space" as its
  shortcut in menus.

Overall, I see solutions to all of these problems, but they seem
over-engineered for the issues they are trying to solve, so I
believe this somewhat small commit is the best solution for now.

BUG: 458282
BUG: 458281
CCBUG: 463048
FIXED-IN: 23.04
2023-01-11 15:49:20 +01:00
Fabian Vogt
eab9205c31 Remove unnecessary method parameter
(cherry picked from commit ee919ea329)
2023-01-09 16:21:34 +01:00
Fabian Vogt
50b9913233 Fix size of directories if a subdir fails to open
If opening the directory fails, it returns -1 as size. Don't add that to the
parent's total size.

(cherry picked from commit a6490755ca)
2023-01-09 16:21:33 +01:00
Fabian Vogt
a81b287e7a Don't recurse into symlinks when counting directory contents
Symlink contents should not be visited for the purpose of displaying sizes.
Not only is potentially misleading because the storage is actually used
elsewhere (the target location), it can be completely wrong as contents can
be visited multiple times, even recursively.

BUG: 434125
(cherry picked from commit 491068a440)
2023-01-09 16:21:31 +01:00
Felix Ernst
eede574723 Fix potential nullptr de-reference
The `break` that is replaced by a `return` here would only break
out of the innermost while loop so the std::vector::end could still
become accessed after that. By returning here we completely exit
out of both nested loops and therefore don't access the
std::vector::end.
2023-01-08 15:07:16 +01:00
l10n daemon script
1ea868f2f8 GIT_SILENT Sync po/docbooks with svn 2023-01-08 02:28:16 +00:00
l10n daemon script
1c4baff760 GIT_SILENT Sync po/docbooks with svn 2023-01-07 03:13:13 +00:00
l10n daemon script
07e3d025b7 GIT_SILENT Sync po/docbooks with svn 2023-01-06 02:58:34 +00:00
l10n daemon script
89f6b1f646 GIT_SILENT Sync po/docbooks with svn 2023-01-05 02:33:27 +00:00
l10n daemon script
1e6efdcae1 GIT_SILENT Sync po/docbooks with svn 2023-01-04 03:13:12 +00:00
l10n daemon script
db9fee3ccf GIT_SILENT Sync po/docbooks with svn 2023-01-03 03:39:50 +00:00
Albert Astals Cid
2b11166bb2 GIT_SILENT Update Appstream for new release
(cherry picked from commit 28f49e6b91)
2023-01-03 00:14:37 +01:00
l10n daemon script
3822ba380f GIT_SILENT Sync po/docbooks with svn 2023-01-02 03:11:45 +00:00
l10n daemon script
d11d478148 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"
2023-01-02 02:34:18 +00:00
l10n daemon script
dccd8c4899 GIT_SILENT made messages (after extraction) 2023-01-02 01:08:31 +00:00
l10n daemon script
0c1157f316 GIT_SILENT Sync po/docbooks with svn 2023-01-01 03:15:01 +00:00
Nicolas Fella
6d21deb6e4 Properly use X11 startup ids
When one instance of Dolphin activates another it passes a startupId (X11) / activation token (wayland) along.

On X11 this is passed using the DESKTOP_STARTUP_ID environment variable. The code tries to read that through KStartupInfo::startupId().

That doesn't work though, since Qt at startup reads the environment variable afterwards. However, it is nice enough to allow us to access
it through QX11Info::nextStartupId(). Use that to read the token in the first instance and pass it to the second instance like we do on Wayland

The user-facing impact of this is minimal since KStartupInfo::setNewStartupId internally falls back to KWindowSystem::forceActiveWindow when no
startupId is passed.
2022-12-30 12:33:01 +00:00
l10n daemon script
414311b8c8 GIT_SILENT Sync po/docbooks with svn 2022-12-30 10:06:37 +00:00
l10n daemon script
b2c8d3c995 GIT_SILENT Sync po/docbooks with svn 2022-12-30 02:48:16 +00:00
l10n daemon script
36fda229fe 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"
2022-12-30 02:12:34 +00:00
l10n daemon script
88c504b381 GIT_SILENT Sync po/docbooks with svn 2022-12-28 02:26:54 +00:00
l10n daemon script
df11f2f168 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"
2022-12-28 02:03:50 +00:00
l10n daemon script
42fd1964bd GIT_SILENT made messages (after extraction) 2022-12-28 00:52:36 +00:00
Laurent Montel
2aa64b2c38 Not use forward and includes 2022-12-26 13:22:44 +01:00
l10n daemon script
02fd1c1ecb GIT_SILENT Sync po/docbooks with svn 2022-12-25 03:17:06 +00:00
l10n daemon script
ce492eb685 GIT_SILENT Sync po/docbooks with svn 2022-12-24 02:19:38 +00:00
l10n daemon script
73d025b896 GIT_SILENT Sync po/docbooks with svn 2022-12-23 02:15:30 +00:00
l10n daemon script
b508215d34 GIT_SILENT Sync po/docbooks with svn 2022-12-21 02:16:43 +00:00
Laurent Montel
7d3bf84e9d Remove duplicate headers between cpp/h files 2022-12-20 21:54:57 +01:00
l10n daemon script
2fd151774c GIT_SILENT Sync po/docbooks with svn 2022-12-17 12:38:52 +00:00
l10n daemon script
64710d0197 GIT_SILENT Sync po/docbooks with svn 2022-12-17 02:23:12 +00:00
l10n daemon script
42b57060dc GIT_SILENT Sync po/docbooks with svn 2022-12-16 02:30:54 +00:00
l10n daemon script
0e22101ac3 GIT_SILENT Sync po/docbooks with svn 2022-12-15 02:25:22 +00:00
l10n daemon script
bf019fe5f1 GIT_SILENT Sync po/docbooks with svn 2022-12-14 03:14:48 +00:00
l10n daemon script
3040bbf3c9 GIT_SILENT Sync po/docbooks with svn 2022-12-13 02:41:34 +00:00
ivan tkachenko
d55099ad47
Add zsh completions
Completes all non-generic-Qt options listed in --help output.

Note: it uses the new variable KDE_INSTALL_ZSHAUTOCOMPLETEDIR, which was
added in ECM 5.101.

Read more: https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/310
2022-12-12 21:19:42 +03:00
ivan tkachenko
a19f29f4e5
Ensure there's a dot at the end of each --help options description
It will help make --help output more uniform, which in turn will be used
in Tab-completions for zsh.
2022-12-12 21:19:41 +03:00
l10n daemon script
80522b1cd0 GIT_SILENT Sync po/docbooks with svn 2022-12-12 02:37:27 +00:00
l10n daemon script
8d631c1183 GIT_SILENT Sync po/docbooks with svn 2022-12-10 02:09:24 +00:00
l10n daemon script
5257231d34 GIT_SILENT Sync po/docbooks with svn 2022-12-05 02:13:20 +00:00
l10n daemon script
5472358e19 GIT_SILENT Sync po/docbooks with svn 2022-12-04 02:12:38 +00:00
l10n daemon script
0c46880957 GIT_SILENT Sync po/docbooks with svn 2022-12-03 02:18:54 +00:00
l10n daemon script
0ed5317668 GIT_SILENT Sync po/docbooks with svn 2022-12-02 03:25:30 +00:00
l10n daemon script
7fb57006fe GIT_SILENT Sync po/docbooks with svn 2022-12-01 02:11:57 +00:00
Kai Uwe Broulik
fcdb202577 DolphinView: Add placeholder label for AFC kio
Similar to how it's special-cased for MTP
2022-11-30 13:28:53 +00:00
l10n daemon script
628a2bbb64 GIT_SILENT Sync po/docbooks with svn 2022-11-30 02:12:58 +00:00
Heiko Becker
34167be708 GIT_SILENT Update Appstream for new release
(cherry picked from commit 37db7aeaa3)
2022-11-30 00:52:50 +01:00
Méven Car
a2c9c05de2 Exit the deleted directory when it is removed
If current directory is a local file, try to find nearest dir ancestor and
open it. Display warning to the user.
2022-11-29 18:16:59 +00:00
Kai Uwe Broulik
de289800b2 Places Panel: Delegate open file error to KIO
This functionality is now provided by `KFilePlacesModel` as long as
you tell it to do the teardown rather than calling into the device yourself.
2022-11-29 10:22:19 +00:00
l10n daemon script
f5bb760186 GIT_SILENT Sync po/docbooks with svn 2022-11-29 02:15:51 +00:00