“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:
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:
Known bugs:
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:
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
Version 0.3.3
0.3.1
0.3
0.2.3
0.2.2
0.2.1
0.2
0.1
Comments
Termitebug
Mon, 2022/07/04 - 14:16
Permalink
@GoAlexander could you disable Sailjail? I can't save anything to a file.
_David_
Sun, 2022/04/17 - 14:32
Permalink
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
Tue, 2021/07/27 - 13:52
Permalink
Hello. I miss this amazing app in Aarch64! I can not use because I upgraded my ohone to X10II
GoAlexander
Tue, 2021/07/27 - 13:58
Permalink
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
Tue, 2021/07/27 - 19:02
Permalink
ok, here you go...
https://mega.nz/file/k18WXA7C#ZsfOogT0KD4EVG18ZShc3wZ-0-4prFL9HKaA0C7teqU
GoAlexander
Wed, 2021/07/28 - 00:33
Permalink
Thanks! I uploaded rpm to the openrepos and Jolla harbour (still in QA in Jolla harbour).
levone1
Tue, 2021/07/27 - 19:03
Permalink
(edit)...
levone1
Tue, 2021/07/27 - 13:39
Permalink
Perfect now... I will upload rpm today. Thanks
GoAlexander
Tue, 2021/07/27 - 13:56
Permalink
Great, my fault forgot to merge latest changes to the master :)
Thanks, will wait you
levone1
Tue, 2021/07/27 - 05:43
Permalink
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
Sat, 2021/07/03 - 20:20
Permalink
I commented out line with "onError" and working now. Maybe will be fine like that...
GoAlexander
Sat, 2021/07/03 - 22:34
Permalink
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
Sun, 2021/07/25 - 13:08
Permalink
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
Mon, 2021/07/26 - 15:42
Permalink
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
Tue, 2021/07/27 - 04:07
Permalink
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
Tue, 2021/07/27 - 10:37
Permalink
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
Tue, 2021/07/27 - 09:57
Permalink
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
Mon, 2021/07/26 - 00:49
Permalink
Thanks
levone1
Thu, 2021/07/08 - 03:45
Permalink
Thanks for reply. Great app...
levone1
Sat, 2021/07/03 - 20:14
Permalink
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
Wed, 2021/06/16 - 04:51
Permalink
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
Mon, 2020/05/11 - 06:50
Permalink
Thanks a lot for the update!
GoAlexander
Mon, 2020/05/11 - 14:43
Permalink
All "thanks" should be directed to the @Bobsikus :)
He made great work!
Bobsikus
Mon, 2020/05/11 - 14:35
Permalink
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
Tue, 2018/04/24 - 12:55
Permalink
I re-uploaded version 0.8.4 today. Added a feature: "Reduce space below Settings MenuItem (on FirstPage)".
objectifnul
Thu, 2018/01/25 - 18:51
Permalink
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
Thu, 2018/01/25 - 20:43
Permalink
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
Fri, 2018/01/26 - 23:00
Permalink
Yes, I know. Sometimes it works, sometimes it doesn't. Who knows why...
GoAlexander
Wed, 2018/01/31 - 21:51
Permalink
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
Wed, 2018/02/07 - 17:16
Permalink
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