TextEditor

A simple text editor for the Sailfish OS

View the Project on GitHub n9dyfi/texteditor-sfos

texteditor-sfos-fullsize TextEditor is a simple text editor application for the Jolla/Sailfish OS phones. It includes a minimalistic file browser for opening and saving files (currently there is no support for hidden files).

The application is released under the GPL3 license and the source codes are available on Github.

Installation

TextEditor is available in OpenRepos. You can use the OpenRepos Warehouse application to install the TextEditor.

Features

The figure below shows the edit view. The title bar displays the file name and the folder name. The bottom toolbar contains a quick save button and the file menu. The recent files button displays a list of recently opened files. texteditor-editpage-with-recentfiles The recent files page shows a list of file names and folder names of the 8 most recently accessed files. Just click the file name to open it. The recent files list will be saved into $HOME/.texteditor/recentfiles.dat when the application is closed. texteditor-recentfiles-page The file menu contains entries for opening a new file, opening an existing file and saving a file with a new name. Clicking About will display the application version and Quit will terminate the application. Swiping down will also terminate the application but in that case no warning will be issued for possible unsaved changes. texteditor-02 Clicking File>Open will open the file browser for selecting a file to edit. Clicking a folder in the browser will open that folder. The back button in the toolbar will go back to the previous folder. The refresh button will reload the folder contents. The toolbar menu can be used to cancel the browsing and go back to the editor. texteditor-03 To save the file with a new name select "Save As" from the File menu. The file browser will open. Select the target folder and write the file name to the text box above the browser window. Then either click enter in the keyboard or click the Save button in the title bar. texteditor-04

Getting the source code

You can download the source code for the TextEditor from Github. If you have Git, QtCreator IDE and SailfishOS SDK installed then you can open the TextEditor project directly from Github. Just start QtCreator and select Create Project…>Project from Version Control>Git Repository Clone. The Clone URL is https://github.com/n9dyfi/texteditor-sfos.git.

Version history

Date Version Description
01-Sep-2016 1.0 Initial release.