We have moved to a new Sailfish OS Forum. Please start new discussions there.
46

Feature request: text editor and overall support for .txt files [duplicate]

asked 2014-01-16 19:39:04 +0300

ZZB gravatar image

updated 2014-02-16 11:48:41 +0300

foss4ever gravatar image

I'd like to edit text files on my phone. If the notes app could import and export text files, that would be fine. Only way to even view these exotic and novel things is in the File Browser.

edit retag flag offensive reopen delete

The question has been closed for the following reason "duplicate question" by foss4ever
close date 2014-02-16 11:49:25.421614

Comments

Total Commander has a built in editor but you can only save files in /mnt/sdcard. Or so it seems (saving on /home/nemo doesn't work).

Nux ( 2014-01-16 19:49:56 +0300 )edit

If I am not mistaken there is vi, and you get a terminal with developer mode. But that might not be exactly what you hope for ;)

Philippe De Swert ( 2014-01-17 00:55:28 +0300 )edit
2

I am a vi guy in fact, but no, vi in Fingerterm is not exactly what I'm looking for. Not very touch UI friendly. :)

ZZB ( 2014-01-17 08:43:14 +0300 )edit

I want it too. What and where is that Total Commander? I tried Midnight Commander but it doesn't work.

lasse ( 2014-02-02 21:54:55 +0300 )edit

Total Commander is an Android application. It's free and available on Yandex.store. But as I said it has it's limits - cannot edit documents outside of Android home.

Nux ( 2014-02-04 01:38:03 +0300 )edit

2 Answers

Sort by » oldest newest most voted
2

answered 2014-02-06 20:32:20 +0300

Deonith gravatar image

updated 2014-02-07 12:57:54 +0300

I also feel that this is a major feature missing for the Jolla still and if possible should please be targeted for the next (February?) update. The most simple and basic solution would be the option to export files from the native notes app in *.txt format instead of *.vnt. So far the seemingly impossible task is, once I have written something on my phone, how the heck do I get it on my computer in a reasonable way??

Possibilities are:

1) Use the exported vnt-file and convert it to a txt-file. I am using Linux so this script was my hope: https://bitbucket.org/eug48/vnote2txt/downloads. And this is how it's used: https://www.kubuntuforums.net/showthread.php?59935-A-Kubu-script-for-opening-vnt-Vnote-files. It seems to work fine until the actual conversion, where it fails to produce a txt-file for me. Maybe it works for others, worth trying.

2) Download an Android app for text editing. The "Lesser Pad" editor from F-Droid for example is done quite well. The problem: It saves the files in the Android environment. The seemingly only way to get it out of there currently is to become root and move the saved txt-file in terminal. If you move it to your exernal SD card you can then take out the card from your phone and plug it into your computer for moving - cumbersome to say the least! If you move it to nemo/Documents it can't be read by the Documents viewer app, BUT you can add it as an attachment to an email and send it out.

Only that one of the main reasons for me to buy the Jolla (switched from iPhone, man, was I spoiled) was to exactly avoid any file-transfer over the internet. Since Linux doesn't connect via USB properly (haven't managed to get it done after hours of trying with the SSH connection thingy), since sharing via Bluetooth only works if the Document viewer app can read the file, and since the MTP connections I have tried so far only give me access to the Jolla environment folders, I am quite desperate with this. So far, I can only offer these miserable workarounds and would be glad if someone could share a better idea here! Or even better, the next Sailfish update brings a better notes export or even an office app of some kind.

P.S. Another way to get document files out of (but not in) the Android environment is to use the native Sailbox app for dropbox support. Nice, but again, doesn't work offline.

edit flag offensive delete publish link more

Comments

1

I would like to have PyGTKEditor ported to Sailfish OS! https://github.com/khertan/pygtkeditor

Rolfa ( 2014-02-06 20:49:26 +0300 )edit
1

Putty works brilliantly on Windows fro an SSH link to the Jolla. Needs to have Developer Mode enabled.

Nano is an excellent text editor.

Richard

richardski ( 2014-02-06 20:56:08 +0300 )edit

@richardski Thanks, I heed your advice, collected information from different fora posts, installed Putty for Ubuntu but it doesn't wanna work. There are many posts about it already, but none of them is really descriptive and I would be really happy for a step-by-step approach for establishing such an SSH connection via USB for Linux.

Deonith ( 2014-02-07 00:38:52 +0300 )edit

@Rolfa Just tried that - it seems "hildon" package is not available for Mer. Or at least not in a package list for Jolla.

Nux ( 2014-02-07 15:01:52 +0300 )edit

hildon is afaik gtk2 based and gtk2 has afaik no support for wayland...

sebsauer ( 2014-02-16 05:11:11 +0300 )edit
7

answered 2014-02-09 02:45:27 +0300

ovekaaven gravatar image

updated 2014-02-09 03:09:08 +0300

There we go, I made a simple text editor for you:

https://openrepos.net/content/ovekaaven/tinyedit

(Let me know about stuff I should fix before I try to submit it to Harbour. At least it needs an icon, I suppose. Maybe there should be a different way to save than opening the pulley menu? I'm open for suggestions.)

edit flag offensive delete publish link more

Comments

1

Wonderful! Thank you!

ZZB ( 2014-02-09 14:11:52 +0300 )edit
1

Thank you from me also!

lasse ( 2014-02-09 15:27:31 +0300 )edit
1

thanks :) it appears there is nothing to be fixed. however i'm wondering if there is a way to edit files that requires root access.

User ( 2014-02-09 17:31:25 +0300 )edit

Probably stupid question ... How can the text editor be installed? Just downloading the harbour_tinyedit.rpm file and copying it into the usr/bin folder? Where will the .txt files be stored and how can they be brought to the computer?

Deonith ( 2014-02-09 20:35:33 +0300 )edit

I suppose that, to edit files owned by root, you could always copy them to your home directory (as nemo), edit them, and then copy them back (as root). I didn't plan to explicitly support editing such files, at least not in the first version, though I could perhaps look into it sometime.

ovekaaven ( 2014-02-09 22:15:57 +0300 )edit

Question tools

Follow
3 followers

Stats

Asked: 2014-01-16 19:39:04 +0300

Seen: 1,850 times

Last updated: Feb 09 '14