Bug 388138 - Programmer Dvorak numbers not usable for navigation
Summary: Programmer Dvorak numbers not usable for navigation
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: Vi Input Mode (show other bugs)
Version: 24.05.1
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 378178 435118 462435 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-22 09:09 UTC by Bart van Dijk
Modified: 2024-11-03 16:24 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bart van Dijk 2017-12-22 09:09:11 UTC
I am using Programmers Dvorak within Kate, which works fine except for the navigation.
Moving lines up and down works, but when I use Shift + { to get 5 and then press j, I only move down a single line instead of the intended 5.
I have tried other editors to verify that the layout works properly, and it works as intended in, for example, Komodo or Netbeans.

If I use Capslock, I can see the digit appearing next to "Vi: Normal Mode" at the bottom of the screen.
After that I can use regular bindings through undoing Capslock with shift again

To reproduce, simply enable Programmers Dvorak and then try to move or delete lines with Vi mode enabled, or any operation requiring digits in Normal Mode.

Actions tested, all in Normal Mode:
- Shift + {, then pressing j or k
- Shift + {, then dd
- Shift + {, then gg

Actions tested all in Normal Mode with Capslock enabled:
- 5, then Shift + j or k
- 5, then Shift + dd
- 5, then Shift + gg
Comment 1 Justin Zobel 2022-11-10 22:32:21 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bart van Dijk 2022-11-14 20:41:46 UTC
I can confirm this behavior is still as described.
Kate seems to not recognize the Shift + [a number] behavior while in normal mode.
Please ask if you need anything else from me!
Comment 3 Bart van Dijk 2022-11-14 20:43:00 UTC
Apologies, forgot to update the status.
This comment only serves to update to REPORTED.
Comment 4 Christoph Cullmann 2023-08-04 16:16:49 UTC
*** Bug 462435 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Cullmann 2023-08-05 16:14:08 UTC
*** Bug 378178 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Cullmann 2023-08-05 16:51:41 UTC
*** Bug 357062 has been marked as a duplicate of this bug. ***
Comment 7 Christoph Cullmann 2023-08-05 17:57:16 UTC
*** Bug 435118 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Cullmann 2023-08-05 22:29:28 UTC
*** This bug has been marked as a duplicate of bug 357062 ***
Comment 9 Bart van Dijk 2024-07-12 07:50:01 UTC
Apologies for reviving this bug. It has been marked as resolved via a different bug, but it seems this bug here has not been solved yet.
I did check all the duplicates and bug https://bugs.kde.org/show_bug.cgi?id=462435 is a correct duplicate but the rest is not.
I have no idea how the code of Kate works but I'll give fixing this one a shot myself.
Comment 10 Christoph Cullmann 2024-11-03 16:24:17 UTC
Git commit ebb99dac0c2df7937028e4abd9e57de85a799abf by Christoph Cullmann.
Committed on 03/11/2024 at 16:24.
Pushed by cullmann into branch 'master'.

allow shifted numbers for Dvorak and Co.

M  +2    -2    src/vimode/modes/normalvimode.cpp

https://invent.kde.org/frameworks/ktexteditor/-/commit/ebb99dac0c2df7937028e4abd9e57de85a799abf
Comment 11 Christoph Cullmann 2024-11-03 16:24:33 UTC
Could you try my patch.