-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Dynamic Commands #4
base: master
Are you sure you want to change the base?
Conversation
just static commands. For example when you create something like this "al add new 'cd'". Then when you run "al new root/directory" then it will change your directory to "../root/directory" or anything base on your input.
It's really cool feature that I also want to include for aliasme for a long time. |
What do you mean anywhere? Do you mean something like this "al root/directory new"? I think for multiple dynamic parts, to keep the code simple, we could have a keyword to start a multiple dynamic command. Something like this "al multi_dynamic alias input1 input2". |
… alias where you can change its' contents per call
functions were modify to accommodate for cmdType. However autocomplete is broken.
Ya, similar to what you say, put a symbol to indicate the dynamic part. |
@Jintin I did use $1, |
@Jintin Check out these new changes!!! This pull request just keeping getting crazier lol. First off, the biggest change is now Fills and Multi Fills are now the same thing just Fills. While the new Multi Fills is now a combination of Fill and Dynamic. When you “al ls”, you’ll see that Multi Fills have a number next to them, this number is the amount of arguments needed to run the alias command. In order to add a Multi Fill alias you need to do something like this “al add VP ‘vim ?1 ?2 ?3 ?4 -p’ MF 4”. Then just run like this “al VP a.py b.py c.py d.py” |
…l is now is a combination of Fill and Dynamic
… each cmdType in add()
This change will allow aliasme.sh to run dynamic commands instead of just static commands. For example, when you create something like this "al add new 'cd'". Then when you run "al new root/directory" then it will change your directory to "../root/directory" or anything base on your input.