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-previouscombobulate--move-point-to-noderesponsible for display and move node.(combobulate--navigate 'previous)passpreviuostocombobulate--navigatecombobulate--nav-get-prev-siblingget 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-nodesoutputs list of nodesseq filtercheck 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.