SUMMARY In Kate there is an option to transpose characters. It would be great if this were extended to transpose words. STEPS TO REPRODUCE 1. N/A 2. 3. SOFTWARE/OS VERSIONS Using Gnome on F33 with various KDE bits installed. ADDITIONAL INFORMATION
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