Skip to content

Releases: LunarWatcher/auto-pairs

v3.0.0-beta12

21 Jun 15:52
Compare
Choose a tag to compare

3.0.0-beta12

let g:AutoPairsVersion = 30057

Fixed

  • Better escape handing (jiangmiao#325)
  • Typos in the help document
  • Update variable list in the help document
  • Add a help document covering plugin interop for specific plugins
  • Bug from beta11 breaking the autopairs toggle shortcut

Added

  • g:AutoPairsSearchEscape

Removed

  • g:AutoPairsShortcutMultilineClose

v3.0.0-beta11

13 Jun 22:48
Compare
Choose a tag to compare

3.0.0-beta11

let g:AutoPairsVersion = 30056

Fixed

  • Close pair balance checks weren't up to date with new balance systems
  • g:AutoPairsStringHandlingMode shouldn't prevent skipping characters
  • Add buffer variables for keybinds (#35)

Changed

  • Cleaned up the implementation of the beta9 hotpatch (AKA properly fix #30)
  • Moved variable (global + buffer) declaration to a separate file to reduce clutter in autoload/autopairs.vim
  • Tweaks to the close balance logic making it more jump-happy than previously
  • Reordered method calls to reduce unnecessary synstack calls for people who don't want it
  • Rolled back the change to multiline close (#32)
    • g:AutoPairsMultilineClose is back

Added

  • Tests to reduce the chances #30 occurs again
  • balancebyclose added to pair objects (#31) to aid balancing. Also helps towards #30
  • CI to auto-run tests on the three major operating systems (doesn't affect the plugin itself; only the dev process)
  • g:AutoPairsShortcutToggleMultilineClose
  • g:AutoPairsPreferClose

Removed

  • autopairs#AutoPairsScriptInit()

v3.0.0-beta10

22 Apr 21:30
Compare
Choose a tag to compare

3.0.0-beta10

let g:AutoPairsVersion = 30055

  • Some docs
  • Accidental debug logging

v3.0.0-beta9

21 Apr 12:44
Compare
Choose a tag to compare

3.0.0-beta9

let g:AutoPairsVersion = 30054

Fixed

  • Broken open == close balance check (#30)
  • Fix single-quote edge case for balance checks
  • Fix no ft edge-case for syntax checking

v3.0.0-beta8

21 Apr 08:43
Compare
Choose a tag to compare

NOTE: This release contains several experimental changes. If you start experiencing problems, please open an issue.

3.0.0-beta8

let g:AutoPairsVersion = 30053

Added

  • [Meta] Testing
  • autopairs#AutoPairsAddPair()
  • autopairs#AutoPairsAddPairs()
  • Lots of customization functionality through :h autopairs-pair-object. Highlights:
    • g:AutoPairs and autopairs#AutoPairsAddPair (+ autopairs#AutoPairsAddPairs by extension) support a language tag, meaning there's now a way to make all your pairs work by modifying a single variable. The language tag also takes a single language as well as a list of languages, meaning it's easy to apply a single pair to several languages.
    • The option to disable delete for individual pairs
    • The option to map a related or unrelated key to explicitly jump through the pair.
  • g:AutoPairsShortcutMultilineClose (#19, #21)
  • Added g:AutoPairsExperimentalAutocmd
  • Added g:AutoPairsStringHandlingMode
  • Added :AutoPairsToggle, :AutoPairsDisable, and :AutoPairsEnable (upstream #278, missed in the initial ticket crunch)
  • Added g:AutoPairsMoveExpression (fixes #25; an issue introduced by a fix to #317 that remapped from <M-key> to <C-key> (which doesn't work because input processing artifacts)).
  • Explicit support for vim-visual-multi (Completely fixes #12)
  • Added g:AutoPairsMultilineBackspace (#29)

Changed

  • Made autopairs#AutoPairsDefine accept a list as well. The list contains a different type of more powerful objects; see the documentation (autopairs-pair-object)
  • Made explicit jump keys map themselves if no mappings are defined. The explicit meaning of the map may change, but it's designed not to conflict with other keys (and as such, it's designed to maintain backwards-compatibility, without breaking stuff)
  • Internal: moved open pair balancing to a separate function
  • Prevent an explicit close key from preventing close when it's also desired to close by the normal key
  • Documentation cleanup of the troubleshooting section (copy editing, general updates, remove bad advice)
  • Made g:AutoPairsBackwardsCompat default to 0 instead of a conditional

Removed

  • An API that gave some minor customization access to pairs. The API has been replaced with a substantially more flexible API (see :h autopairs-pair-object for more details; potentially breaking)
  • g:AutoPairsWildClosedPair (has been unused for a long time)

Deprecated

  • autopairs#AutoPairsScriptInit
  • g:AutoPairsEnableMove (deprecated in favor of let g:AutoPairsMoveExpression = "")

Fixed

  • Multibyte fast wrap around vim pairs (%-able built-in (and manually specified) pairs)
  • Make multiline reverse pair deletion opt-in (g:AutoPairsMultilineBackspace)

v3.0.0-beta7

24 Feb 10:22
Compare
Choose a tag to compare

3.0.0-beta7

g:AutoPairsVersion = 30052

Fixed

  • Bug in backspace triggered by empty close not being ignored (#22)
  • Bug in backspace triggered by a bad comparison (causing bad <bs> when not deleting actual pairs, but i.e. half a pair)
  • Add g:AutoPairsReturnOnEmptyOnly

v3.0.0-beta6

16 Feb 18:39
Compare
Choose a tag to compare

3.0.0-beta6

Changed

  • All the keybinds (#18)
    • The new scheme uses largely compound keybinds: <C-p> as a prefix (ctrl-autopairs), followed by some semi-representative ctrl keybind. <C-p><C-s> for jump (ctrl skip), <C-p><C-b> for back insert, <C-p><C-t> for toggling auto-pairs. <C-f> is for fast wrap, but note that <C-p> is not used for this keybind at all.
    • let g:AutoPairsCompatibleMaps added (#20; defaults to 1 for the near foreseeable future)
  • Re-disable g:AutoPairsMultilineClose (#21; hotpatch)

v3.0.0-beta5

09 Feb 07:01
Compare
Choose a tag to compare

3.0.0-beta5

Fixed

  • Bad fast wrap when open == close and there isn't a space before open (#17)
  • Bad balance check caused by if index(...) rather than if index(...) != -1
  • Fixed broken foo[]|<BS>-check (early return, bugged since the start)
  • Make foo[]|<BS> run a multiline check in reverse

Changed

  • g:AutoPairsVersion no longer has a semantic meaning

v3.0.0-beta4

30 Jan 09:57
27ae9e2
Compare
Choose a tag to compare

3.0.0-beta4

Added

  • b:AutoPairsJumpRegex

Fixed

  • Balance checks where the open bracket is regex (#15) (count(whatever, open) => s:regexCount(whatever, open))
  • Manual jump now includes custom pairs

v3.0.0-beta3

28 Jan 22:51
Compare
Choose a tag to compare

3.0.0-beta3

Added

  • g:AutoPairsMultilineCloseDeleteSpace
  • g:AutoPairsMultibyteFastWrap -- fast wrap now supports multibyte pairs
  • g:AutoPairsFiletypeBlacklist

Fixed

  • Made the vim comment regex less awful
  • AutoPairsMultilineClose didn't work
  • g:AutoPairsCompleteOnlyOnSpace regex: \S is enough. Newlines appear to be stripped anyway, so EOL is fine
  • Revert g:AutoPairsMultilineClose to 0; not sure when it changed to 1
  • Corrected multiline pair regex ('^\V'.close -> '\v^\s*\zs\V'.close); not sure why it was changed in the first place, doesn't appear to be relevant for space-only autoinsert. (Objections are welcome on this one; open an issue if you disagree or if this breaks your use of the plugin)
  • Slightly saner check for escaped characters

Changed

  • Made g:AutoPairsOpenBalanceBlacklist empty by default. Can't remember the rationale behind adding them in the first place
  • [Meta] Removed old, outdated comments and add new confused ones

Auto-pairs is approaching the point where it feels stable enough to release 3.0.0 properly. Still gonna be a bit of dev before that though (and it'll continue after, whenever I have something to work towards)