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
9282e0bd
Commit
9282e0bd
authored
Sep 05, 2022
by
Waqar Ahmed
Committed by
Christoph Cullmann
Sep 05, 2022
Browse files
Add show file history action to Documents plugin
parent
a4935fc3
Pipeline
#227704
passed with stage
in 34 minutes and 9 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
addons/filetree/katefiletree.cpp
View file @
9282e0bd
...
...
@@ -8,6 +8,7 @@
// BEGIN Includes
#include
"katefiletree.h"
#include
"filehistorywidget.h"
#include
"katefiletreedebug.h"
#include
"katefiletreemodel.h"
#include
"katefiletreeproxymodel.h"
...
...
@@ -374,6 +375,14 @@ void KateFileTree::contextMenuEvent(QContextMenuEvent *event)
menu
.
addAction
(
m_filelistDeleteDocument
);
menu
.
addAction
(
m_filelistReloadDocument
);
auto
a
=
menu
.
addAction
(
i18n
(
"Show File Git History"
));
connect
(
a
,
&
QAction
::
triggered
,
this
,
[
doc
]
{
auto
url
=
doc
->
url
();
if
(
url
.
isValid
()
&&
url
.
isLocalFile
())
{
FileHistory
::
showFileHistory
(
url
.
toLocalFile
());
}
});
menu
.
addSeparator
();
menu
.
addAction
(
m_filelistOpenContainingFolder
);
...
...
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