Posts tagged with 'jedit':

Announcing Coloration, editor color scheme converter


Without further ado I'm introducing Coloration - editor/IDE color scheme converter. It is an evolution of tm2jed tool and at the moment it can convert Textmate color themes (in XML plist format) to Vim, JEdit and Kate/KWrite/KDevelop color schemes. So if you are Textmate->Vim convert or you just envy Textmate users for their good looking, dark themes now you have no excuse to not try out Coloration.

Here's how Vim with Sunburst theme looks like:

Vim with Sunburst color scheme

If you want to give Coloration a try you have two options. Either you can use online version at coloration.sickill.net or you can install ruby gem coloration:

gem install coloration

It will give you tm2vim, tm2jedit and tm2katepart commands. Note it requires ruby 1.9.

Let me know if you find it useful. Source code is available at github.com/sickill/coloration.

Enjoy!

View Comments

Quick update on Open File Fast 1.0.1


This is really short update on OpenFileFast. Recently new JEdit (4.3 final with new ProjectViewer plugin) and Netbeans (6.9RC2) came out and they’ve both changed some APIs. The changes were not backwards compatible and OFF stopped working for them. Fortunately the fix was simple and I’ve prepared updated builds of the plugin for JEdit and NB.

Here are the links for 1.0.1 update:

Netbeans NBM package: off-netbeans-1.0.1.nbm
JEdit jar file: off-jedit-1.0.1.jar

View Comments

Open File Fast reached 1.0


After almost a year of development and several beta versions Open File Fast finally became stable and mature enough to bump its version to 1.0. There’s not much new in this release except several bugfixes and improved look of search results list.

Now it looks like this:

Notice that entered characters are now displayed in bold indicating where they were found in each filename. File path is now right aligned and has lighter color. It doesn’t come into way anymore when looking at results and lets you localize the file you seek even faster.

Netbeans version of plugin was updated to work in Netbeans 6.8, JEdit’s one works now in final JEdit 4.3 version (with ProjecViewer 2.9.1+).

Netbeans NBM package: off-netbeans-1.0.nbm
JEdit jar file: off-jedit-1.0.jar

View Comments

Finish Him completes them all!


Once again extending JEdit’s feature set. This time word completion. JEdit already has two word completion mechanisms: built-in one and TextAutocomplete plugin. However none of them provides as smooth completion as Netbeans or Textmate’s ones. First I was thinking about creating some BeanShell macro too improve my completion experience but it looked like to much logic for just a macro. So I ended up with new plugin, and this time written in… Scala (finally an opportunity to start learning Scala on real project).

It’s called “Finish Him!” and following comparison shows how it’s different from existing solutions for JEdit.

JEdit’s built in word completion:

  • shows popup when triggered (-1)
  • doesn’t sort suggestions by distance from the caret (-1)
  • searches for suggestions in other (visible) buffers (+1)
    Total: -1

TextAutocomplete:

  • shows popup automatically (-1)
  • doesn’t sort suggestions by distance from the caret (-1)
  • doesn’t search for suggestions in other (visible) buffers (-1)
    Total: -3

Finish Him!:

  • doesn’t show popup when triggered, just inserts next suggestion (+1)
  • sorts suggestions by distance from the caret (+1)
  • searches for suggestions in other visible buffers (+1)
    Total: 3

Finish Him! kills other solutions with score of 3. I know that these things may look like details but after using Netbeans word completion you know that it’s the simplest, fastest and most “correct” (by proper suggestions sorting) word completion. If you’re using JEdit then check it out, it’s now available on Plugin Central so it can be installed directly from JEdit’s plugin manager. For sources look here.

View Comments

Open File Fast updated for JEdit 4.3pre17


This is update for all you JEdit users who updated your beloved JEdit to 4.3pre17, did plugins update and found that OFF is not working anymore.

Newest JEdit offers update of ProjectViewer plugin to version 2.9.1 which is quite not compatible with 2.7.x line. There were some changes in the PV API which broke OFF. I’ve updated OFF to work with new ProjectViewer and now you can use it again. This is only compatibility relase, no new features.

