Y
Hacker News
new
|
ask
|
show
|
jobs
by
samus
1098 days ago
Start and end of a selection would be nodes in the tree. The algorithm to find all the selected nodes is already part of the renderer, as the renderer has to implement traversal of nodes in text order as well.