My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

CodeSlayer is a source code editor that boasts a clean interface but powerful features. It is written in C using the GTK+ toolkit.

01/27/2013 CodeSlayer 3.0 is out! The main feature for this release is I completely reworked where the project settings are held. They used to be in the ${HOME}.codeslayer/group directory. Now they are in a .codeslayer directory in your project. I really resisted doing this, but having the project settings tied to the project is just too convenient and offers a much better experience. Unfortunately this means you will need to set your projects and settings back up. In addition I refactored some of the main codeslayer.c implementation and have deprecated a few codeslayer.h methods. But, even though your plugin code will continue to compile, it will not run until you move to the new methods. Hopefully this will be the last of the breaking changes...but it was neccessary this time.

As a convenience I created a simple shell script to make downloading and installing CodeSlayer with its plugins much easier. It is a drop dead simple script so I would encourage you to open it up and tweak it however you like. Then to use it put the script into its own directory and run it.

sh codeslayer-autogen.sh

Be sure to visit the plugins page to explore the growing list of plugins. If you have problems installing a plugin visit the installation page, which also contains answers on the most common install problems, or just email me at jeff.johnston.mn@gmail.com and I will help out however I can.

Especially watch out for an error that says "cp: cannot create regular file `/root/.codeslayer/plugins': No such file or directory" error. You need to adjust your sudoers file to use the HOME environmental variable of the user that is running off the command. I do not see a way to adjust this at runtime, but if somebody knows be sure to let me know and I will adjust the script!

You can find out more information about what CodeSlayer is all about here. Be sure to email me at jeff.johnston.mn@gmail.com if you have any comments, questions, or suggestions.

Installation

To install CodeSlayer first make sure that you have the proper libraries installed.

libglib2.0-dev libgtk3.0-dev libgtksourceview3.0-dev intltool

Then unpack the distribution into a directory, open up a terminal, change to the directory you just created, and enter in the following commands:

./configure
make
sudo make install
sudo ldconfig

Getting Started

Its very easy to get started. Just go to the Projects menu and select Add Projects. Then select the top level folders that you want to be part of the default group. Once you have that visit the Preferences in the Editor menu and tweak things to your liking. Also keep in mind that each group will have its own preferences and plugins defined. That way you can tailor each group to be exactly what you want.

Key Strokes

The (non-discoverable) key stroke commands that are specific to CodeSlayer.

Editor

key strokes command release
Ctrl+Shift+Down Arrow Copy Lines 1.0
Ctrl+U To Uppercase 1.0
Ctrl+L To Lowercase 1.0
F3 Find Next (editor must have focus) 1.0

I think one thing that makes CodeSlayer special is the way that that the editor search feels as you use it. There is a lot of subtle things that it does that may not be obvious at first. For instance if you highlight some text and press Ctrl+F then it will highlight matches in the editor, but not scroll. But if you just start typing in the find field it will start scrolling to find what you are searching for as you type. To make searching faster you can also use the F3 key to 'find next' in place of Ctrl+G. You will also notice that you can keep using the F3 key even when the inline search field is closed! It will just use the last thing that you were searching for. I also want to give a special thanks to mati86dl for providing valuable input to get this feature right!

Projects

key strokes command release
Ctrl+X Cut 1.0
Ctrl+C Copy 1.0
Ctrl+V Paste 1.0
Ctrl+R Rename 1.0
Delete Move To Trash 1.2.1
Ctrl+F Find In Projects 1.2.1

Screenshot

Powered by Google Project Hosting