Skip to content

Releases: chrisant996/clink

v1.4.22

09 Mar 20:13
Compare
Choose a tag to compare
  • Fixed clink-select-complete to use per-match appendchar when present.
  • Fixed repetitive unnecessary work in the background when the completion auto-suggest strategy encounters a fromhistory argument slot in an argmatcher.
  • Fixed the installer /S flag (silent install) so it returns exit code 0 on success.

v1.4.21

01 Mar 22:16
Compare
Choose a tag to compare
  • The clink-diagnostics command can report merged argmatchers. When a numeric arg of 2 or greater is given (e.g. Alt-2,Ctrl-x,Ctrl-z) then it includes a list of defined argmatchers. The list now also reports any merging of argmatchers that occurred.
  • Fixed clink update so winget doesn't get confused about whether an update is available for Clink. Once winget update clink performs an update, or once a Clink v1.4.21 or greater .exe installer is run, then winget should stop getting confused.

v1.4.20

27 Feb 01:06
Compare
Choose a tag to compare
  • Fixed os.isfile() and os.isdir() when the specified name contains < or > or ", which are special wildcard characters for MS-DOS compatibility. This caused an error when typing "<, which then mistakenly thought a completion script named <.lua existed.
  • Fixed rl.expandtilde() to omit a trailing backslash when expanding ~ by itself. This is to avoid running afoul of the \" parsing rules for argv[] for programs.
  • Fixed potential crash when the clink command line takes more bytes as UTF8 than it does as UTF16.

v1.4.19

14 Feb 08:42
Compare
Choose a tag to compare
  • Added builder:setforcequoting() to force quoting rules to be applied to matches even if they aren't filenames. This also reverts "quoting for non-filename completions" in v1.4.13; there isn't a safe and backward-compatible way to automatically deduce when non-filenames matches need quoting, so a match generator needs to turn it on explicitly when desired.

v1.4.18

12 Feb 20:19
Compare
Choose a tag to compare
  • Added clink.oninputlinechanged() to register a function to be called whenever the input line is changed.

v1.4.17

12 Feb 19:05
Compare
Choose a tag to compare
  • Added os.isuseradmin() to get whether CMD is running as an admin account.
  • Added os.getfileversion() to get a table with version information if the file contains a Windows version info resource.
  • The clink-diagnostics command now reports costs for Lua event callback functions when a numeric arg is given (e.g. Alt-1,Ctrl-x,Ctrl-z) or when the lua.debug setting is enabled.

v1.4.16

05 Feb 08:07
Compare
Choose a tag to compare
  • Added history.show_preview setting that controls whether to show a preview of history expansions (previously it was inferred by whether color.histexpand was set).
  • Added detection for problematic codes in the prompt string. The clink-diagnostics Ctrl-X,Ctrl-Z command reports problem codes in the prompt string. When certain problem codes exist in the prompt string, then Clink compensates by reprinting the entire input line after printing the prompt string. Ideally, the prompt string should be fixed by the user, but sometimes that's difficult if the prompt string was generated by a tool.
  • Potential Breaking Change: Fixed how hidden and system files are handled by os.globdirs() and os.globfiles() (it had never worked properly). It worked fine with the default modes of the files.hidden and files.system settings and match-hidden-files config variable. But if any of those were changed from the default values then malfunctions could occur. With the fix, in backward compatibility mode the files.hidden and files.system settings and match-hidden-files config variable control whether os.globdirs() and os.globfiles() find hidden or system files, as before, and things can potentially malfunction. When the optional extrainfo argument is non-zero or when a new optional flags table is passed to them, they now default to including hidden files and omitting system files, but the flags table can override that. This change was necessary because some scripts were unable to detect git repositories when the files.hidden setting was false. Excluding hidden files never worked properly in the past. Clink v1.4.16 does its best to be as backward-compatible and forward-compatible as possible, but in some cases scripts may need to be updated to work properly when the settings or config variable are changed from their default values.
  • Fixed the match-hidden-files config variable to work again (regression introduced in v1.0.0). Also, when off, now it hides files and directories whose names begin with ..
  • Fixed #421; clink.bat errors with quoted arguments (regression introduced in v1.3.47).
  • Updated documentation with more cross-referencing links for Clink settings, Readline commands, Readline config variables, and standard Lua APIs.

v1.4.15

01 Feb 18:49
Compare
Choose a tag to compare
  • Added log.getfile() to get the current log file path.
  • Fixed match display to better accommodate escape codes for italics and underline, if present and supported by the terminal.
  • Fixed #414; argument color doesn't reset for values in multi-column layout when colored-stats is off.
  • PR #418; Fix crash caused by destruction of non detached threads.
  • PR #417; Fix buffer overread caused by usage of strcmp on non null-terminated char arrays.

v1.4.14

29 Jan 03:07
Compare
Choose a tag to compare
  • Fixed autosuggest to update again if matches are marked as volatile and the input line changed while matches were generated in the background (related to clink-completions#164).

v1.4.13

25 Jan 21:33
Compare
Choose a tag to compare
  • Added more status information in clink-diagnostics Ctrl-X,Ctrl-Z.
  • Fixed quoting in the insert-completions Alt-* command.
  • Fixed quoting for non-filename completions.
  • Fixed a CPU busy-loop after match_builder:setvolatile() was called during an auto-suggest strategy.
  • Fixed #411; setting %CLINK_HISTORY_LABEL% after Clink started didn't take effect (regression introduced in v1.3.18).