cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

"chuck section" in markdown doesn't remove the trailing lines

Open saidelike opened this issue 1 year ago • 2 comments

with this markdown text originally:

# hello

this is a text

# title 2

this is another text

saying chuck section row one, we get:



# title 2

this is another text

notice the 2 spaces above title 2. NOTE: the same result happens when saying change section row one.

saying chuck section row one, I would expect it to delete the trailing lines, similarly to deleting a function on some language like Python

# title 2

this is another text

saidelike avatar May 31 '24 12:05 saidelike

Can't decide whether this one warrants its own issue. See https://github.com/cursorless-dev/cursorless/issues/855#issuecomment-1187590122

pokey avatar Jun 01 '24 10:06 pokey

I believe this is still broken if you chuck the last section

pokey avatar Jul 28 '24 20:07 pokey

I believe this is still broken if you chuck the last section

A couple of trailing empty lines in the document is fine. Any decent code formatter will take care of that

AndreasArvidsson avatar Jan 12 '25 09:01 AndreasArvidsson