-
Notifications
You must be signed in to change notification settings - Fork 44
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
Feature request: interoperability with zsh-abbr
#129
Comments
this is a nice feature I was actually not even aware of, thanks for the suggestion :) |
Ahhh, I see what you mean. In fish (where I initially saw this), there seems to be a way to detect the raw user input . So it's possible to discern if the user used the abbreviation or the full command. |
Hi I'm the zsh-abbr maintainer 👋 Teaching zsh-you-should-use about zsh-abbr abbreviations is a neat idea. @mainrs thanks for spearheading and middlemanning. @p1r473 cool stuff in #133. I think it can be done with fewer or maybe even no forks (that is, external commands)! For example, you can get more robustly handle the quotation marks with @MichaelAquilina if you're up for supporting zsh-abbr abbreviations, I'm up for taking on the work of exporting some additional variables with an eye towards minimizing the implementation in zsh-you-should-use. |
Hey long time @olets |
@olets that sounds great! :) thanks for chiming in. Any variables that could serve as an "API" to zsh-abbr would be very helpful in making sure this feature works correctly and doesnt take a lot of effort to maintain. What kind of variables do you have in mind? |
One each for
If no opportunity to use an abbreviation was missed, they'd all be empty. |
zsh-abbr
allows for the creation of fish-like abbreviations. These get substituted in-shell with the specified command and do appear inside the history as the substituted command.Repository: https://github.com/olets/zsh-abbr
Related discussions: olets/zsh-abbr#51 (reply in thread)
The text was updated successfully, but these errors were encountered: