Calling evil-delete-line
from a headline is deleting hidden children. Same behavior with evil-change-line
.
On a collapsed outline tree how can I delete from the cursor to the end of line while keeping children?
edit: based on the comments below, I've realized I could've phrased this better.
calling evil-delete-line
only deletes the entire headline if the cursor is placed on the first character of the headline. Otherwise the expected behavior is to delete from the cursor to the end of the line.
If I have the following tree structure, where ^
represents the cursor, what is the proper way to delete from the cursor to the end of line when the tree is collapsed?
* headline 1^i_want_this_text_deleted
** child1
** child2
** child3
If I call evil-delete-line
while the tree is expanded I correctly delete the text but leave the children. When the tree is collapsed, the function also deletes the children.
If I'm expecting the wrong behavior from this function is there an alternate function I should be calling to achieve the desired behavior?
evil-delete-line
is to delete from the cursor to the end of the line while keeping the headline and all text before the cursor in place.