Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
f6743520
Commit
f6743520
authored
Jul 16, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Jul 16, 2022
Browse files
Add show file git history action to actionCollection
parent
c15e2ac3
Pipeline
#206050
passed with stage
in 4 minutes and 30 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
addons/project/kateprojectview.cpp
View file @
f6743520
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment