Aliasme 4.0.0 Dynamic Commands Edition #5
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
EDIT: I only made this branch because of the bugs but now everything seems fine. I am going to go back to working on my master branch now.
If you haven't checked out my other pull request updates you should look at that first.
First off this version is amazing! lol
However the autocomplete is broken :(One major change is the format of the cmd file in "~/.aliasme". The first two lines in cmd are still the same as before. The name of the alias and then the command itself. However, on the third and every line divisible by 3 is now the "cmdType" for each alias. There are 4 cmd types Default, Dynamic, Fill, and Multi Fill.
There were a few functions that were modified to accommodate the change in the format of the cmd file.
The best part about this version is that you now have access to dynamic commands and you don't need keywords like D, Fill, MF, etc to use them. You assign a cmdType when adding a new alias. For example, "al add convert MF 'mv ?.md ?.txt'". "convert" is now a Multi Fill command. To call it use "al convert filename" and it changes a file from .md to .txt.
Here's is a visual example.