JEdit jar file: off-jedit-0.9.4.1.jar (requires JEdit 4.3pre17 and ProjectViewer >= 2.9.1)

View Comments

Open File Fast 0.9.4 released for Netbeans and JEdit


Here we go again. Open File Fast 0.9.4 has just been released into the wild. And there is big news: with this release I’m introducing Open File Fast for JEdit!

I’ve spent some time refactoring OFF code, extracting search functionality into reusable module and cleaning up here and there. The result is the core functionality is now being used by Netbeans plugin as well as by JEdit plugin. They both share search engine, search dialog and options panel. Thanks to that I’ll be able to release OFF for both platforms at the same time without any additional platform specific work (theoretically of course).

Besides all of above here are the changes for this release:

  • underscores at the beginning of filenames are ignored (when searching for _foo.html.erb enter just foo)
  • masks in options panel (hide files / move files to bottom of the results) have been changed from regular expression format to wildcard format – just use ‘*’ as replacement for string of any length
  • added indexing status indicator to search dialog.

Netbeans NBM package: off-netbeans-0.9.4.nbm
JEdit jar file: off-jedit-0.9.4.jar (requires JEdit 4.3pre16 and ProjectViewer 2.1.3.7)

View Comments

Improved ruby mode for JEdit


My post about Textmate to JEdit theme converter (tm2jed) included example screenshots of JEdit running with some converted themes. However I’m using a little tweaked ruby highlighting mode which recognizes method, class and module names. It shows those names using styling defined for FUNCTION type entities (not all JEdit themes include styling for it but themes converted with tm2jed use it).

If you want to have highlighting for method names in your ruby code put following xml code into first RULES block in your ruby.xml file:

<!-- method, class and modules names -->
<MARK_FOLLOWING TYPE="FUNCTION" MATCH_TYPE="KEYWORD1">def </MARK_FOLLOWING>
<MARK_FOLLOWING TYPE="FUNCTION" MATCH_TYPE="KEYWORD1">class </MARK_FOLLOWING>
<MARK_FOLLOWING TYPE="FUNCTION" MATCH_TYPE="KEYWORD1">module </MARK_FOLLOWING>

Or just get mine ruby.xml file, put it into your .jedit/modes directory and add this to .jedit/modes/catalog file:

<MODE NAME="ruby" FILE="ruby.xml" FILE_NAME_GLOB="*.rb" />
View Comments

Textmate to JEdit Colour Theme Converter


JEdit was my favourite code editor for a long time and I was polishing its configuration constantly to make it perfect. It has lots of great plugins which make it rather feature complete for me. As I’m working with the code 8+ hours a day I also need some nice colour scheme for my code. EditorScheme plugin adds support for changing schemes in JEdit and it’s bundled with several schemes. Unfortunately I couldn’t find a scheme which suits me…

Fortunately I saw several nice themes for Textmate which looked really sexy ;) Converting themes by hand was too much hassle so I’ve created tm2jed to convert them automatically. It’s written in ruby and all it does is reading given Textmate theme and outputing it as JEdit’s theme.

Following screenshots show how JEdit look with Twilight, Glow, Plastic Code Wrap and Glitter Bomb themes:

jedit with twilight themejedit with glow themejedit with plastic-code-wrap themejedit with glitter-bomb theme

You can get tm2jed here (as zip archive). Alternatively you can get it from github.

Once you have it, run:

ruby tm2jed.rb some_textmate_theme.tmTheme

It will save converted theme as some_textmate_theme.jedit-scheme which you can put in schemes directory of your jedit settings folder. Then choose it in EditorScheme plugin inside JEdit and you have new shiny colour scheme!

Conversion is not perfect as JEdit and Textmate implement theming in different way but for most cases it works fine.

I’ve converted 16 Textmate themes so if you don’t want to mess with tm2jed you can grab them here in one zip file. It contains Cool Glow, Monokai, Starlight, Texari, idleFingers, Glitter Bomb, Plastic Code Wrap, Succulent, Twilight, Monoindustrial, Glow, RubyBlue, Sunburst, Vibrant Ink, IR_Black, Spectacular, Tango and Choco themes.

View Comments