https://github.com/oblosys/atom-list-edit
Atom package for list-aware cut, copy & paste operations that automatically handle separators and whitespace.
https://github.com/oblosys/atom-list-edit
Last synced: 2 months ago
JSON representation
Atom package for list-aware cut, copy & paste operations that automatically handle separators and whitespace.
- Host: GitHub
- URL: https://github.com/oblosys/atom-list-edit
- Owner: Oblosys
- License: mit
- Created: 2015-09-10T12:18:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-03T19:23:56.000Z (over 9 years ago)
- Last Synced: 2025-01-17T07:08:58.236Z (4 months ago)
- Language: CoffeeScript
- Homepage: http://list-edit.oblomov.com
- Size: 212 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# list-edit package [](https://travis-ci.org/Oblosys/atom-list-edit)
List-edit provides list-aware cut, copy, and paste operations that automatically handle separators and whitespace, while taking into account strings and comments. For example, to cut the first element from `[Three, One, Two]` and paste it at the end:

On `list-cut` the list element that contains the cursor is removed, together with its trailing separator and whitespace. After moving the cursor past the last element, `list-paste` inserts the cut element and puts a separator and whitespace in front of it. List-edit also works in a vertical layout and on multiple elements:

And even between different lists (with yet another layout):

List-edit uses the grammar of the edited file to ignore strings and comments, but list detection takes place purely on a lexical level. Currently, `{}`, `[]`, and `()` are brackets, and `,` and `;` are separators.
For more information, including a small emulator, in which you can try out the package, visit [list-edit.oblomov.com](http://list-edit.oblomov.com).
### Key bindings
These are Mac key bindings, for Windows and Linux use `ctrl-alt` instead of `alt-cmd`.
Keys | Command |
----------- | ------------- | -------
`alt-cmd-s` | `list-select` | Select element at cursor, or range of elements in selection
`alt-cmd-x` | `list-cut` | Cut elements (and separator+whitespace) at cursor/selection
`alt-cmd-c` | `list-copy` | Copy elements at cursor/selection to the clipboard
`alt-cmd-v` | `list-paste` | Paste elements (and separator+whitespace) at cursor/selection