leap.nvim
leap.nvim copied to clipboard
Breaking changes
As of bb66dc961520a6513faf6d961609f8746497dcbf, the leap function expects a list of winids instead of wininfo tables as the target-windows argument. See the updated snippets in the README.
518389452cfb65d0493c134c58675cdeddbeb371 changed the flag case_insensitive to case_sensitive (with default false).
97ab70a97dc36b8440916daab1fa2f1fc6dcb98c changes all arguments of the leap function and all fields of the (so far undocumented) state table (i.e., the user-facing API) to snake case, to ease usage in plain Lua. For most people the relevant change is ['target-windows'] = ... -> target_windows = ....
As of 235ad9d50ed290e8f770eef580cb07c5bd87c8c5, opts.max_aot_targets replaces opts.highlight_ahead_of_time. This is analogous to our "smart" autojump feature - instead of using a binary flag, ahead-of-time displaying of target beacons can be enabled conditionally, for a certain maximum number of (phase 1) targets. Setting max_aot_targets to nil corresponds to the old flag's true state (always enabled), while setting it to 0 corresponds to false.
539d6e6936462a4685bd6c895ce46b5ff1c1826b removed special_keys.eol. If you want to set an alias for \n, simply define a character class that contains it, e.g. "\r\n" (or {'\r', '\n'}) if you want to use <enter>. (<space> is kept as the default alias.)
860e2d3941f6b13b8da0b62fd75d9209cb603f22 renamed the opts field character_classes to equivalence_classes.
5f4d67cf4838be55b42eefd0d0ebeab2b79f4da7: nil or false cannot be used anymore to mark labels and safe_labels "disabled" - set them to {}. (This flexibility provided practically zero value for users, while making our lives unnecessarily harder.)
Not a breaking change (yet), but a deprecation notice: 937bc9280f0073df16e355887bf5f199cff4ec92 replaced set_default_keymaps() with add_default_mappings() (applying a new mapping scheme), and the most of the old <Plug> keys with new ones. See more info in the docs.
9cc411481db859059ad66c8ad844b9386dc62d5c renamed a bunch of fields in opts and opts.special_keys. See the rationale in the commit message.
Deprecation notice: setup is not recommended to use from now on - set the opts fields directly. Instead of setup, it is possible that we'll expose a convenience function under the name configure or something like that in the future.
6068651f7f2bdb379344de52b9833d82bce27cec renamed <Plug>(leap-cross-window) to <Plug>(leap-from-window).
3cc0e6a0b99dc18d4e5a88baa3cbe3c7b8b34566: special_keys.next_target takes the role of repeat_search and next_phase_one_target too now. See the commit message for details.
Deprecation notice: new default mappings, hopefully for the last time: https://github.com/ggandor/leap.nvim/commit/88c627eb935e3c4ac2ab543c8a702e883072f669. The -till/-to <Plug> keys are still documented, and the old mapping arrangement is suggested as an alternative one.