Skip to content

cycle-tags next with --occupied doesn't respect the number of tags #6

@dawidpotocki

Description

@dawidpotocki

I have 10 regular tags and the 11th (1 << 10) tag which is for "scratchpad".

I do not want flow to go to the scratchpad tag, so I am telling flow to only use the 10 tags using the following command:

$ flow cycle-tags next 10 -o

Now, let's say I'm on tag 5 and have 1 and 4 also occupied, if I run this command, it will go to the tag 11, which doesn't make any sense to me. In this scenario it does it until I set it to next 4 at which point it just does nothing.

Interestingly enough, if I am on tag 1 and have 4 and 5 also occupied, the following command will properly go to 5:

$ flow cycle-tags previous 10 -o

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions