Description:

X2 is an simple text/programming editor developed in house by Rock Computing from a dissatisfaction with existing text editors.

Features:
*) Small
*) Very light memory usage
*) Syntax highlighting
*) Embedded terminal
*) Find/replace/jump to line
*) Customizable file templates.

It is based on gtksouceview and vte so do make sure you have those installed.

You can checkout the git development release here: https://gitorious.org/x2

All Debs have been removed since X2 can now be downloaded from the official debian package archives: http://packages.debian.org/sid/x2

Its licensed under the BSD 3 clause licence, all patches and donations welcome!

If you discover a bug please do let me know either here, or on our bug tracker: http://rockcomputing.dyndns-web.com//flyspray/index.php?project=2&do=index

Last changelog:

5 years ago

29/01/12 - 2

Actually uploaded a compilable bundle this time.

29/01/12
1) Enable real time preferences

2) Re-enabled the save as keybinding that had been strangely disabled

3) Fix file templates to be fully integrated

4) Split sources into easier to manage files

06/12/11
1.0.9.0: I have fixed all outstanding bugs I can find at the moment.


22/11/11
1.0.8.6: Another minor version bump to fix the quitting when there are unsaved files thing.
Sorry it took so long, had a few other things on.

21/10/11
1.0.8.5 Minor bugfix release.

20/10/11
Version 1.0.8.4 released and offers more improvements to the file templating again.
Templates can now be created from existing files, ctrl+shift+w to save a file as a template, note this only works if the open file has a file extension.
Some keybindings have been changed, save as has now been remapped to ctrl+shift+s (similar to other gtk apps) and preferences have been remapped to ctrl+, (similar to OSX).
Please do be aware of these changes as I realised that printer support may be required in the future and the ctrl+p keybinding may be needed. But since I do not own a printer I will need some help with this.

18/10/11
Version 1.0.8.3 hopefully fixes the runtime segmentation fault on Fedora systems.

18/10/11
Version 1.0.8.2 released changing the previous behaviour of the graphical templates to be more consistent with the open function.

18/10/11
Version 1.0.8.1 released hopefully fixing two long standing bugs.

18/10/11
Version 1.0.8 released, this builds upon the templating idea and expands it to have a graphical component. CTRL+SHIFT+N to activate (assuming you have installed templates).

10/10/11
Version 1.0.7 released. This includes an expansion to our previous release where if a file that is specified as an argument does not exist then it is created for the user.

Now, if the user also specifies a file type (c, py, etc) so long as the user has a matching template file in ~/.config/X2/templates the template will be loaded reducing the amount of work the user has to do to get started.

These files are totally customisable and can be added or removed to as the user wishes.

To get started create the file ~/.config/X2/templates/template.c with the contents:

#include

int main( int argc, char *argv )
{
printf( "Hello world!\n" );
return( 0 );
}

Then just run X2 from the command line with .c and the template will load the contents into your new file.

To remove this just remove the template.c file.

09/10/11
Fedora 32 rpm uploaded.

08/10/11
Five bugs were closed for this release, some of which were code re-factoring elements which really reduced the amount of code inside X2.

The following bugs have been closed:
#3 Create icon for X2
#8 Files can't be passed in via open with dialog
#14 Write a man page
#15 X2 doesn't see relative paths.
#16 Create files passed onto the command line if they don't already exist.

If you use Arch Linux or a source based distro you can download and run now, otherwise please do wait for the packages to be built. 32 bit rpms and debs will be on their way soon.

Oh and one more thing... This one is for you Steve. Respect and peace out.


06/10/11
Andrea Veri has very kindly packaged X2 for Debian: http://packages.debian.org/sid/x2

04/10/11
Added 64 bit fedora package
Added 64 bit deb package

03/10/11
Added tool tips

02/10/11
Added Ubuntu package!
Added Fedora package!

01/10/11
Fixed the desktop file in the main build scripts so that any packager should not have to write it their selves.

Added load from command line.

30/9/11
Created the .desktop file and taken advantage of the gtk stock text editor icon.

29/9/11
Completed the build system.

njal

5 years ago

I haven't tried it on 64 bit Suse, but I could reproduce your bug on 32 bit and have applied a fix in the git development area, if you could check out the latest git version and try again, I HOPE you will find the problem no longer occurs, if it does let me know and I will try to do some more hunting.

Also I noted the presence of the rpmbuild directory in your output, are you making a Suse package, if so, would you send me it so I could upload it here?

If all goes well then I will upload a new 1.0.1-1 version of X2 for everyone.

Report

LazyKent

5 years ago

It still crashes.

