Skip to content

Releases: chrisant996/clink

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).

v1.4.12

20 Jan 02:21
Compare
Choose a tag to compare
  • Additional improvements and logging for East Asian ambiguous width characters.
  • Running clink inject no longer empties the log file, so that AutoRun doesn't result in the log file being cleared over and over, which interferes with diagnostic efforts.
  • Fixed #407; the complete command gets confused by . prefix on files.

v1.4.11

16 Jan 23:20
Compare
Choose a tag to compare
  • Fixed #406; the "lambdagenerated.omp.json" theme for Oh-My-Posh has problems in CJK codepages. The East Asian Ambiguous support has been rewritten to solve multiple subtle issues; the fix in v1.4.9 exposed other inaccuracies.

v1.4.10

15 Jan 19:10
Compare
Choose a tag to compare
  • Added optional level argument to log.info() to facilitate more accurate reporting about the calling code.
  • Fixed extra duplicate log entry when the updater finds that Clink is already up to date.
  • Fixed #405; vi search gives unexpected results (regression introduced in v1.4.7).
  • Fixed #402; for convenience, print the Clink Releases page URL after a successful update (takes effect on the next upgrade after v1.4.10).

v1.4.9

12 Jan 04:31
Compare
Choose a tag to compare
  • Improved the problematic character reporting in the clink-diagnostics command.
  • Fixed measurements for the East Asian ambiguous width characters (this should solve the Cmder problems with lambda in the CMD.exe prompt text, including the space after the lambda).