Bug 511372 - vi keybindings scrambled
Summary: vi keybindings scrambled
Status: CONFIRMED
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 6.19.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-30 11:48 UTC by Ph. Marek
Modified: 2025-10-30 17:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
scrambled data after saving (13.26 KB, image/png)
2025-10-30 11:48 UTC, Ph. Marek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ph. Marek 2025-10-30 11:48:54 UTC
Created attachment 186331 [details]
scrambled data  after saving

SUMMARY

Using 0.8.2-1 I cannot define vim keybindings.


STEPS TO REPRODUCE

(sorry about mistranslations)
1. goto to settings, script editor, 
2. set default input mode to "vi"
3. in "vi inputmode", insert a new "command" - eg. for normal mode "<f2>", "vap<ctrl-enter>", and acknowledge with "OK"
4. go back to dialog and see the replacement scrambled (see screenshot)

OBSERVED RESULT
scrambled charactes

EXPECTED RESULT
replacement as given just before
Comment 1 Thomas Friedrichsmeier 2025-10-30 17:09:16 UTC
Re-assigning, as the same problem occurs in kate (25.08.2; Frameworks 6.19.0; OpenSuse Tumbleweed) and kwrite (23.08.5; Frameworks 5.115.0; Ubuntu 24.04).

To reproduce in kate:
1) Go to Settings->Configure Kate->Editing->Vi Input Mode
2) Click "Add New Mapping", enter "<f2>", and "vap<ctrl+enter>" in the "Command", and "Replacement"-fields, respectively.
3) Click ok, close the settings dialog
4) Repeat step 1, and observe the scrambled entry in "Replacement"

Additional observations:
- Problem appears to be limited to the "Replacement"-column (not the "Command"-column)
- Appears to occur, only if the replacement contains special keys like e.g. "<enter>"