Editor.

Rating: 
4.84
Your rating: None Average: 4.8 (25 votes)

“Editor” is the application that helps you to edit your documents and code. It has all the features of text editor and something more. There is a list of current features and it continues to increase:

  • Toolbar near keyboard
  • Number of lines and symbols counter
  • R-only: read-only mode (disables keyboard)
  • Autosave
  • Undo\redo
  • Search
  • Tab button
  • History
  • Code highlighting (javascript, qml, python and sh languages)
  • MIME-support

The application meets all basic requirements while working with documents.

Experimental:
-There is capability of numeration of lines. But this feature is experimental one that is why it works only for NOT loaded documents.

Some tips and comments:

  • Autosave feature stores your text in special file ending with ~, located in the directory where your original file is located. Don`t be afraid to forget to save the file or accidentally exit the app!
  • Don`t open files which ending with ~. The last version of document will be loaded automatically. So load only(!) original files.

Known bugs:

  • Combobox of tab can not be dynamically changed. It needs to reopen SettingsPage to see the changes.

Source code: https://github.com/GoAlexander/harbour-editor

Do not hesitate to contact me in case of any questions / suggestions!

If you want to support the developer:

  • Star the repository at the github 
Screenshots: 
Application versions: 
AttachmentSizeDate
File harbour-editor-0.1-1.armv7hl.rpm85.29 KB23/11/2016 - 21:05
File harbour-editor-0.1-1.i486.rpm85.3 KB23/11/2016 - 21:05
File harbour-editor-0.2-1.armv7hl.rpm85.32 KB24/11/2016 - 20:03
File harbour-editor-0.2-1.i486.rpm85.34 KB24/11/2016 - 20:03
File harbour-editor-0.2.1-1.armv7hl.rpm85.03 KB25/11/2016 - 18:52
File harbour-editor-0.2.1-1.i486.rpm85.01 KB25/11/2016 - 18:52
File harbour-editor-0.2.2-1.i486.rpm85.11 KB26/11/2016 - 17:05
File harbour-editor-0.2.2-1.armv7hl.rpm85.08 KB26/11/2016 - 17:05
File harbour-editor-0.2.3-1.armv7hl.rpm85.84 KB28/11/2016 - 00:21
File harbour-editor-0.2.3-1.i486.rpm85.88 KB28/11/2016 - 00:21
File harbour-editor-0.3-1.armv7hl.rpm85.95 KB30/11/2016 - 18:47
File harbour-editor-0.3-1.i486.rpm85.93 KB30/11/2016 - 18:47
File harbour-editor-0.3.1-1.armv7hl.rpm86.12 KB04/12/2016 - 20:10
File harbour-editor-0.3.4-1.armv7hl.rpm87.8 KB08/12/2016 - 17:53
File harbour-editor-0.3.4-1.i486.rpm87.87 KB08/12/2016 - 17:53
File harbour-editor-0.3.5-1.armv7hl.rpm91.15 KB13/12/2016 - 21:13
File harbour-editor-0.3.5-1.i486.rpm91.17 KB13/12/2016 - 21:13
File harbour-editor-0.4-1.armv7hl.rpm93.38 KB27/12/2016 - 16:58
File harbour-editor-0.4-1.i486.rpm93.39 KB27/12/2016 - 16:58
File harbour-editor-0.4.1-1.armv7hl.rpm93.71 KB07/01/2017 - 12:58
File harbour-editor-0.4.1-1.i486.rpm93.76 KB07/01/2017 - 12:58
File harbour-editor-0.4.2-1.armv7hl.rpm95.21 KB21/01/2017 - 19:16
File harbour-editor-0.4.2-1.i486.rpm95.29 KB21/01/2017 - 19:16
File harbour-editor-0.4.3-1.armv7hl.rpm95.61 KB14/02/2017 - 13:41
File harbour-editor-0.4.3-1.i486.rpm95.64 KB14/02/2017 - 13:41
File harbour-editor-0.4.4-1.armv7hl.rpm58.76 KB08/03/2017 - 16:50
File harbour-editor-0.4.4-1.i486.rpm58.81 KB08/03/2017 - 16:50
File harbour-editor-0.5-1.armv7hl.rpm57.47 KB31/03/2017 - 12:34
File harbour-editor-0.5-1.i486.rpm57.24 KB31/03/2017 - 12:34
File harbour-editor-0.7-1.armv7hl.rpm71.34 KB06/05/2017 - 14:48
File harbour-editor-0.7-1.i486.rpm74.25 KB06/05/2017 - 14:48
File harbour-editor-0.7.1-1.armv7hl.rpm71.63 KB12/05/2017 - 16:03
File harbour-editor-0.7.1-1.i486.rpm74.53 KB12/05/2017 - 16:03
File harbour-editor-0.7.2-1.armv7hl.rpm73.82 KB18/05/2017 - 18:28
File harbour-editor-0.7.2-1.i486.rpm77.16 KB18/05/2017 - 18:28
File harbour-editor-0.7.3-1.armv7hl.rpm74 KB24/05/2017 - 12:27
File harbour-editor-0.7.3-1.i486.rpm77.35 KB24/05/2017 - 12:27
File harbour-editor-0.8-1.armv7hl.rpm79.31 KB09/07/2017 - 13:56
File harbour-editor-0.8-1.i486.rpm82.61 KB09/07/2017 - 13:56
File harbour-editor-0.8.1-1.armv7hl.rpm78.65 KB28/08/2017 - 23:35
File harbour-editor-0.8.1-1.i486.rpm81.91 KB28/08/2017 - 23:35
File harbour-editor-0.8.2-1.armv7hl.rpm78.67 KB03/09/2017 - 13:54
File harbour-editor-0.8.2-1.i486.rpm81.94 KB03/09/2017 - 13:54
File harbour-editor-0.8.3-1.armv7hl.rpm78.03 KB04/01/2018 - 15:04
File harbour-editor-0.8.3-1.i486.rpm81.21 KB04/01/2018 - 15:04
File harbour-editor-0.8.3-1.armv7hl.rpm78.06 KB07/07/2021 - 23:46
File harbour-editor-0.8.3-1.i486.rpm81.29 KB07/07/2021 - 23:46
File harbour-editor-0.8.4-1.armv7hl.rpm78.42 KB24/04/2018 - 12:54
File harbour-editor-0.8.4-1.i486.rpm81.63 KB24/04/2018 - 12:54
File harbour-editor-0.8.5-1.armv7hl.rpm78.93 KB06/05/2018 - 14:21
File harbour-editor-0.8.5-1.i486.rpm82.18 KB06/05/2018 - 14:21
File harbour-editor-0.9.0-1.armv7hl.rpm96.69 KB10/05/2020 - 18:47
File harbour-editor-0.9.0-1.i486.rpm100.3 KB10/05/2020 - 18:47
File harbour-editor-0.9.1-1.armv7hl.rpm84.8 KB26/07/2021 - 15:40
File harbour-editor-0.9.1-1.i486.rpm88.09 KB26/07/2021 - 15:40
File harbour-editor-0.9.1-1.aarch64.rpm107.86 KB28/07/2021 - 00:28
Changelog: 

