Skip to content

Instantly share code, notes, and snippets.

@jjedMoriAnktah
Created April 3, 2013 15:59
Show Gist options
  • Save jjedMoriAnktah/5302506 to your computer and use it in GitHub Desktop.
Save jjedMoriAnktah/5302506 to your computer and use it in GitHub Desktop.
Sort and keep only the unique lines selected in Sublime Text 2
// Key bindigs
{ "keys": ["ctrl+alt+u"], "command": "run_macro_file", "args": {"file": "Packages/User/keep_only_uniq_items.sublime-macro"} }
// The macro code
[
{
"args":
{
"case_sensitive": false
},
"command": "sort_lines"
},
{
"args":
{
"operation": "unique"
},
"command": "permute_lines"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment