• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

transpose-selection

Transpose multiple selections
ifcanduela
264
4
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

transpose-selection

A tiny Atom package that allows transposing the text of multiple selections.

With two selections, it simply swaps the two, from:

Alpha Beta

to

Beta Alpha

With multiple text selections, use the Transpose Selection: Transpose command to move the text from one region to the next, and the text from the last to the first. For example, if you select all the values in the next object:

var test = {
  "one":   "alpha",
  "two":   "beta",
  "three": "gamma",
  "four":  "delta",
  "five":  "epsilon",
};

And use the command, you will get the command result:

var test = {
  "one":   "epsilon",
  "two":   "alpha",
  "three": "beta",
  "four":  "gamma",
  "five":  "delta",
};

The recommended keybinding is:

'atom-text-editor:not([mini])':
  'ctrl-alt-t': 'transpose-selection:transpose'

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by