-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(promo): promote/demote range + keybinds #1487
Conversation
Looks to be working fine for me. Tried indenting several nested lists with no problem, what issues did you run into re: the indentation? |
@mtrajano the issue stems from e.g. paragraphs. It seems that the indentation is cumulative: with the following snippet:
Doing a ranged promotion indents the paragraph twice as far:
This isn't the absolute end of the world, but would be nice to have fixed somehow 🤔 edit: wow, github rendering makes the indentation look really bad in the code block. it's less bad in a Norg buffer haha |
8f89476
to
0d62d30
Compare
Now this behaves itself a little better. There is still one behavior that might be unexpected. If you promote:
Normal text is correctly indented. But if you promote:
Then "normal text" is indented, while "list item" is promoted. However, this case:
"new paragraph" is not indented. I think this behavior is fine. It allows visual |
Changes make sense to make, there's just a random print statement there |
0d62d30
to
8792470
Compare
@benlubas the new behaviour is much better than what we had previously, so that sounds good enough for the time being. Running out of time today, but I'll revisit this PR tomorrow :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a single nitpick, other than that no other issues :)
Co-authored-by: vhyrro <[email protected]>
what it says on the tin. These were broken/removed a while ago. Presumably due to concealer changes but I'm not sure. Someone asked about bringing them back today, so here they are.
The re-indentation code in this module seems to struggle a little though. Not sure what's up with that.