I’m using the keybinding for exiting insert mode:
{ "keys": "j", "j"], "command": "exit_insert_mode",
"context":
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
}
This works great except that if you are in insert mode and you don’t edit anything on a saved file, the first ‘j’ that you type triggers the changed buffer bit and the tab is marked as having a changed file. Of course, the second ‘j’ triggers the exit insert mode function and the first ‘j’ is removed from the buffer and the net change is 0. Is there a way to revert the modified buffer bit back to unmodified in these situations? I have looked a bit in the docs but I see no obvious way to do it.
Cheers,
Antonio