i3ipc-rs icon indicating copy to clipboard operation
i3ipc-rs copied to clipboard

Add marks property to Node

Open sophacles opened this issue 5 years ago • 5 comments

When a node has marks set, they will be in a 'marks' key in the JSON node. The key is absent if no marks are set. This isn't documented in the i3-rpc manual, so it's not stable. At the same time i3 changes fairly slowly, so it could be worth adding.

sophacles avatar Apr 10 '19 04:04 sophacles

Hi, I'd prefer to honor https://i3wm.org/docs/ipc.html#_tree_reply

While the nodes might have more properties, please do not use any properties which are not documented here. They are not yet finalized and will probably change!

If the property's useful, it's probably best to request i3 devs stabilize it first

tmerr avatar Nov 16 '19 22:11 tmerr

Rebased against latest master

sophacles avatar Jan 10 '20 02:01 sophacles

I also noticed this was documented recently in i3-next: https://github.com/i3/i3/commit/7427d61f7f742b7de25d0b196ed5e6684f97af6f#diff-1429183bc39fbbc846a64ce95be90b0b

It's not on the published site yet, but presumably it will be soon.

sophacles avatar Jan 12 '20 19:01 sophacles

We can safely merge this as it has been confirmed stable by Airblader as well as the relevant PR being merged.

Thanks! We don't aim to provide all fields there (this is mentioned in the paragraph above, too), but marks are definitely stable and worth documenting, so thanks again!

6A61736F6E206E61646572 avatar Jan 24 '20 01:01 6A61736F6E206E61646572

@tmerr, with the stability confirmation given above, can this now be merged?

N-Parsons avatar Apr 09 '20 11:04 N-Parsons