cursorless
cursorless copied to clipboard
YAML maps inside of list items do not work well with clone or pour
I tried using a YAML map inside of a list item and was disappointed with the results I started with a list like this:
- foo: bar
If I say, pour item, the result is this:
I expected it to indent to the list item, but it did not.
If I say, clone item, the result is this:
Again, did not indent the item appropriately.
huh this is actually kind of a challenging one. The indentation needs to be enough spaces to get the next item to the same column. I don't think we have any current tooling to handle this kind of thing cc/ @AndreasArvidsson
update from meet-up:
- add a special query predicate operator that says "the insertion delimiter for this item should be a newline with number of spaces equal to column of this other position"