Skip to content

Releases: chrisant996/clink-flex-prompt

v0.17

19 Mar 16:19
Compare
Choose a tag to compare
  • Added a way for prompt modules to extend the default prompt strings, without having to directly set the left_prompt or right_prompt, to avoid interfering with detecting whether the wizard has been used yet.
  • Added a way for bubbles style to use configurable colors for VPN connections.
  • Added an option for bubbles style to use darker grays.
  • Use a more readable ellipsis truncation in the bubbles style.
  • Fixed potential script error when checking for git submodules.
  • Fixed potential script error when certain symbols aren't available.
  • Fixed bubbles style to only show the "refreshing" icon if it's the same width as the normal icon that would appear.
  • Fixed bubbles style with no_graphics to not use Powerline symbols.
  • Fixed bubbles style to check contrast better for fluent text color.
  • Fixed battery display in bubbles style.
  • Fixed blending colors in bubbles style.
  • Fixed color emoji problem in {user} module.
  • Fixed how {scm} module decides what name or icon to show.
  • Fixed {break} module with no_graphics.
  • Fixed separators with no_graphics in rainbow style.
  • Fixed wizard to not write flexprompt.settings.width to the flexprompt_autoconfig.lua file.
  • Fixed wizard to not show the {histlabel} module in previews.
  • Fixed #59; script error when kubectl.exe omits namespace:.
  • Fixed #53; add flexprompt_config.lua to .gitignore.

v0.16

12 Jan 18:47
Compare
Choose a tag to compare

v0.16

  • Fixed #51; error in flexprompt configure when used in a terminal other than Windows Terminal (introduced in v0.4 more than two years ago).

v0.15

  • Clink v1.6.1 has built-in support for "compact" and "sparse" prompt spacing, so flexprompt now defers to Clink for that when using v1.6.1 or higher.
  • Added a {conda} module to show the current Conda environment.
  • Added an {scm} module to show status for any registered source control system (if you use more than one system, you can have just one module for source control in the prompt, instead of having one for each possible system).
  • Added a new prompt style "Bubbles", which uses three new modules {tbubble} (top line), {lbubble} (left prompt), and {rbubble} (right prompt). Like the new {scm} module, the {lbubble} shows source control status for any registered source control system (not just git).
  • Enhanced the Mercurial and Subversion support so that the {hg}, {svn}, {scm}, and {lbubble} modules to show branch info and a count of modified files for Mercurial and Subversion, similar to the {git} module.
  • Added flexprompt.register_scm() and flexprompt.register_vpn() APIs for registering additional source control system plugins and VPN detector plugins.
  • Alt-Ctrl-T now temporarily forces duration to be visible, as well as toggling whether to show tenths of seconds.
  • Alt-Ctrl-Shift-Z is a new default key binding that toggles "no graphics" mode.
    The "no graphics" mode tries to avoid using non-ASCII symbols when displaying the prompt. This can be useful when copying terminal content to be pasted into an email.
  • Added flexprompt.register_scm() and flexprompt.register_vpn() APIs for registering additional source control system plugins and VPN detector plugins.
  • Print a message pointing to the documentation after flexprompt configure is done.
  • Wizard asks whether to use color emoji in Windows Terminal.
  • Use hourglass-done icon for {duration}.
  • Fixed #45; resizing terminal cancels flexprompt configure wizard.
  • Miscellaneous minor internal improvements and fixes.

v0.15

12 Jan 08:44
Compare
Choose a tag to compare
  • Clink v1.6.1 has built-in support for "compact" and "sparse" prompt spacing, so flexprompt now defers to Clink for that when using v1.6.1 or higher.
  • Added a {conda} module to show the current Conda environment.
  • Added an {scm} module to show status for any registered source control system (if you use more than one system, you can have just one module for source control in the prompt, instead of having one for each possible system).
  • Added a new prompt style "Bubbles", which uses three new modules {tbubble} (top line), {lbubble} (left prompt), and {rbubble} (right prompt). Like the new {scm} module, the {lbubble} shows source control status for any registered source control system (not just git).
  • Enhanced the Mercurial and Subversion support so that the {hg}, {svn}, {scm}, and {lbubble} modules to show branch info and a count of modified files for Mercurial and Subversion, similar to the {git} module.
  • Added flexprompt.register_scm() and flexprompt.register_vpn() APIs for registering additional source control system plugins and VPN detector plugins.
  • Alt-Ctrl-T now temporarily forces duration to be visible, as well as toggling whether to show tenths of seconds.
  • Alt-Ctrl-Shift-Z is a new default key binding that toggles "no graphics" mode.
    The "no graphics" mode tries to avoid using non-ASCII symbols when displaying the prompt. This can be useful when copying terminal content to be pasted into an email.
  • Added flexprompt.register_scm() and flexprompt.register_vpn() APIs for registering additional source control system plugins and VPN detector plugins.
  • Print a message pointing to the documentation after flexprompt configure is done.
  • Wizard asks whether to use color emoji in Windows Terminal.
  • Use hourglass-done icon for {duration}.
  • Fixed #45; resizing terminal cancels flexprompt configure wizard.
  • Miscellaneous minor internal improvements and fixes.

