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