tmerr / i3ipc-rs

A Rust library for controlling i3-wm through its IPC interface
MIT License
106 stars 33 forks source link

Added find_child as a method on the Node struct #64

Open kyruzic opened 3 years ago

kyruzic commented 3 years ago

Simple way to find a child node, either in nodes or floating_nodes based on a predicate.

This pretty much just mirrors what is done here https://github.com/i3/go-i3/blob/36e6ec85cc5a/tree.go#L92 in the go version of this library. This is a pretty useful thing to have when you are trying to find a specific node in the tree.