moe icon indicating copy to clipboard operation
moe copied to clipboard

Feature request: Single space key for indentation

Open tobimensch opened this issue 4 years ago • 1 comments

I've not seen this feature in any other editor so far, so this could be something special for moe.

I wanted to implement it myself, but currently I can't come around to hack on moe.

The idea is to allow to use the space key for increasing indentation.

This should work in insert mode and only when everything before the cursor (on the same line) is whitespace.

Of course it should be configurable.

For example (there are 2 spaces before Foo, so one level of indentation):

  Foo
  1. (In insert mode) When the Cursor is at F or anywhere before F and the user presses space the result should be:
    Foo

Ends up with 4 spaces before Foo.

This feature should also always put the cursor at either the first non-whitespace character, or the end of the line.

tobimensch avatar Jul 04 '20 18:07 tobimensch

@tobimensch

That sounds good! I will implement in the v0.2.1.

fox0430 avatar Jul 05 '20 07:07 fox0430