bullets-vim/bullets.vim

[REQUEST] bullets_delete_last_bullet_if_empty only if no indentation

Opened this issue · 0 comments

Hey, I love this plugin, I use bulletpoints for basically everything, just got used to them so much. This is probably asking too much, but it would be great if this could be done, maybe there's a way but I just don't know how

Let's say I have this scenario, notice that the very last line is indented, so if I press enter here the bullets_delete_last_bullet_if_empty will delete the last bullet, and this is great, I use that all the time as seen below

BEFORE
- testing file
- testing again:
  - testing this
  - testing file
  - another
  - test
  -
  
AFTER
- testing file
- testing again:
  - testing this
  - testing file
  - another
  - test

But normally, what would happen in other editors, like obsidian, google docs or the vscode markdown plugin, is that when you are at an empty bullepoint, but you're indented, it will put you below on a bulletpoint 1 level less indented, for example

BEFORE
- testing file
- testing again:
  - testing this
  - testing file
  - another
  - test
  -
  
AFTER
- testing file
- testing again:
  - testing this
  - testing file
  - another
  - test
-

Small video for reference in case it helps!

remove-bullet-if-no-indent.mp4