Skip to content
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

more features for termux-storage-get #497

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

knyipab
Copy link

@knyipab knyipab commented Mar 13, 2022

This goal of this request is to enrich termux-storage-get to what "Open ..." and "Open Folder ..." usually do in PC, while keeping backward compatibility.

See show_usage() of pull request on termux-api-package for more detailed usage.

@knyipab
Copy link
Author

knyipab commented Mar 13, 2022

The folder function highly resembles SAF one, but termux-storage-get focuses on the concept of "Open ...", or perhaps termux-storage-get should be better do this job.

Also, let's consider this use case: user can pick one or multiple file(s) calling termux-storage-get, get URI(s) from stdout, and then manipulate the file URI(s) with termux-saf-* functions.

Therefore, please consider to adopt the changes, perhaps partly. Or even integrating it SAF as something like termux-saf-open would also be great.

@tareksander
Copy link
Member

I haven't tried it out but the code looks good to me.

@cunlem
Copy link

cunlem commented Sep 11, 2022

Wow this looks super useful. So many missing features have been implemented. Any chance we get this thing merged?

@tathastu871
Copy link

tathastu871 commented Jun 16, 2024

This seems incredibely useful. Termux is all about automation at first for most users rather than using seperate app that cost money like tasker.

storage-get from api lib can allow to open file picker and selected multiple files by user gets return as realpath as array we can do a lot of file operations

currently we have to lean upon bash select menus or tui tools like dialog etc but thats not easy option specially for novice. Also when we have to select files scattered in long list of 100s of files in directory scrolling and selecting files in tui is tedious

leveraging android ui file picker allows quickly selecting scatterred files in folder

if Devs just implement activity manager like tool but which supports getActivityResult() it would open a hell lot of ui automation facilities using termux

hope some dev reads this and takes some initiative

@Grimler91
sorry to ping dev just needed your attention to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants