A Note On X Where X = "Emac's Combobulate Package"
By Anak Wannaphaschaiyong
Lets inspect combobulate-navigate-previous
by step into the function.
The following functions are called in order:
combobulate-navigate-previous
combobulate--move-point-to-node
responsible for display and move node.(combobulate--navigate 'previous)
passpreviuos
tocombobulate--navigate
combobulate--nav-get-prev-sibling
get sibling node by query its parents node and get all of its nodes. sibling nodes are arrange in order, so getting previous or next siblings nodes is easy.combobulate--nav-get-sibling-nodes
outputs list of nodesseq filter
check for matched node.
Note that getting a node is done by using tree-sitter query. Tree-sitter API provides such query functions.
That’s it.
Peace.
~milfex-lostex.