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 have checked the Deb file which installs fine, I will next attempt to build the source on Fedora just to see if the looping issue is still present.

I have also testing the AUR package and the looping problem doesn't exist on my machine, if you have problems with it please do let me know!

Finally thank you all for taking the time to comment and let me know about the various issues, just wish I could figure out the OpenSuse64 one!

Report

GDigger24

5 years ago

Tried updated version 1.0.2., invoking <make> lead to an endless loop

./config.status Makefile
config.status: creating Makefile
make: Warning: File `Makefile.in' has modification time 6e+04 s in the future
./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure --no-create --no-recursion
checking for gcc... gcc

I am on openSuSE 11.3 32Bit

Report

gracca

5 years ago

The same endless loop in Fedora 15, and also in ArchLinux when installing from Aur...

Report

njal

5 years ago

Can you try the AUR link again? I just tried that one and it works for me.

The problem was that my bios clock jumped forward a day for some reason, and it affected the time stamp of the files causing an endless loop.

It can be solved by running touch on the files in the source directory.

If that does not work please do let me know and I will try to re-create the problem.

Report

njal

5 years ago

Can you try the AUR link again? I just tried that one and it works for me.

The problem was that my bios clock jumped forward a day for some reason, and it affected the time stamp of the files causing an endless loop.

It can be solved by running touch on the files in the source directory.

If that does not work please do let me know and I will try to re-create the problem.

Report

gracca

5 years ago

OK, in Fedora it compiles successfully with the following warning:

Quote:
$ make
make -C src all
make[1]: Entering directory `/home/german/Programs/x2-1.0.4/src'
gcc -Wall -g -O0 -o x2 main.c `pkg-config --libs --cflags vte gtksourceview-2.0`
In file included from main.c:16:0:
callbacks.c: In function ‘New’:
callbacks.c:119:9: warning: ‘vte_terminal_fork_command’ is deprecated (declared at /usr/include/vte-0.0/vte/vtedeprecated.h:82) [-Wdeprecated-declarations]
In file included from main.c:16:0:
callbacks.c: In function ‘drag_data_received_handler’:
callbacks.c:861:16: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]


But I'm not able to run it, I got this segmentation fault:

Quote:
$ ./src/x2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

(x2:5343): GLib-CRITICAL **: g_io_channel_close: assertion `channel != NULL' failed
Segmentation fault (core dumped)


This is Fedora 15, x86_64. I'm a Fedora packager, I could port it to Fedora in the future if this package works well.

Report

njal

5 years ago

Ok, which version are you trying with?

If it is the latest 1.0.5 can you try 1.0.4 and see if it's a bug I introduced with the latest version?

I will set up a fedora 64 VM to see if I can reproduce the bug.

Bugs can always be reported here: http://rockcomputing.dyndns-web.com/flyspray/index.php?project=2&do=index

Report

gracca

5 years ago

It is 1.0.4 :(

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

gracca

5 years ago

I also noted that, from ./configure output:

Quote:checking for main in -lpng14... no

In Fedora 15 we have libpng-1.2.46.

In the other hand, in ArchLinux it works well with libpng-1.4.8.

Could this difference in libpng be the reason of segfault in Fedora?

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

Report

njal

5 years ago

No worries, I am setting up a Fedora 64 VM as we speak so I will see if I can discover the error. Leave it with me.

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.

product-maker gracca Oct 03 2011

product-maker 6 6

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.1.0
updated Jan 29 2012
added Sep 22 2011
downloads today
0
page views today 0