I would like to define my own rules for what a section of a document is, then use this so I can popup a list of sections I can auto-complete or use arrow keys to jump between them.
Take a simple example where sections match against ^SECTION\s(.*)
, how would this be possible?
eg:
Some Text
SECTION Section One
Some More text
SECTION Section Two
Other text.
How could I make a menu that pops up all sections, and activating the item navigates the cursor to the selected section?
Note that I'm not sure if this question is spesific to ivy.
icicle-imenu-1
. See, e.g., the definition of commandicicle-imenu-face
, which navigates among face definitions using a regexp for suchdefface
occurrences. – Drew Feb 11 '18 at 00:22