-
Notifications
You must be signed in to change notification settings - Fork 51
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
[Request] support partial alias #72
Comments
That's tricky. Can you give it a stab to implement a solution? |
I can't I'm not good at python enough. I might try though |
There's a dumb stupid solution on the user side though
However that probably won't work since it still doesn't know what g is But maybe this is the right way of solving this problem ig. Because another solution I can think of is that you could just "sort it out" by taking out the first line of the alias and then search the others. For example if you have an alias of
Let's say you have an array of aliases called a[n] for example a[0] for vim a[4] for gp and another copied array of aliased commands of b[n] Using the same list of alias as an example. It'll first search for the word nvim inside other element s(except a) it'll find b[5] which is There's still one problem though, searching for array c might take an incredible amount of time and might be very efficient, however if you skip it you might miss out a lot of aliases just like before. So we should probably think of a better algorithm of searching these aliases. Thanks for reading this! |
for example I have two alias
alias g='git'
alias gp = 'git push'
and then if i do
g push
it won't show me the prompt that this is the same asgp
The text was updated successfully, but these errors were encountered: