Skip to content

Create new connectives to combine target lists #1636

@pokey

Description

@pokey

We currently have connectives that zip lists of targets and form ranges between them. We also have "and", which is just a union at the set level. There are other ways we could combine two lists of targets

  • Set subtraction where we remove any targets in A that touch targets in B. This is the semantics used by the "give" action
  • Subtraction where we remove the chunks from targets B that intersect A. Eg to remove a word section from the middle of a token selection
  • Union where we merge targets that are touching
  • Intersection where targets must be identical
  • Intersection where we keep any targets that touch each other
  • Intersection where we modify the selections

To generalise, we have different set operations (union, intersection, subtraction, etc), and we can apply them in different ways (at character level, target level with equality being strict, target level with equality being touching)

Could think about other granularities (eg word-level / arbitrary scope level)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions