Skip to content

Releases: chrisant996/clink

v1.6.21

13 Aug 22:22
Compare
Choose a tag to compare
  • Reduced the performance overhead of hooked APIs from about 20 microseconds to about 2 microseconds.
  • Enhanced the executable recognition to avoid flickering red (or color.unrecognized) for an executable name that was already recognized in a recent previous input line.
  • Enhanced the srcmap command in the Lua debugger so that srcmap dir automatically sets up source mappings for Clink's built in scripts using dir as the repo root.
  • Fixed when history.expand_mode is off; it didn't fully turn off all of the history expansion syntax forms (for example the ^ syntax).
  • Fixed input line coloring when the first word is a device name (e.g. nul or com1:); it should use color.unrecognized for the color.
  • Fixed #651; completion doesn't work for ./ and ../ anymore in the first word of a command line. Now when the match.translate_slashes setting is system or backslash then completing ./ and ../ can complete the word as a path, even though CMD does not consider it to be a path.
  • Fixed #653; clink_start.cmd gets run twice if the binaries directory is the same as the profile directory.
  • Fixed #654; input line coloring doesn't treat ^ correctly inside quotes (and related quirks).

v1.6.20

08 Aug 17:13
Compare
Choose a tag to compare

v1.6.19 has been deleted because it accidentally broke the updater -- if you already updated to v1.6.19, then a one-time manual update to v1.6.20 or newer is necessary to restore the updater.

  • Fixed truncated descriptions with clink set exec. and then clink-select-complete (Ctrl-Space) (regression introduced in v1.6.11).
  • Fixed fully qualified paths from a different local drive accidentally being colored with color.unrecognized.
  • Fixed #648; on Windows 8.1 the title bar can get changed to "Windows PowerShell" for the rest of the CMD session.
  • Fixed #652; error when trying to update again after updating to v1.6.20 (regression introduced in v1.6.19).

v1.6.18

28 Jul 22:47
Compare
Choose a tag to compare
  • Added a new callback function that can be assigned to an argument position in the table given to :addarg() via onalias= (see Responding to Arguments in Argmatchers for more information). The git argmatcher in the clink-completions repo uses this to support git aliases.
  • When a doskey alias doesn't include any $ tokens then CMD is guaranteed to ignore the rest of the command line after the alias, so now argmatcher parsing also ignores the rest of the command line and colors it using color.unexpected.
  • Suppress the ANSICON warning in the log file and diagnostics output on Windows 8.1. The performance problem in ANSICON exists, but apparently there isn't a better alternative before Windows 10.

v1.6.17

14 Jul 17:00
Compare
Choose a tag to compare
  • Added warning in the log file and in clink-diagnostics (Ctrl-X,Ctrl-Z) when ANSICON is detected on Windows 8.1 or greater (it's unnecessary, less functional, and greatly degrades performance).
  • Added language info in clink-diagnostics when the code page is not 1252 (for easier troubleshooting).
  • Fixed finding argmatchers registered with exact names (typing foo couldn't find an argmatcher registered as c:\dir\foo.exe because it accidentally looked for c:\dir\foo.EXE).
  • Fixed #631; script error after cmd when the current language is German.

v1.6.16

17 Jun 02:50
Compare
Choose a tag to compare
  • Added a workaround for how scoop tries to control app versions and updates (#615; scoop causes clink autorun install to use a wrong path).
  • Added an auto mode for the match.translate_slashes setting. This mode makes completion translate all slashes in the completed word to match whichever kind occurs first in the word, or to the system path separator if there are no slashes yet (e.g. when completing a directory name).
  • Changed the default to auto for the match.translate_slashes setting.
  • Updated the clink.slash_translation() function.
  • UNC share name completion works with forward slashes now (e.g. //localhost/).
  • Added a clink-toggle-slashes bindable command, bound by default to Ctrl-/. The command toggles between forward and backslashes in the word at the cursor point, or in the Nth word if a numeric argument is provided (e.g. by the Alt-Digit keys).
  • Fixed the off mode for the matches.translate_slashes setting (regression introduced in v1.1.23).
  • Fixed input line coloring of @ in for %a in (*) do @whatever.
  • Fixed crash in glob-list-expansions when used on an empty word (regression introduced in v1.3.36).
  • Fixed wildcard completions when match.wild is on and match.substring is off.
  • Fixed obscure edge case where match filtering with wildcards could potentially yield inaccurate results immediately after an auto-suggestion was offered.

v1.6.15

09 Jun 00:43
Compare
Choose a tag to compare
  • Fixed hiding internal script names in the clink-diagnostics output (regression introduced in v1.6.11).
  • Fixed #613; wrong input line coloring for cmd /c "command line".

v1.6.14

25 May 22:45
Compare
Choose a tag to compare
  • Fixed menu-complete to respect completion-auto-query-items.
  • Fixed missing line break before dump-macros, dump-variables, clink-dump-functions, and clink-dump-macros (regression introduced in v1.6.3).
  • Fixed rl.getbinding() to return clink-select-complete instead of clink-popup-complete (the latter is just an alias; the real command name is clink-select-complete).

v1.6.13

05 May 23:27
Compare
Choose a tag to compare
  • Popup lists can now be filtered.
    • Press F4 in a popup list to toggle the search mode between "find" and "filter".
    • The clink.popup_search_mode setting controls the default search mode.
    • The clink.popuplist() function can be told to start in a specific search mode.
  • Added os.findfiles() to allow getting files/directories one at a time (versus os.globfiles() which collects the entire set all at once into a table).
  • Added exec.associations setting to let Executable Completion include files with registered file associations as matches (e.g. launchable documents such as "*.pdf" files).
  • Fixed Ctrl-C in a popup list copying the wrong entry after having used Del to delete an entry.
  • Fixed input line coloring to use color.executable also for files included by the exec.path setting, if the files have registered file associations.

v1.6.12

18 Apr 15:55
Compare
Choose a tag to compare
  • Fixed #597; prompt shows leftover text sometimes (regression introduced in v1.6.10).
  • Fixed #596; it's easy to forget whether Enter in history list executes or inserts.

v1.6.11

08 Apr 16:41
Compare
Choose a tag to compare
  • Added os.setalias() for setting a doskey alias without needing to invoke the doskey.exe program.
  • Fixed a case where match descriptions could be displayed with incorrect padding and truncation (regression introduced in v1.6.6).
  • Lua debugging enhancements:
    • Changed the built-in embedded scripts to include debug info, which allows some Lua error messages to be more useful for troubleshooting.
    • Added srcmap command in the Lua debugger to override where to find source files.