This leads to the following request:
Allow aliases to have place holders to be filled by other alias' or commands results.
This means: Instead of $$2 or something you could write ${restartsearch new input} which would cause a new (virtual) instance of FARR to appear with input "new input". Somehow also certain plugin functions could be used this way.
Example:
my_alias: Hey, that's it | run ${restartsearch $$1 +somefolders}/bar.exe
which would do the following (I hope so):
1. I enter "my_alias foo" and press enter
2. The input is replaced by "foo +somefolders"
3. I see a list of results (assuming that +somefolders is a modifier which causes only music folders to be displayed)
4. I choose a certain folder, e.g. "C:/this_is_so_foo"
5. Technically the search returns to the alias, which would add "/bar.exe" and then run it:
6. run C:/this_is_so_foo/bar.exe is executed
If there were more ${...} parts these would have been opened before executing the command.
I guess the implentation of this might be much easier if the command stack I mentioned in
some suggestions about FARR would be implemented first.
I see that problems with recursion might occur here. Perhaps there should be a depth limit (the user himself could set it).