Commit f6743520 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Add show file git history action to actionCollection

parent c15e2ac3
Pipeline #206050 passed with stage
in 4 minutes and 30 seconds
......@@ -87,6 +87,17 @@ KateProjectView::KateProjectView(KateProjectPluginView *pluginView, KateProject
m_project->reload(true);
});
pluginView->actionCollection()
->addAction(QStringLiteral("git_show_file_history"),
this,
[this] {
auto file = m_treeView->currentIndex().data(Qt::UserRole).toString();
if (!file.isEmpty()) {
showFileGitHistory(file);
}
})
->setText(i18n("Show File Git History"));
// file history
connect(m_treeView, &KateProjectViewTree::showFileHistory, this, &KateProjectView::showFileGitHistory);
}
......
Supports Markdown
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