Version 0.9.1

Community reported fixes:
- Fixed hardcode of home folder
- Fixed onError bugs
- Updated translations

Note: I built it on 1701 Sailfish SDK because I have no ability to install newer right now. Tested on Jolla C. If somebody can re-build binaries on the latest SDK or implement CI in the repository it would be nice!

aarch64 contributed by levone1 from openrepos. Thanks!

Version 0.9

ADDED:
- Encoding manipulations
- opening different files than utf-8 should work better, you can specify your region or direct custom encoding type (by Python standards) (Asia cooperation needed, what are best encodings you use in Korea,China, Japan etc.)
- possibility to open file with different encoding
- possibility to save file with different encoding

CHANGED:
- Re-creation of the UI (a bit more informative and more minimized)
- On Ambience Theme you can pick your own color for the UI (buttons and some labels, but not all)
- better Ambience of the OS manipulation, mainly resolving differences on change between light or dark type of ambience
- few icons changed, button's icons have the same color as button's text
- "copy file path" - when you extend the menu on right side you have the path to file and encoding, just tap there to copy

FIXED:
- Line count works much more better(!), recounting on changing Landscape/Portrait mode

Known bugs:
- Combobox of tab can not be dynamically changed. It needs to reopen SettingsPage to see the changes.
 

Version 0.8.5 -Fix bug with default editor while opening SettingsPage #94 -Remove second button of default app in SettingsPage -Add option to disable autosave -Add donation button in RUB -Updated spanish translation (author: Caballlero) -Updated russian translation (author: GoAlexander)

 

