Releases: sompylasar/atom-cursor-indent
v0.3.3
Updated to get rid of deprecated use of undo: 'skip', attempt 2 (#5)
- Updated to get rid of deprecated use of undo: 'skip'
- Use
editor.buffer.groupLastChanges()
instead ofeditor.groupLastChanges()
to avoid jumping cursor issue when moving across empty lines.
Fixes #3
Thanks @dowatugkins
v0.3.2
Revert changes from #4 because of a regression. See #3 (comment) (copied below).
0.3.0
Keeps indent while navigating empty lines. Undo is one-step.
0.3.1
Jumps back and forward while navigating empty lines. Undo is multi-step.
v0.3.1
Fix Atom deprecation warning when using TextBuffer.setTextInRange
with undo: 'skip'
.
- Issue: #3
- PR: #4 (thanks @dowatugkins)
v0.3.0
Refactor to fix native selection and focus issues.
See atom/atom#16267
The Atom text editing components (text-editor, selection, marker) call their event handlers synchronously. Within a handler of a cursor event the text buffer, the cursor, and the selection cannot be reliably updated (the editor loses focus somewhere during the updates). So the updates were refactored to happen asynchronously. As a result the cursor jump has become clearly visible, but this does not break the UX of this package.
v0.2.0
Refactor to fix several issues.
- Made sure whitespace changes are not recorded in undo. Refs
#1 - Made sure trailing whitespace is not removed in Markdown
(source.gfm
). Removing trailing whitespace in other scopes is
convenient, decided to keep, maybe will add a setting later. Refs
#2 - Made sure multiple cursors are handled properly. They weren't before.
- Made sure the last line of the file gets special treatment to not add
the indentation whitespace that cannot be removed. - Made sure the indentation whitespace is removed before saving the
file. - Provided activate/deactivate methods. The package behavior didn't
stop when the package got disabled via Settings.