Emendo text editor

Programming issues and discussion
simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Emendo text editor

Postby simargl » 15 Sep 2013, 15:10

Emendo is a simple Gtk+3 text editor with syntax highlighting written in Vala.

NEW: Now, there is also a Windows version! Click

In alphaOS Emendo is already installed as default text editor, in other Arch Linux based distributions, you can install Emendo from the AUR with:

Code: Select all

packer -S emendo


Changelog:
3.0.0
tabs support,
new find dialog based on Gtk.Popover
improved replace dialog

2.2.0
use SearchBar, instead of Find dialog

2.1.6
option to change GtkSourceView styles from the Preferences dialog

2.1.5
use Gtk.Stack in Preferences dialog,
add option to set indent_width, and
option to select insert_spaces_instead_of_tabs (checkbutton).

2.1.0
added "Enable text wrapping" in Preferences dialog

2.0.6
show error dialog in case file saving has failed

2.0.3
added Preferences dialog
use ColorSelectionDialog instead of ColorChooserDialog

2.0.1
move away from classic toolbar and use Gtk.HeaderBar

1.0.5
drop Gtk.Stock (deprecated in GTK+ 3.10)

1.0
added per-user settings support
when program is closed it will write current: window width, window height, font and style to user settings file,
added font chooser dialog.

0.9.8
If selected text is hex color use it as default in the Color Chooser Dialog
Checkbutton match case added in Find and Replace dialogs
Color indicator in Search entry - text color changes to red if no matching text found
Find dialog change: find next match as you type (same as in firefox), this is different than in geany
Set focus to Gtk Entry in Find and Replace dialogs, and do not select text

0.9.7
Added Cancel button in offer to save changes Dialog

0.9.5
use File.load_contents instead of FileUtils.get_contents function
source view styles support defined in /etc/emendo/emendo.ini

0.8.2
when file is opened set cursor to start text position;
renamed config file to emendo.ini;
replace dialog functional (known bug: replace all at once action is not undoable).

0.5.0
added find dialog - fully functional, with options to search next or previous text match;
added replace dialog (only gui);
when emendo is started without opening file it will create empty temporary file /tmp/untitled;
added configuration file /etc/emendo/emendo.conf;
source view always has focus;
removed spacefm launcher.

Version 3.0.0
emendo3.png

Version 2.0.9
emendo2.png

Version 1.0.5
emendo1.png

Marv
Proficient
Posts: 81
Joined: 16 May 2013, 16:42

Re: Emendo text editor

Postby Marv » 23 Sep 2013, 15:17

emendo 0.8.1 installed. I've made it the default editor in my install of 11. Geany does a lot but has always refused to open some system files which are clearly text http://www.murga-linux.com/puppy/viewtopic.php?t=88778 so I've always had to have another editor on board to do just that. Emendo does that ok and is clean and simple yet has syntax highlighting. Congratulations!!
Edit: Updated to 0.8.2, search and replace now functional. Thanks again.

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Emendo text editor

Postby simargl » 24 Sep 2013, 08:32

I made bitbucket repository for emendo, you can see list of changes/commits here
https://bitbucket.org/simargl/emendo/commits/all

and always get latest source from here
https://bitbucket.org/simargl/emendo/get/tip.tar.gz

Latest version is 0.9.1 with many bug fixes, fully functional replace dialog, and usability improvements like scroll to current line after undo, redo or replace button clicked.

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Emendo text editor

Postby simargl » 25 Sep 2013, 11:38

version 0.9.5
* use File.load_contents instead of FileUtils.get_contents function
* source view styles support defined in /etc/emendo/emendo.ini

AUR package: https://aur.archlinux.org/packages/emendo/
Arch Wiki addition: https://wiki.archlinux.org/index.php/List_of_Applications#Graphical_16

Install with:
packer -S emendo

-------------
Edit:
I made some improvements after uploading pkgbuild to AUR:
- undo/redo buttons sensitive (greyed out if undo/redo not possible);
- show file info in statusbar;
- solved bug in question dialog before closing.

Emendo is pretty much finished, I like it more than geany now.

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: Emendo text editor

Postby Scooby » 28 Sep 2013, 13:02

simargl wrote:Emendo is pretty much finished, I like it more than geany now.