Version 0.8.4 -Reduce space below Settings MenuItem (on FirstPage) -Add more font sizes -Fix bug with wrong cursor position after the pressing Tab button -Fix History element deleting -Updated spanish translation (author: Caballlero)

 

Version 0.8.3
-Add search in "Quick note"
-Telegam-button deleted
-Notification if file cannot be saved or opened
-Some code cleaning and refactoring

 

Version 0.8.2
-Startup fix

Version 0.8.1
-Fixed saving of background (HURA!)
-Fixed deleting of .json file (you can now delete only the file instead of folder)
-History and Settings stored in two separate files now (but the location is as always: ~/.local/share/harbour-editor)
-Code cleaning

-updated russian translation (author: GoAlexander)
-updated spanish translation (author: Caballlero)
-updated swedish translation (author: eson57)

Note: In this update your history and settings will be droped because I changed the destination files (to simplify app development). If you want you can copy the history (and ONLY the history) from the file ~/.local/share/harbour-editor/editor.json to ~/.local/share/harbour-editor/history.json

 

Version 0.8
-first changes for UI 2.0
-A lot of improvements in SearchRow
-New icons by @gri4994
-[CoverPage] Added button to open editor only in QuickNote mode
-[AboutPage] Added button with link to the telegram group of Editor.
-[AboutPage] Added current version of app (thanks for the idea @Olf0) + some small changes
-Some minor changes in fonts, texts etc...
-updated spanish translation (author: Caballlero)

Note: Big thanks @Olf0 and @Self-Perfection for the feedback.

 

Version 0.7.3
-[HistoryPage] Added description in header
-Fix of issue #75 (Save as does not work)
-updated spanish translation (author: Caballlero)
-updated swedish translation (author: eson57)

Version 0.7.2
-[New feature] Added button "Quick note". This button opens special lightweight page on which you can write your notes. Notes are stored in automatic(!) way when you type your text(!) in special file in ~/Documents/harbour-editor-quickNote.txt.
-[New feature] [SettingsPage] Implemented MIME support. You can set Editor as default editor in your system.
-Some minor changes

 

Version 0.7.1
-Fix of broken auto-save feature

-updated spanish translation (author: Caballlero)
-updated swedish translation (author: eson57)

Version 0.7
-[New Feature] Syntax highlighting can be dynamically enabled/disabled in pull menu
-[New Feature] Initial version of highlighting for javascript, python, qml and sh(!) languages (ported from project tIDE + some improvements)
-[Improvement] BusyIndicator while loading new document
-[Improvement] SearchField can be opened by pressing of button in pullmenu. It will be open on position of header.
-[Improvement] Font size in search field is bigger
-[Improvement] Icon of search button highlighted if search row is enabled
-[Improvement] Updated design of cover
-[Improvement] External row is disabled if header is enabled (in pullmenu)
-Compiled with new version of Sailfish OS SDK
-Updated credits in AboutPage

-updated icon (author: gri4994)
-updated spanish translation (author: Caballlero)
-updated swedish translation (author: eson57)
-updated dutch translation (author: d9h02f)

Note: It can be some performance problems because of code highlighting feature.

Version 0.5

