How to open the file in the shared folder via termux and edit it in the external app? #4262
Unanswered
jarofromel
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I run
termux-open ~/storage/shared/notes/file.org
and thefile.org
opens in the external editor. Then I want to edit it and save but I got the errorPermission Denial: writing ... uri .... requires RUN_COMMAND or grantUriPermission
.I am ready to continue with
RUN_COMMAND setup
as outlined below but still I wanted ask if I don't miss something. Is there easier way to edit the file (in the shared storage) opened via termux?It seems to me as very common use-case to send the file (in the shared storage) to external editor to edit it (I have a folder with many notes, I use
ripgrep
andfzf
to find the relevant note which I d' like to open and occasionally edit).To do my homework I investigated a bit
termux-open
gives the read permission, there are different kind of storage with different access rights, I need to setup RUN_COMMAND Intent if I like to write with other app to the termux Internal storageRUN_COMMAND
permission in termux instead of the calling app #3766)termux-share -a edit ~/storage/shared/notes/file.org
or someam
commands without succesI can of course edit the file in shell editor which I do (in
emacs, nano
) but the external editor (orgro
) is more pleasant on the mobile screen.Beta Was this translation helpful? Give feedback.
All reactions