zkry / yaml-pro

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

Feature support: yaml-pro-ts-down-level #37

Closed uqix closed 6 months ago

uqix commented 7 months ago

Similar to yaml-pro-ts-up-level, add yaml-pro-ts-down-level so that we can jump to the first child of the current key; then with next/prev subtree, we can jump to anywhere which is so handy with repeat-map.

zkry commented 7 months ago

I like the idea. I'll work on getting this in 👍

uqix commented 6 months ago

Down on a key without children results in this error:

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  yaml-pro-ts-down-level()
  funcall-interactively(yaml-pro-ts-down-level)
  command-execute(yaml-pro-ts-down-level)
zkry commented 6 months ago

Thanks, should be good now in the latest master.