-new icon (author: gri4994)
-[HistoryPage] Fixed some bugs while deleting. History is fully stable now!
-[HistoryPage] Added wrapMode to the list
-[HistoryPage] Text is smaller
-refactoring of SearchRow (it is separate component now)
-[New Feature] [SettingsPage] added option to make editor space dark (ported from project tIDE)
-[New Feature] New design of cover: added icon, words counter, name of document (UI logic is partly from project tIDE, author of functions for name and counter is @esinayana)
-[New Feature] Cover autoupdating

-fixed section Translations in .pro file (polish and dutch translations added)
-Fixed all translations after refactoring
-updated spanish translation (author: Caballlero)
-updated swedish translation (author: eson57)

Note/known bug: Unfortunately setting of background can't be saved (between restarts of app) because I had some problems while migrating from json to SQLite. I wanted faster to share with you all these nice features and made this decision. Sorry for that bug. In future updates app will migrate completely to SQLite and this bug will be fixed.

Version 0.4.4
-refactoring of MenuRows (they are separate components now)
Note: It needs to update translations (mainly to delete <type="unfinished"> from the files)
-new icon
-Fixed old bug when the document is not added to the history (Now it is added very very fast after opening)
-updated russian translation (author: GoAlexander)
-updated polish translation (author: atlochowski)
-updated swedish translation (author: eson57)

Version 0.4.3
-Possibility to change tabType (\t, 2/4/8 spaces) (Known bug: Combobox of tab can not be dynamically changed. It needs to reopen SettingsPage to see the difference.)
-Fixed ability to swype in SettingsPage
-Added "Push to top" in HistoryPage (long tap on list item)
-Fixed some bugs while deleting items in HistoryPage
-Search improved (backport from project tIDE)
-Added notification "File path copied to the clipboard"
-No upper case in search by default and added highlighting of read-only icon (if it turn on/off) (author: rabauke)
-Created dutch translation (author: Nathan Follens)

Version 0.4.2
-deleting of file path in HistoryPage (long tap on list item)
-updated spanish translation (author: Caballlero)
-created german translation (author: rabauke)
-updated french translation (author: Quent-in)
-updated swedish translation (author: eson57)

Version: 0.4.1
-updated french translation (author: Quent-in)
-updated swedish translation (author: eson57)

Version 0.4
-implemented History
    Now you can open previous opened documents very quickly!
    Two paths with $HOME are the garbage. In next updated I want to implement deleting in History. So you will be able to edit your history.
-new icon for tab (author: Ancelad)
-file path can be copied to the clipboard
-implemented undo/redo
-implemented initial version of search (ported from project tIDE)
-updated AboutPage
-added polish translation (author: atlochowski)
-updated russian translation (author: GoAlexander)
-updated french translation (author: Quent-in)
-updated spanish translation (author: Caballlero)
-updated swedish translation (author: eson57)

Version 0.3.5
-added french translation (author: Quent-in)
-added espaniol translation (author: Caballlero)
-added russian translation (author: GoAlexander)
-updated AboutPage (added section translators)

 

Version 0.3.4

  • added button "Tab" (icon is temporary)

Version 0.3.3

  • added python in dependencies (should fix issues when app crushes while booting)
  • different fixes to reach Jolla Store

0.3.1

  • swedish translation updated (thanks eson57)
  • implemented opening from commandline (Example: harbour-editor /path/to/file.txt) (thanks eekkelund)
  • added background for TextField in the page for "Save as"

0.3

  • redesigned visible current path to save (now on place of label of pulley menu)
  • implemented saving of settings! (the settings will be saved on you drive if you return to the FirstPage)
  • enabled(!) showing of hidden files in file browser as option (Warning! Needs Sailfish OS >= 2.0.5.6)

0.2.3

  • added visible current path to save (In the future will be redesigned. Write your ideas how to do it! :-) )
  • again some small changes in code

0.2.2

  • small improvements in ComboBoxes
  • Removed "*" for edited and not saved document. Now button "Save" is unactive if document saved. GUI is more uncluttered!

