Skip to content

tag --add TAG --at=POSITION — To insert tag(s) at a desired position #72

@porg

Description

@porg
  • I agree that preservation and control of tag order is extremely important
  • Specifically for the --add action I propose to offer an optional extra positional argument --at
    • The argument value is a prefix (+, ++, -, --) combined with a number, where +0 is the start and -0 the end position.
    • +0 Insert at start
    • +n Insert at n-th position from the start. If non-existent then at the start.
    • ++n Insert at n-th position from the start. If non-existent then at the end
    • -0 Insert at the end.
    • -n Insert at n-th position from the end. If non-existent then at the end.
    • --n Insert at n-th position from the end. If non-existent then at the start.
  • The tag(s) get inserted at the specified position.
    • And -- important! -- at the insertion point, they themselves also get inserted in the order as supplied.

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