Installed emendo from AUR and gtksourceview3 form repo.
Don't get syntax highlighting? tried bash script file and PKGBUILD as
in image above?

In comparision to geany I would miss

1.) tabbed editing.

*found it* (2.) doesn't let me choose config files from "open file"-dialog. Example .bashrc)

*retracted* (3.) keyboard shortcuts?)

4.) block quoting

5.) duplicate line

For me in its present form it could replace l3afpad but not geany.

Are you gonna go back to have geany in devel_XX.sfs with the text-editor chooser script?
.

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Emendo text editor

Postby simargl » 28 Sep 2013, 13:31

You didn't get syntax highlighting in shell script or not in any file? Syntax highlighting is decided by file mime type, if you right click file properties application/x-shellscript should have shell highlighting

this line in functions script will add highlighting for pkgbuild scripts and also def build script from my package manader, it is not enabled in the original gtksourceview3 package.

Code: Select all

sed -i 's|text/x-shellscript;application/x-shellscript;text/x-sh|text/x-shellscript;application/x-shellscript;text/x-sh;text/x-pkgbuild;text/x-def|g' install/usr/share/gtksourceview-3.0/language-specs/sh.lang

Geany will not be in devel module, but you can always install later if you want to.

And Scooby what keyboard shortcuts are missing, I think everything from toolbar has keyboard shortcut, plus F11 is there to fullscreen toggle?

Marv
Proficient
Posts: 81
Joined: 16 May 2013, 16:42

Re: Emendo text editor

Postby Marv » 28 Sep 2013, 14:06

Emendo installed and working correctly as the sole editor in an installation of precise 5.7.1 with openbox and spacefm added and jwm/rox/pup_event_manager pulled I'm playing with. I tend to get in trouble with tabbed editors so I don't miss that and emendo pretty much covers what editing I do. Shouldn't be a lot of overhead leaving it in the dev pkg though??

Scooby
Site Admin
Posts: 826
Joined: 09 Sep 2013, 16:52

Re: Emendo text editor

Postby Scooby » 28 Sep 2013, 19:54

After slight modify of sed expression syntax highlight for PKGBUILD worked.

tried to add application/x-executable(for .bashrc) to sh.lang but didn't get syntax highlight for it.
(tried with gedit who also uses gtksourceview and didnt get highlight with default config)

Wot am I doin wrong?

As for keyboard shortcuts it probably is that the functions I am used to arent implemented.
I retract that con.

But when using emendo if I have one file opened that is edited and I am trying to
open another file I get a dialog window asking if (yes/no) would I like to save file.
I would want a cancel button on that dialog as well.

Marv wrote:I tend to get in trouble with tabbed editors so I don't miss that


I dont think I can live without tabbed editing myself,

simargl wrote:Geany will not be in devel module, but you can always install later if you want to.



I am perfectly OK with me pacmaning geany separately. just run makesfs on it!

BTW does anybody know how to fix in geany the problem of when I tab a comment
in shell script it looses highlight?
.

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Emendo text editor

Postby simargl » 29 Sep 2013, 12:37

.bashrc is text/plain type, so it's expected to not be highlighted as shell script, although I've tried and in geany it is recognized as config file. :?
But when using emendo if I have one file opened that is edited and I am trying to
open another file I get a dialog window asking if (yes/no) would I like to save file.
I would want a cancel button on that dialog as well.

You can click cancel in next window that is open file dialog, but you're probably right cancel button is something most users would expect there..

Edit:
Version 0.9.7 - Added Cancel button in offer to save changes Dialog

simargl
Site Admin
Posts: 466
Joined: 16 May 2013, 10:54
Contact:

Re: Emendo text editor

Postby simargl » 03 Oct 2013, 15:17

version 0.9.8
* If selected text is hex color use it as default in the Color Chooser Dialog
* Checkbutton match case added in Find and Replace dialogs
* Color indicator in Search entry - text color changes to red if no matching text found
* Find dialog change: find next match as you type (same as in firefox), this is different than in geany
* Set focus to Gtk Entry in Find and Replace dialogs, and do not select text


Return to “Scripting and Programming”

Who is online

Users browsing this forum: No registered users and 0 guests

cron