Skip to content

Releases: LunarWatcher/auto-pairs

v3.0.0-beta2

15 Jan 21:45
Compare
Choose a tag to compare

Added

  • Added g:AutoPairsVersion
  • Added g:AutoPairsBackwardsCompat
  • Backwards compat documentation
  • Added g:AutoPairsMultilineFastWrap; also means minor, optional changes to the fast wrap system
  • Added g:AutoPairsFlyModeList
  • Added g:AutoPairsJumpBlacklist (jiangmiao/313)

Fixed

  • Incompatibility with vim-visual-multi
  • Fixed weird fast wrap behavior when the closer is identical to the opener (jiangmiao/296)
  • Try to fix issue where brackets are imbalanced on the line, but that isn't indicative of bad balancing. Primarily an issue in multiline if-else blocks, or try-catch blocks in languages like C, C++, and Java. (fix has since been fixed)
  • Some function calls were not renamed (bad refactoring; #13)
  • Handle strgetchar() returning -1 (#14)
  • g:AutoPairsCRKey looking for expansions on <CR> when g:AutoPairsCRKey isn't <CR> (should look for keybinds to g:AutoPairsCRKey rather than just <CR>)
  • Update to flymode pairs that unescaped values unescaped ], which has to be escaped.
  • Make sure g/b:AutoPairsNoJump = 1 doesn't interfere with balancing logic.

Changed

  • autopairs#AutoPairsFastWrap argument movement changed from a required argument to a vararg to make it optional; defaults to e when not supplied

v3.0.0-beta1

03 Jan 22:15
Compare
Choose a tag to compare

Auto-pairs is now entering the beta phase; it's considered close to release ready, but still needs further testing and development before the proper v3.0.0 release.

Added

  • autopairs#AutoPairsScriptInit (dummy function for autoload; see the docs)
  • g:AutoPairsLanguagePairs (exposed previously private API)
  • g:AutoPairsAutoLineBreak
  • g:AutoPairsCarefulStringExpansion, g:AutoPairsQuotes

Fixed

  • Load autopairs functions properly (switch primary script to autoload)
  • Jump keybind and backticks (#299)
  • Moved variables from the wrong section of the help document to the right section. Whoops!
  • Make g:AutoPairsOpenBalanceBlacklist work (+ add docs)

Changed

  • Merged b:AutoPairs help into g:AutoPairs
  • Added notice of the existence of a buffer variable for (hopefully) all the variables that have a buffer variant.
  • Moved the movement logic in autopairs#AutoPairReturn() to a separate function to enable g:AutoPairsAutoLineBreak

v3.0.0-alpha4

02 Jan 14:22
Compare
Choose a tag to compare

3.0.0-alpha4

Added

  • g:AutoPairsSearchCloseAfterSpace
  • g:AutoPairsSingleQuoteMode
  • g:AutoPairsSingleQuoteExpandFor

Fixed

  • g:AutoPairsNoJump didn't work as intended; this has now been fixed. An if-statement in the wrong place prevented it from doing what it was meant to do; avoid jumping.
  • Typo in AutoPairsDelete causing backspace errors
  • Bad backslash use in character group (#10)

Changes

  • Corrected documentation of AutoPairsDefine to include the optional second argument.

v3.0.0-alpha3

01 Jan 21:31
Compare
Choose a tag to compare

Changes

  • AutoPairsFastWrap now has a parameter that decides the movement. The one mapped by default is e, but due to how Vim works, the argument has to be passed explicitly. (Vim 8.1 patch 1310 supports default arguments in functions, but anything before that as well as neovim would lose support). (#8)

Fixed

  • AutoPairsDefine called AutoPairsDefaultPairs without autopairs# (missed part of the breaking change from 3.0.0-alpha2)
  • Prevent issues when removing a key that doesn't exist in AutoPairsDefine (#9)
  • Fix comment regex for vimscript files (#7)

v3.0.0-alpha2

01 Jan 18:36
Compare
Choose a tag to compare

3.0.0-alpha2

Added

  • g:AutoPairsNoJump
  • g:AutoPairsDirectoryBlacklist
  • g:AutoPairsCompleteOnSpace
  • g:AutoPairsInitHook
  • Added function documentation
  • Added multibyte pair documentation
  • Document b:autopairs_enabled
  • Add more buffer variants of variables

Changes

  • [Breaking] Moved all autopair functions to have an autopairs# prefix

Fixes

  • Clarified the addition of pairs
  • Cleaned up the define cascades with a function (3 lines -> 1 line)

3.0.0-alpha1

30 Dec 21:26
Compare
Choose a tag to compare
3.0.0-alpha1 Pre-release
Pre-release

Early version of 3.0.0 - it's still more or less just upstream + Krasjet with a few changes, but I'm making this release on the off chance my (admittedly accidental) references to upstream has attracted users