neorg
neorg copied to clipboard
Fix autocommands, allow undo indent
This PR allows undoing the indenting upon leaving insert mode.
For example:
* heading
type something with custom indent here
After typing the last line with cursor just after "here", press <Esc>, then it becomes
* heading
type something with custom indent here
Sometimes this is not wanted. Now the indenting can be reverted by u to
* heading
type something with custom indent here
I don't understand how https://github.com/nvim-neorg/neorg/commit/fd6d0bf99b64e761b0f028f2673bfdd41becfb92 got merged.
I don't understand how fd6d0bf got merged.
there are like two different commits pointing to that pr perhaps there were some rebasing mistakes
Yeeah it seems like a rebase messed something up. The PR looks good to me! If there's nothing else to do you can undraft it and I'm fine to merge.
I might have encountered a problem of code blocks but I can't reproduce nor remember it anymore, so yes, it's mergeable.
I re-encountered the problem:
@code rust
#[a="
"]
@end
The line "] has negative indentation relative to the code block.