cosmic-edit icon indicating copy to clipboard operation
cosmic-edit copied to clipboard

[Feature Request] ViMode: Ctrl+D maps to PageDownByHalf

Open Shinyzenith opened this issue 1 year ago • 3 comments

Hi, I have written a patch set to support this. I also want to write one for control+U eventually.

The patch only needs some cleanup but before opening the PR I just wanted to ensure that this is in the scope of the project.

Shinyzenith avatar Mar 21 '24 11:03 Shinyzenith

Vi mode is handled by the modit crate: https://github.com/pop-os/modit, it would be best to submit changes there.

jackpot51 avatar Mar 21 '24 13:03 jackpot51

I initially tried to implement it at the modit level but couldn't figure out the flow of keybind handling correctly. Would you mind if I shared my patch here for some insight into how I can do it better? Should I move the issue to modit crate tracker?

Shinyzenith avatar Mar 21 '24 14:03 Shinyzenith

Hi, it seems all control based keybindings are done at the editor level and not in modit. Please correct me if I am wrong / kindly point me in the direction of how to call control based bindings from modit.

Shinyzenith avatar Apr 05 '24 09:04 Shinyzenith