antonmedv / walk

Terminal file manager
MIT License
3.24k stars 88 forks source link

Return selected files to bash #24

Closed antonmedv closed 1 year ago

antonmedv commented 1 year ago

I have an idea. Instead returning a new path for cd $(llama). Llama can return a bash script for execution!

eval $(llama)

This way llama can implement file selection and return something like this:

cd new-path;
export files="some-files";

And users can do something with the results:

ll
[..select some files, let say with a spacebar...]
rm -r $files
antonmedv commented 1 year ago

This complicates integration as it requires llama to know bash/fish/powershell scripting language.

No go.