NicolaiSoeborg / manipulator-plugin

A plugin for manipulating text (UPPER, lower, base64, etc) in the editor "Micro"
MIT License
39 stars 3 forks source link

With empty selection, put cursor inside new braces, quotes, etc #13

Open AndrewDDavis opened 1 year ago

AndrewDDavis commented 1 year ago

By default, micro automatically closes brackets etc when typed, and places the cursor inside the new brackets.

It would be nice if manipulator functions replicated this functionality for empty selections, or simply deferred to micro's default behaviour for a typed single quote, brace, etc. This way, we can remap keys to the manipulator functions without loss of functionality, e.g.:

{
    "'": "command:squote"
}