Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joseramonc/multi-cursor
:tada:
https://github.com/joseramonc/multi-cursor
atom cursor package
Last synced: 3 months ago
JSON representation
:tada:
- Host: GitHub
- URL: https://github.com/joseramonc/multi-cursor
- Owner: joseramonc
- License: mit
- Created: 2015-02-20T19:26:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-12-04T18:59:08.000Z (about 5 years ago)
- Last Synced: 2024-10-23T13:34:09.081Z (3 months ago)
- Topics: atom, cursor, package
- Language: CoffeeScript
- Homepage:
- Size: 36.1 KB
- Stars: 44
- Watchers: 3
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Multi-cursor package
An atom package to easily create more cursors with keystrokes.
#### Expand last cursor up/down
![Multi-cursor demo](https://s3.amazonaws.com/f.cl.ly/items/2X393M1u1G0K0Z061O00/multi-cursor.gif)#### Expand all cursors up/down
![Multi-cursor expandAll](https://p16.f3.n0.cdn.getcloudapp.com/items/8Luw4jBr/expand-all-up.gif?v=9096d51e0cc344c4c5e93bbd983f75df)## OSX Keymaps:
* **Creating cursors**
* alt + up = Create cursor above
* alt + down = Create cursor under
* Cmd + shift + L = Create one cursor for each selected line [1](#footnote1)
* **Moving the last cursor that has been created**
* ctrl + alt + up = Move the last-created cursor up
* ctrl + alt + down = Move the last-created cursor down
* ctrl + alt + left = Move the last-created cursor left
* ctrl + alt + right = Move the last-created cursor right## Linux Keymaps:
* **Creating cursors**
* ctrl + shift + up = Create cursor above
* ctrl + shift + down = Create cursor under
* [Custom keymap can be defined for](https://github.com/atom/atom/issues/6427): Create one cursor for each selected line [1](#footnote1)
* **Moving the last cursor that has been created**
* ctrl + shift + alt + up = Move the last-created cursor up
* ctrl + shift + alt + down = Move the last-created cursor down
* ctrl + shift + alt + left = Move the last-created cursor left
* ctrl + shift + alt + right = Move the last-created cursor right## Windows Keymaps:
* **Creating cursors**
* alt + up = Create cursor above
* alt + down = Create cursor under
* [Custom keymap can be defined for](https://github.com/atom/atom/issues/6427): Create one cursor for each selected line [1](#footnote1)
* **Moving the last cursor that has been created**
* ctrl + shift + alt + up = Move the last-created cursor up
* ctrl + shift + alt + down = Move the last-created cursor down
* ctrl + shift + alt + left = Move the last-created cursor left
* ctrl + shift + alt + right = Move the last-created cursor right## Custom Keymaps:
The default keymaps may be overriden for your favorite keystroke in your `keymap.cson` with:
```
'atom-workspace atom-text-editor:not([mini])':
# Warning:
# You may have to unset the keybinding if it's already in use.# Expand all cursors
'ctrl-cmd-down': 'multi-cursor:expand-all-down'
'ctrl-cmd-up': 'multi-cursor:expand-all-up'# Expand last cursor
'ctrl-down': 'multi-cursor:expand-down'
'ctrl-up': 'multi-cursor:expand-up'# Move the last cursor
'ctrl-alt-down': 'multi-cursor:move-last-cursor-down'
'ctrl-alt-right': 'multi-cursor:move-last-cursor-right'
'ctrl-alt-left': 'multi-cursor:move-last-cursor-left'
'ctrl-alt-up': 'multi-cursor:move-last-cursor-up'# Create one cursor for each selected line.
# Note: Mac keybindings ship with Atom out-the-box, for windows and linux you may wish to add the following,
# compare https://github.com/atom/atom/issues/6427
'.platform-win32 atom-text-editor:not([mini])':
'ctrl-shift-l': 'editor:split-selections-into-lines'
'.platform-linux atom-text-editor:not([mini])':
'ctrl-shift-l': 'editor:split-selections-into-lines'
```Bugs, feature requests and comments are more than welcome in the [issues](https://github.com/joseramonc/multi-cursor/issues) :tada:
---
1: The command for creating one cursor for each selected line is provided by Atom out-of-the-box under the name "Editor: Split Selections into Lines".