┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/settings/contextmenu
AgeCommit message (Collapse)Author
2026-01-22clang-tidy: misc-use-internal-linkageMéven Car
2026-01-22clang-format: readability-avoid-return-with-void-valueMéven Car
2026-01-22clang-tidy: avoid copy, use const referencesMéven Car
2026-01-22clang-tidy: use default for trivial constructorMéven Car
2026-01-09dolphinmainwindow: Reload context menu plugins when configuration changesPan Zhang
Reload the context menu plugins and share the KFileItemActions with the context menu so it stays up-to-date as the user changes the service menu settings. This uses a KConfigWatcher to trigger settings reload on "kservicemenurc" changes, covering both internal settings changes and external scripts. Remove the obsolete restart prompt in ContextMenuSettingsPage since changes are now applied instantly. BUG: 508722
2025-10-23contextmenusettings: Add a tooltip with plugin fileNameMéven Car
2025-09-22itemactions: Add context menu actions to hide and unhide files using .hiddenKostiantin Korchuhanov
Summary: This patch introduces context menu actions that allow users to hide or unhide selected files by editing the .hidden file in their parent directories. What this patch does: - Implemented HideFileItemAction plugin based on KAbstractFileItemActionPlugin - Plugin is disabled by default unless explicitly enabled in kservicemenurc via the hidefileitemaction key - "Hide" action adds selected file names to the .hidden file, avoiding duplicates - "Unhide" action removes selected file names from the .hidden file - Action visibility logic: - If only visible or only hidden files are selected, only the relevant action is shown - If both are selected, both "Hide" and "Unhide" actions are shown - Write permission checks ensure actions are disabled if the .hidden file cannot be modified - Optimized redundant path computations by calculating parent directory and .hidden file paths once and reusing them
2024-08-16ContextMenuSettingsPage: Stop forcing focus onto search fieldFelix Ernst
Prior to this commit when switching between categories in Dolphin's settings dialog by keyboard, the focus would suddenly switch away from the category chooser when going over the "Context Menu" category. This meant that one couldn't move to the Trash category in a straightforward way but had to fight the focus change forced by Dolphin. This commit removes that forced focus change so the category can now be changed by keyboard as expected.
2024-04-02Mark servicemenu items' KNS content as riskyNate Graham
By design, these items will run arbitrary shell scripts on the user's machine. That makes them security-sensitive and risky. Mark them accordingly so the user is informed of the risk. Depends on https://invent.kde.org/frameworks/knewstuff/-/merge_requests/309
2023-11-08Adapt to KConfigGroup name officially being a QString typeFriedrich W. H. Kossebau
GIT_SILENT
2023-11-08Master is qt6 only. Not necessary to use ${QT_MAJOR_VERSION} now.Laurent Montel
Remove qt5 specific cmake code too
2023-10-24Merge branch 'master' into kf6Nicolas Fella
2023-10-24Process correct model when applying service menu changesNicolas Fella
The listview's model is a filter model, we must iterate through the source, otherwise we get incorrect results BUG: 475547
2023-10-22Remove unused includeNicolas Fella
2023-10-21Port away from KDesktopFileActions::userDefinedServicesAlexander Lohnau
This is planned to go away since the only real user being kdesvn and that is ported to a C++ plugin
2023-09-10Merge remote-tracking branch 'origin/master' into kf6Méven Car
2023-09-10Replace qAsConst with std::as_constMéven Car
2023-09-09Add open in split view actionEric Armbruster
This action is shown only if a single folder is selected. The action opens the selected folder in the inactive split view (and opens the split view if necessary). FEATURE: 465500
2023-08-29Fix a bunch of clazy warningsMéven Car
2023-08-28Clean obsolete ifdefs since dolphin requires KF 5.101+Méven Car
2023-07-09Replace ServiceItemDelegate with standard Qt item delegateNicolas Fella
We don't need a custom delegate here Using the standard one from Qt also slightly improves margins
2023-07-09Fix usage of Qt::CheckStateRole in preview modelNicolas Fella
Qt::CheckStateRole expects an enum, not a bool Also set the flag that the item it user checkable, otherwise it can't be changed BUG: 471999
2023-07-08Fix plugin queryNicolas Fella
QT_MAJOR_VERSION is undefined, the proper thing is QT_VERSION_MAJOR This causes the plugin query to not find any plugins Since we only target KF6 we might as well hardcode that
2023-07-05Merge branch 'master' into kf6Nicolas Fella
2023-07-05Add explicit moc includes to sources for moc-covered headersFriedrich W. H. Kossebau
* speeds up incremental builds as changes to a header will not always need the full mocs_compilation.cpp for all the target's headers rebuild, while having a moc file sourced into a source file only adds minor extra costs, due to small own code and the used headers usually already covered by the source file, being for the same class/struct * seems to not slow down clean builds, due to empty mocs_compilation.cpp resulting in those quickly processed, while the minor extra cost of the sourced moc files does not outweigh that in summary. Measured times actually improved by some percent points. (ideally CMake would just skip empty mocs_compilation.cpp & its object file one day) * enables compiler to see all methods of a class in same compilation unit to do some sanity checks * potentially more inlining in general, due to more in the compilation unit * allows to keep using more forward declarations in the header, as with the moc code being sourced into the cpp file there definitions can be ensured and often are already for the needs of the normal class methods
2023-06-29Use ellipsis everywhere instead of three dotsTem PQD
Better for screen readers etc.
2023-05-12Remove deprecated, ifdef'd code for old KIO versionsJakob Petsovits
2023-05-08Merge branch 'master' into kf6Méven Car
2023-05-07Port to Qt6Méven Car
2023-04-02Context menu: allow to show copy to/move to inactive split viewMéven Car
Prevent copying/moving to same folder as origin when copying/moving to inactive split view BUG: 356436
2023-03-04Remove deprecated KServiceTypeTraderDāvis Mosāns
2023-03-04Rename KF5 to KF6Dāvis Mosāns
2023-02-14Revert "Remove deprecated KServiceTypeTrader"Méven Car
This reverts commit 648c2db6e4c6552962c20d2f9e4d3ce44e02d212.
2023-02-10Remove deprecated KServiceTypeTraderDāvis Mosāns
2023-02-05Add clang-format and format code as in FrameworksSerg Podtynnyi
2022-10-15Port away from deprecated KMessageBox Yes/NoFriedrich W. H. Kossebau
GIT_SILENT
2022-06-15Use cmakedefine01Ahmad Samir
This way we get a build time warning if the var isn't defined at all, e.g. a missing check_include_files() CMake call.
2022-06-15Use one config-dolphin.h.cmake configuration fileAhmad Samir
2022-06-11Fix install/load plugins from kf<version>Laurent Montel
2022-05-31We depend against kf5.91 => remove checkLaurent Montel
2022-05-31Fix building KF6 with PackageKit-QtAhmad Samir
2022-05-31KServiceTypeTrader has been deprecated since KService 5.90Ahmad Samir
2022-05-31Fix version macro with respect to finding "KFileItemAction/Plugin" servicesAhmad Samir
GIT_SILENT
2022-05-31Port away from deprecated KNewStuff APIAhmad Samir
2022-05-31Merge two relevant ifdef blocksAhmad Samir
GIT_SILENT
2022-05-21fix name of uninstall command (without extension)Christian Hartmann
fixing a minor typo allows using "uninstall" command (variant **without** extension) on de-installation of a service menu
2022-05-21fix: service-menu-installer ignoring symlinks on un-installChristian Hartmann
service-menu-installer ignores <package-name>.tar.gz-dir/uninstall.sh if this is actualy just a symbolic link to install.sh in the same directory (hardlinks and copies work) canonicalPath() is used to get the name of the file on disk and returns install.sh in the case of a symbolic link. install.sh without any arguments is called instead of uninstall.sh consequently and no de-installation takes place. replace canonicalPath() with absolutePath() as used in the rest of source file resolves: BUG: 452289
2022-05-20Fix QDirIterator wildcard when fallback install script is searched forAlexander Lohnau
Otherwise, we do not find scripts like "install-user.sh". BUG: 453870
2022-05-02Re-add "Open Terminal Here" featureoioi 555
This is equivalent to the "Open Terminal Here" feature that existed until Version 20.12. If the user has selected folders, replace "Open Terminal" in the context menu with "Open Terminal Here". When more than 5 folders are selected, a modal window will ask the user if they are sure they want to open all 6 or more terminal windows. In Detail View, users can also select a file, which will open a terminal at the location of that file. BUG: 452637 FIXED-IN: 22.08
2022-04-01Install servicemenus in new install locationAlexander Lohnau
Since KIO 5.85, this new file location is preferred over the KServiceTypeTrader results. With this change, single desktop files from the KDE store are installed in the correct location. If however a custom install script is used, developers need to adjust their scripts. Because the "kio/servicemenus" locations is different than the one KAuthorized allows by default, we have to mark the file as executable. Task: https://phabricator.kde.org/T14543