interfaces: drop templates selection feature

could be implemented with %{cursor} as begining and %{selection} as end but
meh

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-05-23 03:53:17 +03:00
parent 7cbc12ee04
commit ae8fd38e1b
2 changed files with 1 additions and 2 deletions

View file

@ -39,7 +39,7 @@ using namespace KTextEditor;
bool TemplateInterface::insertTemplateText(const Cursor& insertPosition, const QString &templateString, const QMap<QString, QString> &initialValues)
{
// NOTE: THE IMPLEMENTATION WILL HANDLE cursor AND selection
// NOTE: THE IMPLEMENTATION WILL HANDLE %{cursor}
QDateTime datetime = QDateTime::currentDateTime();
QDate date = datetime.date();

View file

@ -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