Skip to content

Conversation

@mario-holubar
Copy link
Contributor

The issue this tries to solve:

- [ ] abc

Calling promote here previously only removed the dash, not the brackets.

Explanation:

parse_bullet matches and returns both the bullet (with text_after_bullet being [ ] abc) and the checkbox (with text_after_bullet being abc).
When promoting, change_line_bullet_level was considering the first item returned by parse_bullet and thus keeping the text after the bullet, including the [ ].
I changed it to use the last returned item so that only the text after the checkbox is kept.

@mario-holubar
Copy link
Contributor Author

I haven't verified that this doesn't break something else btw as I haven't been able to set up the test environment on my machine

@harshad1 harshad1 merged commit c52f957 into bullets-vim:master Dec 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants