ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Lines​Multisets

by heldev ST3

This Sublime Text plugin allows you to compare, merge and manipulate lists of things, whether they are todo items, lists of files or arrays from API responses.

Details

  • 1.0.0
  • github.​com
  • github.​com
  • 10 months ago
  • 47 minutes ago
  • 9 months ago

Installs

  • Total 67
  • Win 45
  • OS X 11
  • Linux 11
Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2
Windows 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 1 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
OS X 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0

Readme

Source
raw.​githubusercontent.​com

Sublime Lines - Multisets

Build Status Build status codecov

This Sublime Text plugin allows you to compare, merge and manipulate lists of things, whether they are todo items, lists of files or arrays from API responses:

How to use

Switch to a file with a list you want to modify and select an operation to perform from the Command Palette (or using Edit -> Lines - Multisets menu).

Operations

Add

The result is all items from both lists. Example:

List 1 List 2
one two
three three
four four
four

Result: one, two, three, three, four, four, four

Union#Unions)

The result is items from both lists, but only one item for every match. Example:

List 1 List 2 Match
one two
three three :heavy_check_mark:
four four :heavy_check_mark:
four

Result: one, two, three, four, four

Intersection#Intersections)

The result is only items that exist in both lists. Example:

List 1 List 2 Match Result
one two
three three :heavy_check_mark: three
four four :heavy_check_mark: four
four five
five five :heavy_check_mark: five
five five :heavy_check_mark: five

Difference)

The result is items from list 1 that don't have a match in list 2. Example:

List 1 List 2 Match Result
one two one
three three :heavy_check_mark:
four four :heavy_check_mark:
four five four
five five :heavy_check_mark:
five five :heavy_check_mark:

Symmetric difference

The result is items that exist in only one of the lists. Example:

List 1 List 2 Match
one two
three three :heavy_check_mark:
four four :heavy_check_mark:
four five
five five :heavy_check_mark:
five five :heavy_check_mark:

Result: one, two, four, five