[kate] [Bug 456846] Kate Snippets: not clear how to work with selected text

2022-07-28 Thread Buovjaga
https://bugs.kde.org/show_bug.cgi?id=456846 Buovjaga changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[kate] [Bug 456846] Kate Snippets: not clear how to work with selected text

2022-07-26 Thread Buovjaga
https://bugs.kde.org/show_bug.cgi?id=456846 --- Comment #5 from Buovjaga --- I created https://invent.kde.org/utilities/kate/-/merge_requests/821 -- You are receiving this mail because: You are watching all bug changes.

[kate] [Bug 456846] Kate Snippets: not clear how to work with selected text

2022-07-25 Thread Buovjaga
https://bugs.kde.org/show_bug.cgi?id=456846 Buovjaga changed: What|Removed |Added Ever confirmed|0 |1 Assignee|kwrite-bugs-n...@kde.org

[kate] [Bug 456846] Kate Snippets: not clear how to work with selected text

2022-07-25 Thread Thomas Friedrichsmeier
https://bugs.kde.org/show_bug.cgi?id=456846 --- Comment #3 from Thomas Friedrichsmeier --- But in fact, if you do not care about adding a default value, in case there is no selection, you can simply write (snippet tab): ${view.selectedText()} Would you like to create a merge request adding

[kate] [Bug 456846] Kate Snippets: not clear how to work with selected text

2022-07-24 Thread Thomas Friedrichsmeier
https://bugs.kde.org/show_bug.cgi?id=456846 --- Comment #2 from Thomas Friedrichsmeier --- In RKWard we use the following in the snippet tab (example): ${rangeCommand("**%%1**", "Bold")} where rangeCommand is defined as (in the scripts tab): function rangeCommand(command, def) { if

[kate] [Bug 456846] Kate Snippets: not clear how to work with selected text

2022-07-24 Thread Buovjaga
https://bugs.kde.org/show_bug.cgi?id=456846 Buovjaga changed: What|Removed |Added CC||thomas.friedrichsmeier@kdem |