OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: cptpike on November 04, 2007, 10:29:50 pm

Title: Open File With Text Editor
Post by: cptpike on November 04, 2007, 10:29:50 pm
Okay, so I'm a noob with linux and the zaurus.  I'm running cacko 1.23 on a c1000.  What's the command to open a file with a text editor in konsole?  I've tried midnight commander and can open the file but can't figure out how to save it.  Is there a better text editor built into cacko?
Title: Open File With Text Editor
Post by: tml on November 04, 2007, 11:44:02 pm
Quote from: cptpike
What's the command to open a file with a text editor in konsole?

I don't use cacko but on sharp rom the editor is "textedit".

zeditor works quite well too. If you're willing to work on the console, emacs and vim packages are around somewhere.
Title: Open File With Text Editor
Post by: kurochka on November 05, 2007, 08:26:38 am
There is also Tree!Explorer QT Plus+.  Yes, that's its name.
It's a combo of a file manager and a text editor, and it works perfect.  It's not free though.

http://mobile.handango.com/zaurus/Platform...roductId=113191 (http://mobile.handango.com/zaurus/PlatformProductDetail.jsp?siteId=1216&catalog=0&productType=2&platformId=9&sectionId=0&productId=113191)

http://www.tree-explorer.com/zausl/teqt_p.php (http://www.tree-explorer.com/zausl/teqt_p.php)

http://hpcgi2.nifty.com/taku2001/zau/texpl...qt_p/top_en.cgi (http://hpcgi2.nifty.com/taku2001/zau/texplorerqt_p/top_en.cgi)
Title: Open File With Text Editor
Post by: sidmoraes on November 05, 2007, 11:07:07 am
Quote from: cptpike
Okay, so I'm a noob with linux and the zaurus.  I'm running cacko 1.23 on a c1000.  What's the command to open a file with a text editor in konsole?  I've tried midnight commander and can open the file but can't figure out how to save it.  Is there a better text editor built into cacko?

In console:

more <file> -> only to see
less <file> -> only to see
vi <file> -> this is an editor, present in every unix.
joe <file> -> another editor, not in all machines, you have to install, you can see the help of this editor with "ctrl-k + h"

There are another options...
Title: Open File With Text Editor
Post by: cptpike on November 05, 2007, 01:03:37 pm
Thanks everyone, I appreciate the help.  When using vi.  What's the command to save a file?
Title: Open File With Text Editor
Post by: jfv on November 05, 2007, 04:25:20 pm
To save and quit in vi you can do either ZZ or :wq<return>. To save and
continue editing do :w<return>. All this in command mode, which on the Zaurus is achieved by hitting the cancel key.
Title: Open File With Text Editor
Post by: tml on November 06, 2007, 01:04:18 am
Quote from: jfv
To save and quit in vi you can do either ZZ or :wq<return>.

:x would be another option (write only if the file has changed and exit/quit).