https://github.com/leny/atom-indent-toggle-on-paste
Add a shortcut to toggle the auto-indent mecanism on paste
https://github.com/leny/atom-indent-toggle-on-paste
Last synced: 12 months ago
JSON representation
Add a shortcut to toggle the auto-indent mecanism on paste
- Host: GitHub
- URL: https://github.com/leny/atom-indent-toggle-on-paste
- Owner: leny
- License: mit
- Created: 2014-12-30T22:18:50.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-07T00:01:00.000Z (over 10 years ago)
- Last Synced: 2024-12-29T08:42:57.049Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# indent-toggle-on-paste package
> Add a shortcut to toggle the auto-indent mecanism on paste
* * *
Sometimes, when you paste text, the `Auto Indent On Paste` mecanism can bother you. Instead of passing by the settings panel to deactivate it for a moment, this package put a keyboard shortcut to a command which will toggle the mecanism, paste the content of your clipboard, then reset the setting value to its previous state.
**Note:** this package is kinda like in beta: it works in cases I need it, but I still doesn't understand some specific cases of auto-indenting from Atom's core.
* * *
## Keybindings
With the success of Atom, it's really difficult to choose keybindings that will not enter in conflict whit anyone else's packages, so I have removed the default keystrokes and let the keymap empty to let you set your own keybindings.
See [keymaps/indent-toggle-on-paste.cson](https://github.com/leny/atom-indent-toggle-on-paste/blob/master/keymaps/indent-toggle-on-paste.cson) for suggestions.