nyxt icon indicating copy to clipboard operation
nyxt copied to clipboard

Expand keyschemes on Nyxt's built-in editor

Open pdelfino opened this issue 2 years ago • 6 comments

pdelfino avatar Oct 05 '21 19:10 pdelfino

Is this not done already? @Ambrevar @aartaka

aadcg avatar May 31 '23 12:05 aadcg

It's not built-in, but one can easily enable Emacs bindings in plaintext editor using input-edit-mode. And then, bindings are the responsibility of the editor extensions, our plaintext editor is just an example of how editor might look like.

aartaka avatar May 31 '23 13:05 aartaka

So what should we do with this issue @aartaka?

aadcg avatar May 31 '23 19:05 aadcg

I believe that setting emacs/vi bindings via common settings should also set them for the editor.

jmercouris avatar May 31 '23 19:05 jmercouris

The only editor related mode that defines keybindings for cursor movements is input-edit-mode, and it only does it for the emacs keyscheme.

But it seems that we don't actually enable that mode by default anywhere. The REPL and the prompt buffer binds cursor movements that input-edit-mode defines.

aadcg avatar Jun 01 '23 10:06 aadcg

I'm not sure exactly how it should happen, just that I think it would be what the user expects :-D

jmercouris avatar Jun 01 '23 18:06 jmercouris