zkry / yaml-pro

Edit YAML in Emacs like a pro
GNU General Public License v3.0
137 stars 9 forks source link

yaml-pro-ts-kill-subtree not works for list item #48

Closed uqix closed 6 months ago

uqix commented 6 months ago

To reproduce:

Given test.yaml:

apiVersion: tekton.dev/v1
kind: Task
metadata:
  name: buildah-v1
  labels:
    kustomize.toolkit.fluxcd.io/substitute: disabled
    app.kubernetes.io/version: "1.0.11"

spec:
  workspaces:
    - name: affinity-assistant-placeholder

  params:
    - name: context-path

    - name: dockerfile-content
      default: ""

Point on whichever list item (- char), call yaml-pro-ts-kill-subtree,

BTW, yaml-pro-ts-mark-subtree works for list items.

zkry commented 6 months ago

Thanks for this! I agree kill-subtree should work for list items.