-
Notifications
You must be signed in to change notification settings - Fork 15
Emacs mode #73
Comments
Hi! Thanks for taking interest in the project! However, should you want to edit the source, I can give you an overview on how to achieve it. Will close for now. But should you have questions on specifics, feel free to reopen. Thanks again |
@vamolessa Just wondering, can this be done via a plugin, or will I have to fork it? |
@vamolessa I've some interest in implementing this (although lack time). This is a good reference for what I want. https://www.nano-editor.org/dist/v7/nano.pdf#Editor%20Basics |
Maybe it's possible to implement the bulk of the input logic in a plugin and then add a small patch to normal mode to always imediately switch to that plugin mode. |
@vamolessa How can I start looking into this? |
here is a small example of how to use the here you can see what the plugin struct is (and also the PluginDefinition struct): there you can see that there is a function ptr for input keys you can provide: with this, you should be able to handle key inputs once you're in you plugin's mode. however, for all of this to work, there are some changes that will be needed:
this is the highlevel view |
will reopen this while you're trying to get this going :) |
Hello, thanks for taking the time to make this!
I was wondering if you could also implement an emacs/nano style mode (for people who don't want modal editing)
The text was updated successfully, but these errors were encountered: