github qu8n/herdr-automatic-rename v0.11.0

latest release: v0.11.1
13 days ago

Added

  • Workspace labels can be shown under a shorter name than their directory carries. WORKSPACE_SUBSTITUTE_SETS is an ordered list of sed -E rewrites applied to the name herdr derives from the directory, so 's|^worktree-|wt-|' puts worktree-feature in the sidebar as wt-feature. The rewrite reaches the label and nothing else: the directory and the Git worktree keep their names, and a tab inside that directory still drops the workspace's name out of its own label rather than re-injecting the long spelling it was shortened to lose.

    Only a derived name is rewritten. A name you typed is left alone for good, the same promise the tab opt-out makes, with the same gap in it: herdr exposes no way to tell a typed name from the derivation it happens to match exactly.

    Numbering and rewriting are the two reasons the workspace pass runs, so a rewrite reaches a workspace whose numbering was never turned on. A rewrite is derived fresh every pass rather than built out of the label the last one wrote, so deleting the rules puts the derived names back at the next event by itself. With numbering off there is no next pass to do that, and the labels keep their last rewrite until clear.

    clear hands back the derived name too, where it used to strip the number off the rewrite and leave that standing. It is documented as the last step before uninstall, after which the plugin that could have restored the label is gone.

    Based on #15 by @engineersamuel.

Don't miss a new herdr-automatic-rename release

NewReleases is sending notifications on new releases.