% gdb x2
(gdb) run
Starting program: /usr/bin/x2
(x2:3386): GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_close: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_read_line: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_read_line: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_read_line: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_read_line: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_read_line: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_read_line: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_read_line: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_read_line: assertion `channel != NULL' failed

(x2:3386): GLib-CRITICAL **: g_io_channel_close: assertion `channel != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6367702 in strlen () from /lib64/libc.so.6
(gdb) bt
#0 0x00007ffff6367702 in strlen () from /lib64/libc.so.6
#1 0x00007ffff6dd5006 in g_strrstr () from /usr/lib64/libglib-2.0.so.0
#2 0x0000000000408575 in main (argc=1, argv=0x7fffffffdf68) at x2.c:78

Makefile isn't good.
It use hardcoded /usr/lib patch, for x86_64 we need /usr/lib64.
x2: x2.c - in source is X2.c
For install it should use DESTDIR variable: http://www.gnu.org/prep/standards/html_node/DESTDIR.html

Plese add icons
http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#install_icons
and desktop file
http://standards.freedesktop.org/menu-spec/latest/index.html

And yes, I'd like to build packages for openSUSE after testing in different versions.

Report

njal

5 years ago

Thanks for the further help in getting my App portable. I am currently writing a (hopefully) full and complete autotools buildable version, I will also work on the other elements you informed me about.

I am new to autotools so it may take a little while, but rest assured I am working on it!

Your helpful pointers in the right direction are much appreciated!

Report

5 years ago

29/01/12 - 2

Actually uploaded a compilable bundle this time.

29/01/12
1) Enable real time preferences

2) Re-enabled the save as keybinding that had been strangely disabled

3) Fix file templates to be fully integrated

4) Split sources into easier to manage files

06/12/11
1.0.9.0: I have fixed all outstanding bugs I can find at the moment.


22/11/11
1.0.8.6: Another minor version bump to fix the quitting when there are unsaved files thing.
Sorry it took so long, had a few other things on.

21/10/11
1.0.8.5 Minor bugfix release.

20/10/11
Version 1.0.8.4 released and offers more improvements to the file templating again.
Templates can now be created from existing files, ctrl+shift+w to save a file as a template, note this only works if the open file has a file extension.
Some keybindings have been changed, save as has now been remapped to ctrl+shift+s (similar to other gtk apps) and preferences have been remapped to ctrl+, (similar to OSX).
Please do be aware of these changes as I realised that printer support may be required in the future and the ctrl+p keybinding may be needed. But since I do not own a printer I will need some help with this.

18/10/11
Version 1.0.8.3 hopefully fixes the runtime segmentation fault on Fedora systems.

18/10/11
Version 1.0.8.2 released changing the previous behaviour of the graphical templates to be more consistent with the open function.

18/10/11
Version 1.0.8.1 released hopefully fixing two long standing bugs.

18/10/11
Version 1.0.8 released, this builds upon the templating idea and expands it to have a graphical component. CTRL+SHIFT+N to activate (assuming you have installed templates).

10/10/11
Version 1.0.7 released. This includes an expansion to our previous release where if a file that is specified as an argument does not exist then it is created for the user.

Now, if the user also specifies a file type (c, py, etc) so long as the user has a matching template file in ~/.config/X2/templates the template will be loaded reducing the amount of work the user has to do to get started.

These files are totally customisable and can be added or removed to as the user wishes.

To get started create the file ~/.config/X2/templates/template.c with the contents:

#include

int main( int argc, char *argv )
{
printf( "Hello world!\n" );
return( 0 );
}

Then just run X2 from the command line with .c and the template will load the contents into your new file.

To remove this just remove the template.c file.

09/10/11
Fedora 32 rpm uploaded.

08/10/11
Five bugs were closed for this release, some of which were code re-factoring elements which really reduced the amount of code inside X2.

The following bugs have been closed:
#3 Create icon for X2
#8 Files can't be passed in via open with dialog
#14 Write a man page
#15 X2 doesn't see relative paths.
#16 Create files passed onto the command line if they don't already exist.

If you use Arch Linux or a source based distro you can download and run now, otherwise please do wait for the packages to be built. 32 bit rpms and debs will be on their way soon.

Oh and one more thing... This one is for you Steve. Respect and peace out.


06/10/11
Andrea Veri has very kindly packaged X2 for Debian: http://packages.debian.org/sid/x2

04/10/11
Added 64 bit fedora package
Added 64 bit deb package

03/10/11
Added tool tips

02/10/11
Added Ubuntu package!
Added Fedora package!

01/10/11
Fixed the desktop file in the main build scripts so that any packager should not have to write it their selves.

Added load from command line.

30/9/11
Created the .desktop file and taken advantage of the gtk stock text editor icon.

29/9/11
Completed the build system.

Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 52%
52.00 Likes
48 Dislikes
Details
version
1.1.0
updated Jan 29 2012
added Sep 22 2011
downloads
page views 1195
support njal
For The Product
X2
5 - 10 - 25 - 50 - 100 - 200 - 500