Conversation
|
This looks really nice! I've created an account at their GitLab server to ask about it, waiting for the account to get approved |
|
I tested the commit that added AltLeft and AltRight, it didn't seem to work I think the hack is fine for now :D I have used it and it works as expected |
|
I'd much prefer if a proper line editor like rustyline was used. |
|
I tried out using rustyline, but could not find any way to render/get the current input value that we need to display the commit rules and if they pass/didnt pass. There's no way to get the current input value for validation and the rendering will be more complicated than this simple line editor. I also tested https://github.com/sayanarijit/tui-input with termion, but that has another issue that it only supports "fixed" layout, eg. it wants alternate screen mode and draw the prompt/UI with fixed coordinates |
This adds support for moving left/right in the message editor, also supports
alt+left|rightto move between words.termionadded support for AltLeft & AltRight but it was removed before it was released, don't know what happened there... https://gitlab.redox-os.org/redox-os/termion/-/commit/d96c13560c2600fdb5100ff67ae98d65bf12c56cI made a workaround by setting
is_control_inputand then handling the escaped character, maybe there's a better way 🤔