Commit db806a4f authored by Tomaz  Canabrava's avatar Tomaz Canabrava

New menu entry: Copy Full file Path

This adds a 'Copy Full File Path' action in the context
menu of files that are hovered. This really simplifies
copying / pasting files from konsole to other applications
parent 3f087242
......@@ -588,7 +588,11 @@ FileFilter::HotSpot::~HotSpot() = default;
QList<QAction *> FileFilter::HotSpot::actions()
{
return {};
QAction *action = new QAction(i18n("Copy full path"), this);
connect(action, &QAction::triggered, this, [this] {
QGuiApplication::clipboard()->setText(_filePath);
});
return {action};
}
void FileFilter::HotSpot::setupMenu(QMenu *menu)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment