Wedmer / cargodock

A file manager for Sailfish devices
GNU General Public License v2.0
2 stars 2 forks source link

Txt Viewer/Editor #9

Closed ghost closed 5 years ago

ghost commented 6 years ago

Viewing a .txt file is very hard. I have to scroll right, right, right and back and so on. Could you tell your viewer to convert the text to fit the screen?

ghost commented 6 years ago

What about an "open with" option?

Wedmer commented 6 years ago

I'm working on "tools" list that can be used to open files. As directly using of libcontentaction isn't allowed by Harbour rules, I can't check which files have registered types in the system.

Wedmer commented 6 years ago

Tools added You can use external editor now. Tested with tIDE

ghost commented 6 years ago

Uhh. Hard stuff. How do I add the Jolla documents app for example? Does it also work with android apps?

Wedmer commented 6 years ago

It can work with applications you can start from console. For Sailfish Office command line in settings will be sailfish-office %1. MIME based file handling will be added when I have free time.

ghost commented 6 years ago

Okay, that works. Thanks a lot. But now it's going to be complicated: I figured out how to open a Android App in the terminal. I own an Android Office app called TextMaker that can edit copy paste etc. doc, docx etc. I can start it with apkd-launcher "/data/app/softmaker.applications.textmakertrial-1.apk" softmaker.applications.textmakertrial/softmaker.applications.textmakertrial.TextMaker That also works in Cargo Dock. But if I add the %1 nothing happens. Without %1 the app start without opening the choosed document. How/Where can I add the %1? The Usage of apkd-launcher is: apkd-launcher <apkfile> <package>/<activity>

Wedmer commented 6 years ago

It seems that this app can't open files in this way or access is denied.

ghost commented 6 years ago

What a pitty. Thanks a lot for your patience.

ghost commented 6 years ago

And thanks for the Tool Feature. It's very helpfull

Wedmer commented 6 years ago

Anyway mime-based file opening will be added, so Android apps will be usable.

ghost commented 6 years ago

Wedmer, i just have see after the new update of sfos 2.2 it seems the tools options dont open a file anymore with %1 i try it with sailfish-office and harbour-editor but none opens anymore the file...

Wedmer commented 6 years ago

I can't test it before 2.2 release for Jolla 1.

Wedmer commented 6 years ago

Tools feature works for me on 2.2

Wedmer commented 5 years ago

No response for a long time. Some functionality was implemented.