From ae8fd38e1b8ce7e8677d69b8feda36ccf8d73714 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 23 May 2023 03:53:17 +0300 Subject: [PATCH] interfaces: drop templates selection feature could be implemented with %{cursor} as begining and %{selection} as end but meh Signed-off-by: Ivailo Monev --- interfaces/ktexteditor/templateinterface.cpp | 2 +- interfaces/ktexteditor/templateinterface.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/interfaces/ktexteditor/templateinterface.cpp b/interfaces/ktexteditor/templateinterface.cpp index 989a46d2..c5ea40dd 100644 --- a/interfaces/ktexteditor/templateinterface.cpp +++ b/interfaces/ktexteditor/templateinterface.cpp @@ -39,7 +39,7 @@ using namespace KTextEditor; bool TemplateInterface::insertTemplateText(const Cursor& insertPosition, const QString &templateString, const QMap &initialValues) { - // NOTE: THE IMPLEMENTATION WILL HANDLE cursor AND selection + // NOTE: THE IMPLEMENTATION WILL HANDLE %{cursor} QDateTime datetime = QDateTime::currentDateTime(); QDate date = datetime.date(); diff --git a/interfaces/ktexteditor/templateinterface.h b/interfaces/ktexteditor/templateinterface.h index 891754a4..7061dbf4 100644 --- a/interfaces/ktexteditor/templateinterface.h +++ b/interfaces/ktexteditor/templateinterface.h @@ -71,7 +71,6 @@ class KTEXTEDITOR_EXPORT TemplateInterface //should be named AbstractTemplateInt * - month: current month * - day: current day * - hostname: hostname of the computer - * - selection: The implementation should set this to the selected text, if any * - cursor: The implementation should set the cursor position there, if any. * * If the editor supports some kind of smart indentation, the inserted code