fixes #16
'move tab' command #63
bcfcaf9df1
to bcd4d9f004
OK, so the difference between "move tab" and the existing "move container" / "move window" syntax is that a "tab" is a specific kind of container whose parent is an L_TABBED container. OK, seems fine.
I'd use "position" rather than "index" since the parameter is 1-indexed.
Some of the existing syntax supports "to", I guess to let it sound more natural? E.g. move workspace [to] output up|right|down|left.
So I guess maybe the syntax could be something like:
move tab left|right
move tab to position <number>
Maybe a little more future-proof in case the syntax gets extended in the future.
This constant at the top of the file should be updated with the new syntax:
static const char expected_syntax[] =
"Expected 'move <left|right|up|down> <[px] px>' or "
"'move [--no-auto-back-and-forth] <container|window> [to] workspace <name>' or "
"'move <container|window|workspace> [to] output <name|direction>' or "
"'move <container|window> [to] mark <mark>'";
And I guess the volare(5) manpage too.
OK, so the difference between "move tab" and the existing "move container" / "move window" syntax is that a "tab" is a specific kind of container whose parent is an
L_TABBEDcontainer. OK, seems fine.
Yes, and specifically going 'right' or 'left' past the last/first tab will 'wrap around' within the tabbed container instead of jumping to the next/previous container.
I'd use "position" rather than "index" since the parameter is 1-indexed.
Some of the existing syntax supports "to", I guess to let it sound more natural? E.g.
move workspace [to] output up|right|down|left.So I guess maybe the syntax could be something like:
move tab left|right move tab to position <number>
Hmm, makes sense - perhaps even move container [to] tab <position|direction>?
Hmm, makes sense - perhaps even
move container [to] tab <position|direction>?
I like move tab ... instead of move container ... because it doesn't operate on arbitrary containers.
bcd4d9f004
39f43ceefb
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?