Skip to content

Adding TODO headliner after current headline puts new TODO after blank newlines #227

Open
@kofm

Description

@kofm

Describe the bug

First of all, thanks for all the work you're putting in this project. I could not live without it anymore.

When i try to add a new TODO e.g. with <leader>oit, the new todo is added after the empty new lines that follow that TODO instead of right before its content. I think that blank lines are treated as actual content of the previous TODO, even if they're completely empty (no whitespace in)

Steps to reproduce

  1. Go to a TODO that is followed by one or two blank lines
  2. Press oit

Expected behavior

The new TODO should be right after TODO and its content, ignoring whitespace (which can be used as separator between headlines)

Emacs functionality

No response

Minimal init.lua

I'm using

org_blank_before_new_entry = {
    heading = false,
    plain_list_item = false,
  }

Screenshots and recordings

No response

OS / Distro

Arch Linux

Neovim version/commit

0.6.1

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions