neorg icon indicating copy to clipboard operation
neorg copied to clipboard

Fix autocommands, allow undo indent

Open champignoom opened this issue 1 year ago • 5 comments

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

champignoom avatar Jan 02 '24 17:01 champignoom

I don't understand how https://github.com/nvim-neorg/neorg/commit/fd6d0bf99b64e761b0f028f2673bfdd41becfb92 got merged.

champignoom avatar Jan 02 '24 18:01 champignoom

I don't understand how fd6d0bf got merged.

there are like two different commits pointing to that pr perhaps there were some rebasing mistakes

max397574 avatar Jan 02 '24 18:01 max397574

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.

vhyrro avatar Jan 06 '24 17:01 vhyrro

I might have encountered a problem of code blocks but I can't reproduce nor remember it anymore, so yes, it's mergeable.

champignoom avatar Jan 07 '24 12:01 champignoom

I re-encountered the problem:

     @code rust
     #[a="
"]
     @end

The line "] has negative indentation relative to the code block.

champignoom avatar Jan 17 '24 10:01 champignoom