cursorless
cursorless copied to clipboard
In markdown "chuck item <target>" and "take item <target>" select different things
In markdown "chuck item
- This is the first level of a list.
- This is the second level of a list.
This may be related to #585
I couldn't reproduce this. I had the following markdown file:
- This is the first level of a list.
- This is the second level of a list.
I verified that "chuck item" and "take item" differed only in the fact that "chuck item" remove the leading - and "take item" excludes it, which is expected. I tested both the nested and top-level item. Any idea what's different for me here?
I confirm that the behavior is not present in the file specified as before. However it is present when we add another list item, e.g.:
- This is the first level of a list.
- This is the second level of a list.
- This is the first level of a list again.
I believe it is confusing for users that the presence of a following list item changes the behavior. Although one could argue that if one wants to delete the first level of a list then the second level should not remain by itself. I could also use "chuck line" if I only wanted to delete one line, so I guess it should be preferred that "chuck item" also deletes lower list levels? But I guess then the behavior should be consistent, i.e. "take item" should also select lower list levels.
Yes "chuck" and "take" should absolutely be consistent, and presence of subsequent list item should not alter behaviour of either. I'll see if I can reproduce