v0.14

18 Jun 23:38
Compare
Choose a tag to compare
  • Added submodule icon for {git} module.
  • Updated the flexprompt configure wizard:
    • Detect if a font is NerdFonts v2 or v3 (icons have different ID numbers).
    • Detect if a font uses mono- or double-width NerdFont icons.
  • Fixed typo that made the take_optional_locks table not work for the {git} module.

v0.13

16 May 15:50
Compare
Choose a tag to compare
  • Added optional submodules arg for the {git} module, to include status from a repo's submodules even when not in a submodule directory.
  • Fixed error handling in prompt modules when associated programs are not installed (vpncli, git, hg, xmllint, svn, git).
  • Fixed #43; error when git repo is corrupt.
  • Fixed #42; branch is shown from repo instead of submodule.

v0.12

15 Apr 18:55
Compare
Choose a tag to compare
  • Added {admin} module.
  • Added {break} module.
  • Added {env} module.
  • Added ability to override default args on a per-module basis (search for defaultargs in Miscellaneous).
  • Added option in wizard for breaks in the "rainbow" style (inserts {break} modules).
  • Added ability to use a different style for the top_prompt, via top_style (see Top Line for more info).
  • Added support for none separator style in the "rainbow" style.
  • Added smartname arg for the {npm} module, to skip npm package name if it matches the folder name (by @ipatalas in #34).
  • Added ability for modules to provide a condense_callback to abbreviate their content if the prompt doesn't fully fit in the terminal width (see Abbreviation When Too Wide for more info).
  • Added Clink setting flexprompt.enable to disable/enable flexprompt.
  • Improved behavior when the terminal is resized; automatically refreshes the prompt (requires Clink v1.4.0 or higher).
  • Improved path abbreviation in the {cwd} module.
  • Reduced the whitespace in the prompt cost report in the clink-diagnostics command.
  • Fixed wizard in 1 line mode with left-only prompt.
  • Fixed top_prompt when there is a left frame.
  • Fixed custom symbols to fall back to using built-in symbols if there's no match for the current terminal or configuration.
  • Fixed {git} module to use --no-optional-locks with all commands (to disable it, search for take_optional_locks in Miscellaneous).
  • Fixed #37; sort flexprompt_autoconfig.lua file alphabetically.
  • Fixed #32; incorrect example in docs for how to use use_icons (by @eblis in #33).

v0.11

20 Sep 02:49
Compare
Choose a tag to compare
  • Added {k8s} module for Kubernetes.
  • Added {anyconnect} module for Cisco AnyConnect VPN.
  • Added flexprompt.settings.top_prompt for an optional prompt line above the left/right prompt lines.
  • Added flexprompt.settings.oncommands which lets you make certain modules only show up when certain commands are typed (see README.md).
  • Added "dot" and "vertical" separator options for the "lean" style in the wizard.
  • Use async prompt filtering for Subversion {svn} module.
  • Abbreviating directory names supports starting with Unicode text or spaces.
  • Hooks into the clink-diagnostics command and reports how long modules take to execute.
  • Fixed #23; added optional :nountracked: argument for the {git} module, to omit untracked files.
  • Fixed #22; coroutine error when git fails to run.
  • Miscellaneous minor internal changes.

v0.10

19 Jun 03:48
Compare
Choose a tag to compare

v0.10

  • Use async prompt filtering for Mercurial {hg} and Maven {maven} modules.
  • Fixed {cwd:shorten} with upper case letters.
  • Fixed ~ with subdirectories.
  • Fixed #18; color is applied incorrectly for ~\repo.

v0.9

29 Apr 15:25
Compare
Choose a tag to compare
  • Moved the flexprompt_autoconfig.lua file to the profile directory (unless one already exists in the script directory).
  • Added shorten arg for the {cwd} module.
  • Added wizard page to help identify whether the font supports icons.
  • Added {histlabel} module by default (it is only visible when %CLINK_HISTORY_LABEL% is set).
  • Made flexprompt.get_spacing() available for public use.
  • Fixed {cwd} and {git} in git worktrees.
  • Fixed toggling tenths (Ctrl-Alt-T) when not configured yet.
  • Fixed script error when invalid heads or tails are configured.
  • Fixed script error when flexprompt.settings.symbols is not defined.
  • Fixed cosmetic glitch when %CLINK_HISTORY_LABEL% has leading or trailing spaces.

v0.8

07 Jan 16:01
Compare
Choose a tag to compare
  • Fixed the modmark display so that it continues to work after the first edit line.