Skip to content

Inconsistent indentations for list item contents in insert and normal mode #940

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
thuyen opened this issue Mar 20, 2025 · 2 comments · May be fixed by #950
Open

Inconsistent indentations for list item contents in insert and normal mode #940

thuyen opened this issue Mar 20, 2025 · 2 comments · May be fixed by #950
Labels
bug Something isn't working

Comments

@thuyen
Copy link
Contributor

thuyen commented Mar 20, 2025

Describe the bug

This is related to #472 but more on the consistency side. At the end of a listitem, if we hit Enter in insert mode, the cursor will be indented in the following line; if we hit o in normal mode, the cursor will not be indented in the following line. Should they behave the same?

Steps to reproduce

  1. Move cursor to the end of a list item
  2. Hit ESC then o in normal mode => cursor in the following line but not indented.

Expected behavior

Indentation should be the same for entering a new line from insert and normal mode.

Emacs functionality

Emacs doesn't have normal mode but Doom Emacs behave as expected with o in normal mode.

nvim-orgmode version

master: 0ebe2e3

OS / Distro

Ubuntu 24.04

Neovim version/commit

0.10.4

@thuyen thuyen added the bug Something isn't working label Mar 20, 2025
@thuyen thuyen changed the title Inconsistent Indentations for list item contents on insert vs normal mode Inconsistent indentations for list item contents in insert and normal mode Mar 20, 2025
@thuyen
Copy link
Contributor Author

thuyen commented Mar 22, 2025

I was able to make o in normal mode indents the same way as Enter in insert mode with this change thuyen@89534ad.

@kristijanhusak
Copy link
Member

Can you set up a PR with those changes? Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants