> > Thanks, I think it could be very useful. I can add an option for the > user of treesit-traverse-depth-first to control the depth it goes. And > same for treesit-traverse-forward-depth-first. A relative depth of 0 > could mean only traverse siblings and parent, nil means traverse all > the way, a positive number n means traverse n steps down. > Nice, thanks! Also, discovered a typo, and shielded the defuns with a fallback value, see provided patch: Theo