g:AutoPairsVersion = 40004
- Abbreviations with pairs (#93)
g:AutoPairsVersion = 40003
- Support for arbitrary underlying deletion keybinds when deleting pairs (#90)
- This does not affect the default deletion keybinds, which still default to
<BS>
. This is only relevant if you want to delete pairs with other forms of deletion.
- This does not affect the default deletion keybinds, which still default to
- Made
g:AutoPairsExperimentalAutocmd
actually reflect the new default-enabled state
- Added compat note on nvim directly to
AutoPairsCompatibility
- Minor tweaks to the migration docs
g:AutoPairsVersion = 40002
- Made sure the AutoPairsJump keybind in insert mode ends up after the cursor (upstream/#367 (comment))
- Setting
mapclose = 0
now makesalwaysmapdefaultclose
default to 0 instead of 1 - The LaTeX pairs no longer jump by default
g:AutoPairsSpaceCompletionRegex
(#75 followups)g:AutoPairsDefaultDisableKeybinds
(upstream/#367 (comment)) for default-blanking the various keybind variables
- Described the exact reason for #66 in
:h autopairs-autocomplete-cr
- Documented variable initialisation and function call order issues (#84)
g:AutoPairsVersion = 40001
- Missing escape (#74)
g:AutoPairsVersion = 40000
g:AutoPairsCompatibleMaps
is now 0 by default.- Added enforcement of scriptversion 4 to all files
- Added docs for
<CR>
incompatibilities - Documentation with some basic how-to guides for auto-pairs features. These can technically be figured out by just reading the documentation, but it's easier to compress it into concrete guides.
- Documentation for Krasjet's space-only completion exceptions, and first-class support for it.
- Documentation and first-class support for Krasjet's balance blacklist
- Minimum Vim version is now correctly listed as 8.1 patch 1114; I severely misread the minimum required version before.
- Missing
...
specifier prevented argument forwarding for IgnoreInsertEnter - Missing period for string concatenation seems to have broken the move feature
- Switched to a variable for universal event ignoring, without overwriting the variable unrecoverably (
exists('##InsertLeavePre')
<3) - [parallel-fixed in an unversioned 3.0.x-version] Fixed bad regex management for multibyte pairs (#71)
- Tests for both the character whitelist for only completing on space, and the balance check blacklist.
- Added
g:AutoPairsAutoBreakBefore
andg:AutoPairsSyncAutoBreakOptions
(#57) InsertLeavePre
is now ignored- Regex pairs are now disabled and made opt-in only (#53)
g:AutoPairsPrefix
, used for switching the default prefix in incompatible map mode.- The LaTeX pairs
\[\]
and\(\)
are supported out of the box for thetex
filetype - Breaking: regex is now disabled by default, and requires a manual parameter. See
:h autopairs-pair-object
. - The auto-pairs compatible maps prefix can now be adjusted with
g:AutoPairsPrefix
(#48, #70)
- Removed pre-commit
- Added a test to catch duplicate helptags
g:AutoPairsVersion = 30063
- Renamed
autopairs#Variables#_InitVariables
toautopairs#Variables#InitVariables
, as the API is now more intended for public use g:AutoPairsFiletypeBlacklist
now contains"registers"
by default, and fully prevents loading in the buffer
- Documented
autopairs#Variables#InitVariables()
g:AutoPairsVersion = 30062
- Enabled experimental autocmd by default; preparing for the eventual deprecation of it
g:AutoPairsVersion = 30061
- Cleaned up the help documents to, hopefully, be easier to navigate.
g:AutoPairsBackwardsCompat
, as it doesn't appear to have any uses at this time.
g:AutoPairsBSIn
g:AutoPairsBSAfter
- Troubleshooting docs for Rust
- Duplicate tags in help docs (#59)
g:AutoPairsVersion = 30060
- Annoying escape problem (#52)
- Open == close-pairs struggled to verify balance. (#40 (discussion) and its associated issue (#41))
- Bug preventing
open: 'not empty', close: ''
from clearing output inserted by other pairs - Typo in offset potentially breaking balancing (not sure if this was a problem before 3.0.1 or if the changes made here made it painfully obvious, but it's fixed now nonetheless)
- Add a lookahead to the regex group for single quotes in vim files. Just using
\ze
doesn't actually prevent it from matching the rest of the quote, causing weird quote insertion behavior with the changes made as a part of 3.0.1.
No changes; Purely a symbolic packaging for 3.0.0-beta13.
g:AutoPairsVersion = 30058
- Code cleanup
- Vimscript standard update #1
- Skip single completion (jiangmiao#335)
- More tests (including tests to cover single skip)
g:AutoPairsVersion = 30057
- 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
g:AutoPairsSearchEscape
g:AutoPairsShortcutMultilineClose
g:AutoPairsVersion = 30056
- 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)
- 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
- 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
autopairs#AutoPairsScriptInit()
g:AutoPairsShortcutMultilineClose
g:AutoPairsVersion = 30055
- Some docs
- Accidental debug logging
g:AutoPairsVersion = 30054
- Broken open == close balance check (#30)
- Fix single-quote edge case for balance checks
- Fix no ft edge-case for syntax checking
g:AutoPairsVersion = 30053
- [Meta] Testing
autopairs#AutoPairsAddPair()
autopairs#AutoPairsAddPairs()
- Lots of customization functionality through
:h autopairs-pair-object
. Highlights:g:AutoPairs
andautopairs#AutoPairsAddPair
(+autopairs#AutoPairsAddPairs
by extension) support alanguage
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)
- 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
- 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)
autopairs#AutoPairsScriptInit
g:AutoPairsEnableMove
(deprecated in favor oflet g:AutoPairsMoveExpression = ""
)
- Multibyte fast wrap around vim pairs (
%
-able built-in (and manually specified) pairs) - Make multiline reverse pair deletion opt-in (
g:AutoPairsMultilineBackspace
)
g:AutoPairsVersion = 30052
- 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
g:AutoPairsVersion = 30051
- 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)
- The new scheme uses largely compound keybinds:
- Re-disable
g:AutoPairsMultilineClose
g:AutoPairsVersion = 30050
- Bad fast wrap when open == close and there isn't a space before open (#17)
- Bad balance check caused by
if index(...)
rather thanif index(...) != -1
- Fixed broken
foo[]|<BS>
-check (early return, bugged since the start) - Make
foo[]|<BS>
run a multiline check in reverse
g:AutoPairsVersion
no longer has a semantic meaning
b:AutoPairsJumpRegex
- Balance checks where the open bracket is regex (#15) (
count(whatever, open) => s:regexCount(whatever, open)
) - Manual jump now includes custom pairs (#16)
g:AutoPairsMultilineCloseDeleteSpace
g:AutoPairsMultibyteFastWrap
-- fast wrap now supports multibyte pairsg:AutoPairsFiletypeBlacklist
- Made the vim comment regex less awful
AutoPairsMultilineClose
didn't workg: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
- 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
- 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)
- 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>
wheng:AutoPairsCRKey
isn't<CR>
(should look for keybinds tog: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.
autopairs#AutoPairsFastWrap
argument movement changed from a required argument to a vararg to make it optional; defaults toe
when not supplied
autopairs#AutoPairsScriptInit
(dummy function for autoload; see the docs)g:AutoPairsLanguagePairs
(exposed previously private API)g:AutoPairsAutoLineBreak
g:AutoPairsCarefulStringExpansion
,g:AutoPairsQuotes
- Load autopairs functions properly (switch primary script to autoload)
- Jump keybind and backticks (jiangmiao/299)
- Moved variables from the wrong section of the help document to the right section. Whoops!
- Make
g:AutoPairsOpenBalanceBlacklist
work (+ add docs)
- Merged
b:AutoPairs
help intog: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 enableg:AutoPairsAutoLineBreak
g:AutoPairsSearchCloseAfterSpace
g:AutoPairsSingleQuoteMode
g:AutoPairsSingleQuoteExpandFor
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)
- Corrected documentation of AutoPairsDefine to include the optional second argument.
- 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)
AutoPairsDefine
calledAutoPairsDefaultPairs
withoutautopairs#
(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)
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
- [Breaking] Moved all autopair functions to have an
autopairs#
prefix
- Clarified the addition of pairs
- Cleaned up the define cascades with a function (3 lines -> 1 line)
- Fixed pair regex in vimscripts to better detect when quotes are likely to be comments. Largely #7 (thanks to lemeb!), but with a minor change to ignore Plug, Plugin, echo, and echoerr (where you can use double-quotes for strings, but these commands cannot have a comment on the same line -- Vimscript is weird). The changes ignoring those four commands are hackish -- improvements are welcome.
Initial release of this fork; primarily fixes a few bugs, contains documentation updates, and merges a few pull requests of varying sizes. The changelog wasn't added until 3.0.0-alpha2, which means the changes here weren't properly tracked.