Skip to content

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.

License

Notifications You must be signed in to change notification settings

evandroforks/LinesMultisets

 
 

Repository files navigation

Sublime Lines - Multisets

Build Status Build status codecov Coverage Status Latest Release

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: Demo - comparing a giveaway list with two wishlists

Installation

By Package Control

  1. Download & Install Sublime Text 3 (https://www.sublimetext.com/3)
  2. Go to the menu Tools -> Install Package Control, then, wait few seconds until the installation finishes up
  3. Now, Go to the menu Preferences -> Package Control
  4. Type Add Channel on the opened quick panel and press Enter
  5. Then, input the following address and press Enter
    https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json
    
  6. Go to the menu Tools -> Command Palette... (Ctrl+Shift+P)
  7. Type Preferences: Package Control Settings – User on the opened quick panel and press Enter
  8. Then, find the following setting on your Package Control.sublime-settings file:
    "channels":
    [
        "https://packagecontrol.io/channel_v3.json",
        "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
    ],
  9. And, change it to the following, i.e., put the https://raw.githubusercontent... line as first:
    "channels":
    [
        "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
        "https://packagecontrol.io/channel_v3.json",
    ],
    • The https://raw.githubusercontent... line must to be added before the https://packagecontrol.io... one, otherwise, you will not install this forked version of the package, but the original available on the Package Control default channel https://packagecontrol.io...
  10. Now, go to the menu Preferences -> Package Control
  11. Type Install Package on the opened quick panel and press Enter
  12. Then, search for LinesMultisets and press Enter

See also:

  1. ITE - Integrated Toolset Environment
  2. Package control docs for details.

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

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

List 1 List 2 Match
one two
three three ✔️
four four ✔️
four

Result: one, two, three, four, four

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

List 1 List 2 Match Result
one two
three three ✔️ three
four four ✔️ four
four five
five five ✔️ five
five five ✔️ five

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 ✔️
four four ✔️
four five four
five five ✔️
five five ✔️

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

List 1 List 2 Match
one two
three three ✔️
four four ✔️
four five
five five ✔️
five five ✔️

Result: one, two, four, five

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%