The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

semantics of move command

asked 2013-09-25 20:11:12 +0000

yoav gravatar image

Can you elaborate on the semantics of the "move" commands? it is not entirely clear to me how the movement relate to the tree structure.

I figured out that move left/right will either replace the container with its sibling, or get absorbed into the sibling, depending on the split mode of the sibling (is that correct?)

But I am really confused as to what move up/down do, as far as the tree structure is concerned.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-09-25 20:17:29 +0000

Michael gravatar image

See http://www.youtube.com/watch?v=AWA8Pl... and toy around with it, and/or read the source.

edit flag offensive delete link more

Comments

Thanks. It seems like the move/focus commands are mostly about "doing the right thing" with respect to the screen layout, but is not very well defined intuitively (at least for my intuition) for tree manipulation... I'd like to play with more direct tree manipulation -- is it possible via ipc?

yoav gravatar imageyoav ( 2013-09-25 20:40:14 +0000 )edit

It’s not. The commands that are exposed via the IPC interface are exactly what is documented in the userguide, i.e. what is available for you to bind on your keys.

Michael gravatar imageMichael ( 2013-09-26 16:43:41 +0000 )edit

Will you consider adding an IPC command that will receive a new json tree and replace the existing one? (or is the internal representation more complex than what is exposed?)

yoav gravatar imageyoav ( 2013-09-26 16:56:37 +0000 )edit

Question Tools

Stats

Asked: 2013-09-25 20:11:12 +0000

Seen: 108 times

Last updated: Sep 25 '13