zkry / yaml-pro

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

[Feature request] jump to first/last sibling #49

Closed uqix closed 6 months ago

zkry commented 6 months ago

I like this idea! I'll work on getting this in.

zkry commented 6 months ago

Should be good to go in the latest master! Let me know if you have any good ideas for default keybindings

uqix commented 6 months ago

I'm gonna add them to my repeat-map:


(defvar-keymap my/yaml-pro/tree-repeat-map
  :repeat t
  "n" #'yaml-pro-ts-next-subtree
  "p" #'yaml-pro-ts-prev-subtree
  "u" #'yaml-pro-ts-up-level
  "d" #'yaml-pro-ts-down-level
  "m" #'yaml-pro-ts-mark-subtree
  "k" #'yaml-pro-ts-kill-subtree
  "a" #'first-sibling ; was beginning-of-defun
  "e" #'last-sibling  ; was end-of-defun
  "SPC" #'my/yaml-pro/set-mark)
uqix commented 6 months ago

Works as expected, thank you.