Releases: chrisant996/clink
Releases Β· chrisant996/clink
v1.5.13
- Added
clink.onhistory()
to register a function to be called when the input line has been accepted and is about to be added to history (and optionally cancel adding it). - Fixed
history delete
with a negative number so it indexes backwards from the end, as advertised. - Fixed calling
clink.refilterprompt()
from a coroutine, and related fixes to ensure various Lua functions coexist properly with coroutines. - Fixed #520; add a link to the Releases page in the updater dialog box.
v1.5.12
- Fixed updating the input line display after using
clink-popup-history
orwin-popup-history
(regression introduced in v1.5.3; the fix in v1.5.4 was incomplete). - Fixed
console.checkinput()
so it doesn't eat whatever pending input it detects. - Fixed the updater to be more specific about what PowerShell cmdlet it invokes, in case a module replaces the built-in
Expand-Archive
cmdlet.
v1.5.11
- Fixed prompt filters and other Lua coroutines when
color.executable
andcolor.unrecognized
are both empty (regression introduced in v1.5.10).
v1.5.10
- Changed
clink update
to consider "up-to-date" as a successful case. - Fixed a case where the
completion
auto-suggest strategy could be temporarily prevented from providing a suggestion (regression introduced in v1.4.22). - Fixed leaked memory when showing history expansion previews.
- Fixed #511;
!
doesn't need to be treated as a word break character. - Internal changes.
v1.5.9
- Added default key binding Alt-Ctrl-Up for
clink-popup-history
. - Fixed the
match.max_rows
setting to control the number of rows of items (instead of the total number of rows including description rows). - Fixed #509; crash when using
clink-popup-history
ifhistory.time_stamp
isoff
(regression introduced in v1.5.7).
v1.5.8
v1.5.7
- Added vertical scrollbars in
clink-select-complete
and in popup lists. - Added
terminal.scrollbars
setting which can disable the vertical scrollbars (e.g. according to preference, or if a terminal or font is incompatible with extended Unicode box drawing characters). - Added
clink set --info
flag. - Added language-related diagnostic info in
clink info
. - Added minor optimization when displaying prompt text.
- Added enhancements in the pager used when displaying help or matches; Tab or Space or Y print the next page, D prints the next half-page, Enter prints the next line, N or Q stop printing, and ? shows the available keys in the
-- More --
pager prompt (the enhancements were accidentally lost in v1.1.1-alpha). - Horizontal scrolling in popup lists works for all columns, if text doesn't fit in the column.
- Fixed crash in
rl.getmatchcolor(match, type)
; when the optionaltype
parameter was passed in, the API could crash. - Fixed #498; when
autosuggest.enable
is False, cycling or searching through history and then pressing Right does nothing (regression introduced in v1.5.4). - Internal improvements.
v1.5.6
- Added
os.getpushddepth()
, which works when%PROMPT%
contains exactly one$+
. - The
clink-popup-history
andwin-history-list
commands show timestamps whenhistory.time_stamp
is set toshow
. - Fixed
os.geterrorlevel()
whencmd /u
was used. - Fixed word break parsing in the input line when certain Unicode characters are present.
- Fixed Unicode string conversions to disallow translating to "similar" characters (which could be problematic in filenames).
- Fixed a crash in
rl.getkeybindings()
if it's called by a Lua script running insideclink set
. - Fixed Lua debugger input if a script error occurs inside
clink set
. - Fixed a width quirk in
clink-select-complete
where typing to narrow the list to a single item accidentally made the column width at least 3 characters, even if the item was only 1 or 2 characters width. - Fixed
clink history
to handle escape codes embedded in thehistory.time_format
setting. - Fixed a potential crash after using
remove-history
at the beginning of the history list. - Fixed #494; Lua error when using
unicode.fromcodepage()
(reported and fixed before the bug was published). - Fixed #493;
clink-select-complete
displays the selected item incorrectly if bothcolored-stats
andcolored-completion-prefix
areoff
(regression introduced in v1.5.5).
v1.5.5
- Changed the
clink.autoupdate
setting to allowoff
,check
(the default),prompt
, andauto
for more control over how and when updating happens. When set toprompt
orauto
Clink can trigger updates automatically, so you don't need to even runclink update
. - Enhanced
debug.log_terminal
to include low level console keyboard and mouse input events. - Fixed
debug.log_terminal
to capture all input (regression introduced in v1.5.2). - Fixed slowness during
clink-select-complete
while typing, caused by excessive match generation. - Fixed selection highlight in
clink-select-complete
when the whole match text has been typed. - Fixed #486; window title escape code doesn't work properly if it contains emoji or UTF content.
- Internal changes.
v1.5.4
- Further contrast improvements for default colors to be readable in both Dark and Light terminal themes.
- Added
arginfo
field inbuilder:addmatches()
and in match display filtering. - Auto-suggestions are no longer shown while searching history; it was too distracting and confusing.
- Fixed updating the input line display after using
clink-popup-history
orwin-popup-history
(regression introduced in v1.5.3). - Fixed
old-menu-complete
andmenu-complete
when there's only one match. The first time it should insert the match, and subsequent times should ding instead of cycling through the same match over and over and requiring an equal number ofundo
to undo. - Fixed match display filtering to support the
match.substring
setting. - Fixed match display filtering to support the
files.system
setting. - Fixed the cursor position if match display filtering happens the first time
clink-select-complete
is used in a session. - Fixed a case where two
undo
were required to fully undo whatmenu-complete
inserted. - Fixed Esc during incremental history search mode so it cancels the search.
- Fixed input line coloring after
non-incremental-reverse-search-history
ornon-incremental-forward-search-history
finds an exact match for the search text (since v1.1.5). - Internal changes and optimizations.