Bash's powerful command line editing in cmd.exe
GPL-3.0 License
Published by chrisant996 almost 2 years ago
clink-diagnostics
command.Published by chrisant996 almost 2 years ago
rl.needquotes()
function to check whether text needs quotes in a command line.terminal.color_emoji
setting auto
mode to more broadly support accurate width measurements for color emoji (regardless whether the terminal program is capable of actually drawing the color emoji).clink-diagnostics
Ctrl-X,Ctrl-Z automatically analyzes the prompt text for problematic characters, reports them, and offers suggestions for how to solve problems they might be causing.completion
autosuggest strategy so it doesn't provide a suggestion that requires quoting if the command line input is not currently quoted.Published by chrisant996 almost 2 years ago
terminal.color_emoji
setting controls when Clink assumes the terminal supports color emoji (color emoji are rendered using double-width characters, which can interfere with cursor positioning math, so Clink needs to know whether the terminal supports color emoji).fnmatch()
, as Posix specifies.line_state:getword()
and line_state:getendword()
to not strip quotes during generator:getwordbreakinfo()
functions (regression introduced in v1.1.24).clink.arg.register_parser()
is passed something that is not a parser at all.cd ..
Tab didn't complete to ..\
(regression introduced in v1.3.1).Published by chrisant996 almost 2 years ago
clink inject
. It returns 0 if successful, 2 if a fatal error occurred, or 1 if a non-fatal error occurred (such as Clink was already present; related to cmderdev/cmder#2800).%CLINK_PROFILE%
doesn't supersede --profile
(regression introduced in v1.0.0).Published by chrisant996 almost 2 years ago
clink-help
when including unbound "luafunc:" macros for which custom descriptions have been provided (e.g. Alt-4 then Alt-H).Published by chrisant996 almost 2 years ago
clink-diagnostics
Ctrl-X,Ctrl-Z (regression introduced in v1.3.49).Published by chrisant996 almost 2 years ago
clink.quote_split()
, clink.split()
, and clink.get_screen_info()
.autosuggest.enable
and autosuggest.async
settings are enabled.Published by chrisant996 almost 2 years ago
Published by chrisant996 almost 2 years ago
os.abbreviatepath()
and os.expandabbreviatedpath()
.match.expand_abbrev
setting is enabled.c:
or c:dir\
.Published by chrisant996 almost 2 years ago
clink.getpopuplistcolors()
to get the default popup list colors.clink.refilterafterterminalresize()
to enable automatic prompt refilter after terminal resize. Prompt filters should only enable this if they're designed to refilter very quickly, otherwise they may cause responsiveness problems. [clink-flex-prompt has been updated to make use of this.]
clink.popuplist()
function allows the items
table to include fields to override the height, width, colors, and direction of the list.clink_settings
file format has been relaxed slightly to accept trailing whitespace after a Boolean setting's value. Note that manually modifying the clink_settings
file is not supported; always use clink set
to query or change Clink settings.reverse-search-history
command when pressing the first key of a multikey binding (e.g. Ctrl-X) and then pressing any key that does not follow the first key in any of the corresponding multikey bindings (e.g. Esc).history.save
is False.set /p var=
mistakenly discards any previous input.Published by chrisant996 almost 2 years ago
:setendofflags()
; it made --
work correctly for input line coloring, but it didn't work correctly when generating match completions.clink-select-complete
, or could potentially even crash if Lua scripts returned invalid results from the ondisplaymatches
or onfiltermatches
events.Published by chrisant996 almost 2 years ago
Published by chrisant996 about 2 years ago
Published by chrisant996 about 2 years ago
"cd"
so it doesn't match the cd
argmatcher, because CMD commands cannot be quoted.Published by chrisant996 about 2 years ago
clink.max_input_rows
setting that limits the number of screen rows to use for displaying the input line, scrolling as appropriate if the input line exceeds the limit.color.histexpand
setting. When this is configured with a color, then Clink highlights history expansions in the input line and shows a preview of the expansion that will be applied near the current cursor position.history.auto_expand
setting. When this is set to false, history expansions will not be performed automatically upon Enter, but they may still be performed by invoking expansion commands such as clink-expand-history
Alt-^, or clink-expand-line
Alt-Ctrl-E.clink-diagnostics
command now reports costs for prompt filters and input line coloring classifiers when a numeric arg is given (e.g. Alt-1,Ctrl-x,Ctrl-z).clink-select-complete
with the match.substring
setting enabled.clink set
.quoted-insert
followed by Esc, so that it inserts the raw ESC character.what-is
to consistently reset the color afterward.terminal.raw_esc
is enabled, so that Esc changes to vi command mode.clink.refilterprompt()
to report an error upon invalid usage (it cannot be used inside a prompt filter, as that could cause infinite recursion and a crash).history
prints UTF8 text incorrectly.foo.abc
doesn't recognize foo.abc.cmd
.%CD%
doesn't expand.Published by chrisant996 about 2 years ago
console.checkinput()
to check whether input is available.console.readinput()
to accept an optional no_cursor argument to avoid changing cursor visibility or position.