Open rodrigomorales1 opened 11 months ago
Looks like this could be worked on in tandem with #30.
So imenu is set up to work properly so it can kind of give you a similar experience if your workflow is interactive. With something like the "orderless" package it works really nice. Though this isn't really useful for elisp programs which is what I'm guessing your use-case is.
In Org Mode, it is possible to jump to a given headline by speciying its outline. See minimal working example below.
Given the similarity between YAML and Org Mode documents, I believe that such function would come in handy when editing YAML files.
The function could be called
yaml-find-olp
and it would work the same way asorg-find-olp
. Consider the YAML document shown below, after executing(yaml-find-olp '("2" "2.1" "2.1.1") t)
, the point would be at<point>
.The function would also complain when there are two fields with the same outline path just as
org-find-olp
does (see minimal working example below).