Closed pyrocto closed 2 years ago
Also at the moment, openMedia will display a media player for mp3s but won't play them. The pdf viewer works.
Interesting idea, so we could build & bundle in some kind of CLI tool that leverages those escape sequences to talk to the UI?
Yes, exactly.
This is, as I wrote, a sketch. If someone would like to contribute a PR to my fork that resolves relative paths properly and fixes the sound player issue, then it might be worth submitting. Another option is to close it without submitting.
Closing as I'm archiving the project (announcement).
Regardless, thanks for digging into this and sharing your prototype :pray:
In the discussion at https://github.com/GitSquared/edex-ui/discussions/973#discussioncomment-374497, @branislavblazek asked
@Animus-Surge replied
This is an attempt to solve the problem using an OSC sequence. It is a work in progress, as I haven't bothered to do path resolution yet, but it illustrates the concept.
With this shell script:
one can provide the full path to a file and open it. For instance,
./openFile "/Users/stay/Library/Application Support/eDEX-UI/settings.json"
opens the json file in the built-in text editor.