0.2.1

  • implemented showing of hidden files in file browser as option (but this feature is disabled because it needs later version of SFOS (In the future I will enable it))
  • Fixed bug with position of textArea if you turn off "quick actions menu" (you will have more space for your text!)
  • Again some code cleaning
  • various small changes in code
     

0.2

  • flag for current status of document saved/unsaved (* in quick actions menu)
  • new button: "new" (it deletes all recent notes and empties path for save)
  • some notification improvements (lile "Can`t save document!")
  • controllable font size in SettingsPage
  • controllable font type in SettingsPage
  • cleaning of code!

0.1

  • Initial release

Comments

Termitebug's picture

@GoAlexander could you disable Sailjail? I can't save anything to a file.

_David_'s picture

I have a link pointing to my SD card from /home/defaultuser called "sdcard".  I have no idea whether it's a hard or soft link.

I saved a file in Editor whilst half asleep to /home/defaultuser/sdcard/1.txt (according to History tab).  I now cannot find it nor its backup.  Is there any way to recover it?

zipotron's picture

Hello. I miss this amazing app in Aarch64! I can not use because I upgraded my ohone to X10II

GoAlexander's picture

Hi, you can build it from source or wait some hours. levone1 suggested to send me the rpm for aarch64. I will publish it once I receive it.

levone1's picture
GoAlexander's picture

Thanks! I uploaded rpm to the openrepos and Jolla harbour (still in QA in Jolla harbour).

levone1's picture

(edit)...

levone1's picture

Perfect now... I will upload rpm today. Thanks

GoAlexander's picture

Great, my fault forgot to merge latest changes to the master :)
Thanks, will wait you

levone1's picture

So I found that in line 200, there was a comment-out, but you also need it in 201 and 202, so it's like this
//onError: {
//console.log("###", fileName, error)
//}

levone1's picture

I commented out line with "onError" and working now. Maybe will be fine like that...

GoAlexander's picture

Hi levone1,

Considering requests unfortunately I don't have time for the active support right now but I am open for any pull requests or patches.

I will try to make a look on the bug with onError next week but I have only Jolla C. In addition I got a message that the app rejected from harbour store because of the hardcoded path (nemo). I will try to make a look on it too.

kan's picture

My attempt to fix bugs:
- Change hardcoded /home/nemo for StandardPaths.home
- Fix OnError
- Attempt to fix SaveAs logic(this needs to have alook at, sth is broken)

diff for qml/FileChooserPage.qml

