Skip to content

Releases: marlonrichert/zsh-autocomplete

2024-09-04

04 Sep 07:55
762afac
Compare
Choose a tag to compare

Release notes for Zsh Autocomplete version 24.09.04

This release introduces the following changes in user-observable behavior. All changes have been contributed by Autocomplete's author, Marlon Richert (@marlonrichert), unless mentioned otherwise.

Potentially breaking changes

  • 338c35e Remove ancestor dirs feature. Closes #675.
  • a8fdd21 Move recent paths completion to a keybinding. Resolves #640.
  • 3b68cf4 Don't add ^X/ to the main keymap. Add it only to the emacs keymap.
  • adfade3 Let max-lines default to 16
  • 5cd2221 Restore omitted menu keybindings for tab and shift-tab

Bug fixes

  • b62154d Show all possible completions in command position at once. Fixes #672.
  • da1f85f Work around more _describe quirks. Fixes #635.
  • 453df9e Fix bug in fuzzy history sort weights. Fixes #626.
  • fccc045 Remove : from file names. Fixes #623.
  • 5624f7b Fix problem where alternative async completion modes would return 0 results
  • 710752f Fix infinite loop in recent paths completion
  • 008caae Make minimum delay more accurate
  • bbbefed Fix bugs in handling of external widgets. The old code would break the behavior of certain widgets that aren't ours.
  • 0f95e34 Fix check for history lines in common substring logic
  • 8aae270 Fix bug in recent dir sorting
  • 118b4c3 Fix bugs in the handling of $compstate[unambiguous]
  • 9268521 Fix completer order
  • 620ffca Avoid triggering WARN_CREATE_GLOBAL
  • 1968100 Fix bugs in recent-paths widget:
    • Limit number of lines shown.
    • Don't show common substring.
    • Let lowercase match uppercase.
    • Let completion widgets insert recent paths even when the list isn't yet visible.
  • 87a0c5a Complete recent files with globbed-files comp tag. Contributed by Tomas Slusny (@deathbeam). Thanks, Tomas!
    • Complete recent files (if defined) if comp tag contains globbed-files
    • Set proper description for the completion (atm both are called recent directory which is wrong)

Enhancements

  • 80ded2d Allow abbreviated paths to be completed. Closes #677.
  • d1bbeca Try fuzzy completion before spelling correction
  • a66d6ae Rewrite list trimming to cover more edge cases
  • 12e1a7f Make inserting a completion reset the completion context to default
  • 2912c97 Change the group titles of _expand completions.
  • faed81e Improve git arguments completion
  • 545051e Simplify keybinding system
  • 8f54aab Simplify recent dirs completion
  • f3fdcfa Improve the handling of kill/yank sequences
  • 480688a Tweak complete-word behavior
  • 283d4bc Allow add-space setting to be widget-specific
  • a46347b Don't complete ancestor dirs as recent dirs
  • dc22275 Reduce number of chars corrected in short words
  • 9b62c13 Complete ancestor dirs after recent dirs
  • 4925cb7 Improve & document completion matching

Readme updates

Thanks go out to Vincent Xiao (@vxio), @3xploiton3, John Valai (@jv-k) and Vinny Meller (@vinnymeller) for various fixes, additions and improvements to the Readme file.

2023-07-13

13 Jul 13:33
Compare
Choose a tag to compare

2023-05-24

24 May 12:28
Compare
Choose a tag to compare

2023-05-02

02 May 17:40
Compare
Choose a tag to compare

2022-01-21

21 Jan 06:04
Compare
Choose a tag to compare

Enhancements

  • 3942311 Increase the default minimum delay
  • 18a9bfb Show dotfiles if and only if GLOB_DOTS is set
  • 1a136c9 Complete ~dirstack, then ~dirnames, then ~users
  • 85bfd6e Improve completion of executables & dotfiles
  • c130eee Exit live history search after accepting a match
  • 41bed13 Let most widgets remove history line suffix
  • bcdb53f Improve output in command position
  • 424ec91 Prefer exact match for recent dirs
  • a364a84 Reduce number of files listed for source or .
  • fe20fc5 Let space remove ; history line suffix
  • 7e53055 Improve cdr recent dirs sorting
  • 86cd5e1 Improve completion matching
  • d81f760 Improve history search output

Bug fixes

  • 06b887a Fix quoting bug in history completion
  • debda1c Fix bugs in parameter expansion
  • 6f74426 Avoid expanding command substitution
  • 5d64d38 Fix global param bug in zle-flags()
  • 7727d97 Work around comp functions with bad return values
  • dacf6aa Avoid global/nested var warning in compdef
  • bfa331e Suppress completion warning for empty command word
  • 8a538ff Don't pass -C flag to compinit
  • a37ca02 Fix a bug in correct/approximate completer
  • 21622da Fix a bug in ancestor dirs completion
  • 06e783e Fix a bug in glob completion
  • de71c33 Fix array expansion bugs in list trimming logic
  • b41b563 Simplify ancestor/recent dirs completion
    • Fixes part of #363.
  • 33979b2 Fix a bug in async completion
    • Fixes part of #363.
  • a131719 Don't autoload with sticky emulate
    • Fixes part of #363.
  • 3f357fc Improve the "no completions" warning
    • Fixes part of #363.
  • 443544f Prevent syntax highlight from wrapping autosuggest
  • efc951d Ensure default tab style is complete-word
  • 0e8aca6 Escape glob chars in histfindnodups mode
    • Fixes part of #362.

