Summary: | Provide option to transpose words | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | daobrien |
Component: | kwrite | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | nate, waqar.17a |
Priority: | NOR | ||
Version: | 20.12.2 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/ktexteditor/commit/0aa491a9b1d08d6c803f06edfa7add6e5a3181bc | Version Fixed In: | 5.83 |
Description
daobrien
2021-05-05 11:48:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/ktexteditor/-/merge_requests/153 Git commit 0aa491a9b1d08d6c803f06edfa7add6e5a3181bc by Jan Paul Batrina. Committed on 20/05/2021 at 11:46. Pushed by cullmann into branch 'master'. Add "Transpose Words" feature Similar to "Transpose Characters", the word at the current cursor position is swapped with the next word (or the previous word if there is no next word in the line). Since KateView::word[Left|Right] is used, the next word would be the word to the right for LTR layouts and the word to the left for RTL layouts. The cursor's relative position inside the word is also preserved. For example, before transpose: wor|d1 word2 after transpose: word2 wor|d1 M +19 -0 src/document/katedocument.cpp M +1 -0 src/document/katedocument.h M +55 -0 src/view/kateview.cpp M +8 -0 src/view/kateview.h https://invent.kde.org/frameworks/ktexteditor/commit/0aa491a9b1d08d6c803f06edfa7add6e5a3181bc Thanks so much for getting this done so quickly. How can I get this into my version of Kate on F33? You can try the latest nightly and it will have this change hopefully: https://kate-editor.org/get-it |