138c138
<             text: "/home/nemo"
---
>             text: StandardPaths.home
145,146c145,146
<               if(id_textfield.text!="/home/nemo"){
<                 id_textfield.text="/home/nemo"; onManual();
---
>               if(id_textfield.text!=StandardPaths.home){
>                 id_textfield.text=StandardPaths.home; onManual();
194c194
<         path: "/home/nemo"
---
>         path: StandardPaths.home
200,202c200,202
<         onError: {
<             console.log("###", fileName, error)
<         }
---
> //        onError: {
> //            console.log("###", fileName, error)
> //        }

diff for qml/SaveAsPage.qml

49c49,50
< path: filePath != "" ? filePath.replace((filePath.split("/")[(filePath.split("/").length)-1]),"") : "/"
---
> // path: filePath != "" ? filePath.replace((filePath.split("/")[(filePath.split("/").length)-1]),"") : "/"
> path: filePath != "" ? filePath.replace((filePath.split("/")[(filePath.split("/").length)-1]),"") : StandardPaths.home
52,54c53,55
< onError: {
< console.log("###", fileName, error)
< }
---
> // onError: {
> // console.log("###", fileName, error)
> // }
69c70,71
< text: filePath != "" ? filePath : "/"
---
> // text: filePath != "" ? filePath : "/"
> text: filePath != "" ? filePath : StandardPaths.home + "/"

GoAlexander's picture

I published a fix (0.9.1) with suggested fixes. I hope it will work now. I tested on Jolla C - all is ok. If somebody can re-build it with latests SDK it would be nice. I will re-upload binaries in this case.

levone1's picture

Thanks for update. My device is aarch64, so I built from source linked in description, but still getting 'couldn't load page' error. Is the source updated?
It's no problem for me; I can fix it... Just wanted to report.

GoAlexander's picture

Possibly I understood the issue, please try to re-compile with this commit: https://github.com/GoAlexander/harbour-editor/commit/b3ff03c66a74c19dcd0...

Does it work? If yes can you share aarch64 rpm release binary please? I want to add it to the repos and harbour.

GoAlexander's picture

Strange. I don`t have aarch64 device to test it. How did you fix that? If you have a fix I can update the source.

GoAlexander's picture

Thanks

levone1's picture

Thanks for reply. Great app...

levone1's picture

Any help with this -
I compiled from source for aarch64, and builds and runs fine, but when I go to open a file, the sxreen is blank, and shows "could not load page". Output in termunal is harbour-edito
r
[D] unknown:0 - Using Wayland-EGL
library "libGLESv2_adreno.so" not found
library "eglSubDriverAndroid.so" not found
[D] unknown:0 - Got library name: "/usr/lib64/q
t5/qml/io/thp/pyotherside/libpyothersideplugin.s
o"
[D] getSettings:199 -
headerVisible:true
lineNumbersVisible:false
fontType:'Ubuntu'
fontSize:48
tabType:' '
showHiddenFiles:true
darkTheme:false
autosave:false
encRegion:'Unicode'
encPreferred:'utf-8'
customButtColor:''
[D] onClicked:43 - true
[W] unknown:1283 - file:///usr/lib64/qt5/qml/Sai
lfish/Silica/PageStack.qml:1283:13: QML Animated
Loader: (file:///usr/share/harbour-editor/qml/pa
ges/FileChooserPage.qml:200:9: Cannot assign to
non-existent property "onError"
onError: {
^)

Thanks

levone1's picture

Hi. Thanks for updates. .. Now that tIDE is not working anymore as of 4.0, (top menu won't show because of some change in code having to do with 'qtrectangle' and qml animatedloader), I pretty much depend on this. I had a couple of requests. .. 1) Could you make highlight option be persistent via settings? 2) Could you enable back-swipe to previous directory, after editing file? What I find difficult is having to browse through files from scratch every time I finish one, when the next file I want to edit is in the same directory, (I did edit my chooser page qml to have the directories I use most, but the layout only allows for 3 entries, and then the directory entries start showing on top of the history entries. Haven't figured out the code to change that). Then, after opening the file, having ro tap 'show toolbar' then 'more' arrow, then highlight button, over and over. I think it would be nice to have easier access.
Top bar in tIDE works great, but now is broken... Maybe something like that. ..
Thanks again

csg1976's picture

Thanks a lot for the update!

GoAlexander's picture

All "thanks" should be directed to the @Bobsikus :)

He made great work! 

Bobsikus's picture

hello, thanks, I have made recent changes. I also plan to release "Run as Root" package for the editor for making easier to code QML inside phone directly :)

GoAlexander's picture

I re-uploaded version 0.8.4 today. Added a feature: "Reduce space below Settings MenuItem (on FirstPage)".

objectifnul's picture

Hi, so far, the only way I found to edit a file that is not in the /home/nemo/ tree is using terminal command like 'harbour-editor /media/sdcard/15F1-1154/Documents/mydoc.txt'

Isn't there an easier method to do that?

GoAlexander's picture

Hi,

You can also to make Editor your default editor and open this file with a file manager like File Browser.

Currently there isn`t any another way to do that :)

objectifnul's picture

Yes, I know. Sometimes it works, sometimes it doesn't. Who knows why...

GoAlexander's picture

I think I know why it works sometimes... :)
Do you open NOT only .txt files?

MIME association works only with .txt files. I have plans to extend it but I have a little time last time...

Which types of files do you open?

objectifnul's picture

Any text/plain files, with or without .txt extension (example: /etc/hosts)

Also, I have set this statement in mimeapps.list:
[Default Applications]
text/plain=harbour-editor.desktop

Pages