Releases: chrisant996/clink
Releases Β· chrisant996/clink
v1.4.18
- Added
clink.oninputlinechanged()
to register a function to be called whenever the input line is changed.
v1.4.17
- 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 thelua.debug
setting is enabled.
v1.4.16
- Added
history.show_preview
setting that controls whether to show a preview of history expansions (previously it was inferred by whethercolor.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()
andos.globfiles()
(it had never worked properly). It worked fine with the default modes of thefiles.hidden
andfiles.system
settings andmatch-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 thefiles.hidden
andfiles.system
settings andmatch-hidden-files
config variable control whetheros.globdirs()
andos.globfiles()
find hidden or system files, as before, and things can potentially malfunction. When the optionalextrainfo
argument is non-zero or when a new optionalflags
table is passed to them, they now default to including hidden files and omitting system files, but theflags
table can override that. This change was necessary because some scripts were unable to detect git repositories when thefiles.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
- 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
isoff
. - 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
- 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
- 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
- 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
- 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
- Added optional
level
argument tolog.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
- 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).