cursorless icon indicating copy to clipboard operation
cursorless copied to clipboard

YAML maps inside of list items do not work well with clone or pour

Open jaresty opened this issue 1 year ago • 2 comments

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: image

I expected it to indent to the list item, but it did not.

If I say, clone item, the result is this: image

Again, did not indent the item appropriately.

jaresty avatar Jan 18 '24 03:01 jaresty

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

pokey avatar Jan 18 '24 15:01 pokey

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"

pokey avatar Jan 21 '24 19:01 pokey