| Summary: | Calls to view.selectedText() in the View API from Snippets plugin fail | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | Graham Morrison <acquirement> |
| Component: | plugin-snippets | Assignee: | Joseph Wenninger <jowenn> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | athanare, mail, pascal+kde |
| Priority: | NOR | ||
| Version First Reported In: | 3.10.5 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 5.1 | |
| Sentry Crash Report: | |||
|
Description
Graham Morrison
2013-07-08 14:44:42 UTC
I can confirm this behaviour.
inserting e.g. %{date} works, but %{selection} does not work.
This behaviour is critical since one often wants to write snippets that "surround" an existing block of text.
Fixed in 5 with changes to the snippets engine. Use ${selection()} to get the selected text.
|