2021-11-01

01 Nov 19:55
Compare
Choose a tag to compare

Enhancements

  • e20d062 Add more suffix characters
  • 8268b21 Show fewer completions at once in command position
  • 3d97f06 Improve logging & bug reporting
  • b0d6753 Make debugging & bug reporting easier

Bug fixes

Other Changes

  • 170f313 Retire some out-of-scope menu select bindings

2021-09-22

22 Sep 08:45
Compare
Choose a tag to compare

Enhancements

Bug Fixes/Workarounds

Other Changes

  • d7a0899 History words are no longer offered as completions, due to performance impact.
  • f17749c 99f0b2a Several built-in keybindings that are superfluous when using this plugin are now disabled/removed.

2021-08-27

27 Aug 20:14
Compare
Choose a tag to compare

2021-08-09

09 Aug 20:57
Compare
Choose a tag to compare

Bug Fixes

  • a7f69c9 Fix a deadlock in async completion
  • 2d59624 Fix a bug in compadd options parsing
  • 24e2350 Fix a bug with menu widgets & partial lists
  • b79057d Fix a bug in ⌃␣ widget
  • 96bb6aa Fix a highlighting bug
  • c4287a8 Insert ; only for multiple history lines. Otherwise, always discard it.
  • 14691b0 Fix a redraw bug
  • ff42f83 Fix a bug in history line context matching
  • 3e760b4 Change logging strategy

Enhancements

  • 5cd54a0 Give more weight to exact prefix matches
  • b164ae7 Improve all-matches performance
  • 901c1d4 Don't complete recent dirs that are non-existent
  • ff84e8d Improve up/down arrow widgets
  • 80119c2 Bring key names in line with zkbd
  • f43530d Try $key_info if $key is unavailable
  • 154d4e7 Enable full text search in completion menu
  • a5d6df1 Change ⇤ behavior in completion menu
  • d8fb9bf Sort recent dirs by display length
  • fbc7fce Improve accuracy of ZLE flag handling
  • 98f4418 Sync local history before doing history search

Dropped Features

  • ddb28e2 Remove vi key bindings from menuselect keymap. They're impossible to maintain for someone who doesn't use vi.

2021-06-16

16 Jun 12:09
Compare
Choose a tag to compare

Documentation updates

  • dca535c Increase min Zsh version to 5.4, because 5.3 and lower don't support autoload by absolute path. This came up in issue #287.

Features & enhancements

  • e40c131 Enable disabling recent dirs. Implements a request in discussion #286.
  • d2d7413 Lower the threshold for showing recent dirs
  • f21cf7f Prioritize dir stack over named dirs
  • 7f44a6d Improve Shift-Tab completion appearance
  • 6b16583 Make list prompt more colorful
  • a172a33 Move "partial list" message to bottom of list
  • 8054df6 Improve the menu select key bindings
  • fe7c34a Improve all matches completion
  • 62af5bd Limit history words offered for empty word

Bug fixes

  • 8aa3f42 Make sure we always pass absolute paths to autoload, because relative paths don't work. Fixes a problem mentioned in issue #282.
  • 33e193b Fix regression introduced by 68bae95. Mentioned in issue #187.
  • a1ee18e Ensure completion widgets always complete. Fixes part of issue #282.
  • b5a7a57 6745ee9 Work around zsh-users/zsh-syntax-highlighting#816 & zdharma/fast-syntax-highlighting#224. Fixes issue #288.
  • 345bd48 Account for missing histnos with histfindnodups. Fixes issue #280.
  • 1658d38 Fix z.sh sort order. Fixes issue #270.
  • 112b791 Don't read when KEYS_QUEUED_COUNT or PENDING. Fixes issue #279.
  • 828e852 Improve cursor position request logic. Fixes issues #279 & #269.
  • e8563df Be smarter about setting terminal keypad mode. Fixes issue #273. Related to the next item.
  • 4650999 Prefer not to use terminfo codes, because terminfo codes are meant for full-screen applications, not the command line. Additionally, when a full-screen app exits, it sets the terminal back to normal mode, but not all such exits cause line-init to be called. Thus, when returning from a full-screen-ap, the command line can then unexpectedly be in normal mode instead of app mode, causing certain keyboard shortcuts to fail.
  • 70f6aa0 Work around a crashing bug in Zsh. See zsh-workers 48936. Fixes issue #274.
  • 356b679 Fix a bug in line-pre-redraw hook. Fixes issue #274.
  • fbd093f Fix a bug in the add-space setting.