Skip to content

Force overtype (rather than insert) key behaviour, block newline entry, delete and backspace #3363

Closed Answered by Gavin-Holt
pachpict asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

Start micro with the assumption that the insert key has been pressed so it starts overwriting?

Not sure how to do this.

  • Micro does not have a Sendkey() function exposed for Lua scripting.
  • I cannot find an insert/overtype setting.
  • Perhaps you could do this in the operating system before launching micro?

Remap behavior so enter is mapped to replicate down arrow behavior, delete to right arrow, backspace to left arrow.

Add the following to your bindings.json file:

    "Enter":           "CursorDown",
    "Delete":          "CursorRight",
    "Backspace":       "CursorLeft",

You may/may-not also have to make these assignments in a sub section for the command line:

"command": {
    "Enter"

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by pachpict
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tsilvs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants