Skip to content

feat(hstr): add completion spec#2620

Open
nielskaspers wants to merge 1 commit intowithfig:masterfrom
nielskaspers:fix/issue-1804-hstr-spec
Open

feat(hstr): add completion spec#2620
nielskaspers wants to merge 1 commit intowithfig:masterfrom
nielskaspers:fix/issue-1804-hstr-spec

Conversation

@nielskaspers
Copy link
Copy Markdown

Summary

Adds autocomplete completion spec for the hstr shell history management tool.

Issue

Fixes #1804

Changes

  • Added src/hstr.ts with completion spec covering all hstr CLI options:
    • -h/--help, -V/--version
    • -n/--non-interactive — filter history non-interactively
    • -k/--kill-last-command — delete last command from history
    • -f/--favorites — display favorites view
    • -s/--show-configuration — show shell configuration
    • -B/--show-bash-configuration, -Z/--show-zsh-configuration
    • -b/--show-blacklist — show excluded commands
    • -t/--is-tiocsti — detect TIOCSTI support
    • -i/--insert-in-terminal — insert command into terminal

Testing

  • Verified options against hstr source code (src/hstr.c) and documentation
  • TypeScript compiles without errors

@withfig-bot
Copy link
Copy Markdown
Contributor

withfig-bot commented Mar 31, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@withfig-bot
Copy link
Copy Markdown
Contributor

Overview

src/hstr.ts:

Info:

@withfig-bot
Copy link
Copy Markdown
Contributor

Hello @nielskaspers,
thank you very much for creating a Pull Request!
Here is a small checklist to get this PR merged as quickly as possible:

  • Do all subcommands / options which take arguments include the args property (args: {})?
  • Are all options modular? E.g. -a -u -x instead of -aux
  • Have all other checks passed?

Please add a 👍 as a reaction to this comment to show that you read this.

@nielskaspers
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[hstr] Missing Spec

2 participants