[i3ass][i3fyra][i3viswiz] i3viswiz accepts any amount of arguments as long as the last one starts with u|l|d|r|up|left|down|right #194
Labels
No labels
Arch PKGBUILD
bug
build
commandline
duplicate
enhancement
font
good first issue
help wanted
implemented
is-it-really-a-bug?
necromancy
not-reproducable
question
reproducable
rofi
solved?
stalled
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
bud/i3ass#194
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Description
u|l|d|r|up|left|down|right.To Reproduce
Steps to reproduce the behavior:
as intended, direction only:
single extra argument before direction:
multiple extra arguments before direction:
multiple extra arguments, direction inbetween:
multiple extra arguments, last one starting with direction:
Directionality doesn't matter here, i3viswiz chooses whatever valid argument it finds first, so
i3viswiz blah barnei lrightwill focus to the left.Expected behavior
I was expecting an error message on multiple arguments and/or all arguments starting with
u|l|d|r|up|left|down|rightDesktop (please complete the following information):
This is more or less the same problem as with i3Kornhe (#195) . I don't remember why i went with this approach of just getting the first character of the last argument, if it was just a way to support subcommands like this, or if it was fast or if i was stupid.
i3viswiz (focusing) is however not as sensitive as i3Kornhe (moving), since it is unlikely that users hold down the directions keybindings for more than one or two step (where i3Kornhe it is quite likely ~100 steps will be triggered). So here i feel more comfortable adding similar checks as the PR #196 proposes.
Yeah, this was smoother than #196 , i will merge #197 . Below is new error messages: