zkry / yaml-pro

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

Feature request: show path of current line/symbol #19

Closed uqix closed 1 year ago

zkry commented 1 year ago

Hello! These is a feauter implemented for the tree-sitter version of yaml-pro that may be what you're looking for (assuming you're using Emacs 29). By enabling yaml-pro-ts-mode as well aseldoc-mode` you should be able to see the current path for the symbol.

As for getting this to work for the legacy parser, I could implement such a feature, but it would be very slow as I don't think the YAML processor can parse a long document fast enough to update everytime the point moves.

uqix commented 1 year ago

Thanks for this awesome pkg, will try Emacs 29 and yaml-pro-ts-mode soon.