Skip to content

Releases: sompylasar/atom-cursor-indent

v0.3.3

08 Aug 21:12
Compare
Choose a tag to compare

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 of editor.groupLastChanges() to avoid jumping cursor issue when moving across empty lines.

Fixes #3

Thanks @dowatugkins

atom-cursor-indent-v0.3.3-recording-by-dowatugkins

v0.3.2

08 Aug 17:18
Compare
Choose a tag to compare

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.

atom-cursor-indent@0.3.0

0.3.1

Jumps back and forward while navigating empty lines. Undo is multi-step.

atom-cursor-indent@0.3.1

v0.3.1

08 Aug 16:54
Compare
Choose a tag to compare

Fix Atom deprecation warning when using TextBuffer.setTextInRange with undo: 'skip'.

v0.3.0

29 Nov 10:57
Compare
Choose a tag to compare

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

24 Nov 13:55
Compare
Choose a tag to compare

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.