Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow numbered substitutions in aliases #258

Merged
merged 4 commits into from
Sep 9, 2023
Merged

Conversation

TorchedSammy
Copy link
Member

@TorchedSammy TorchedSammy commented Jul 11, 2023

this allows users to refer to args in aliases with an index. this makes it so certain aliases don't have to be done via a commander

example:

~/Files/Projects/Hilbish alias-substitute*                                   
∆ hilbish.alias('dumb', 'echo %1 is dumb')
~/Files/Projects/Hilbish alias-substitute*                                   
∆ dumb
%1 is dumb
~/Files/Projects/Hilbish alias-substitute*                                   
∆ dumb me
me is dumb

  • I have reviewed CONTRIBUTING.md.
  • My commits and title use the Conventional Commit format.
  • I have documented changes and additions in the CHANGELOG.md.

@TorchedSammy TorchedSammy added the enhancement New feature or request label Jul 11, 2023
this makes it so that quoted text is a single arg in the slice
@TorchedSammy TorchedSammy merged commit ba04fb2 into master Sep 9, 2023
@TorchedSammy TorchedSammy deleted the alias-substitute branch September 9, 2023 17:52
@TorchedSammy TorchedSammy restored the alias-substitute branch December 24, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant