JLEdit :: Assembly

A JLine and Jansi based console text editor.

License

License

GroupId

GroupId

org.jledit
ArtifactId

ArtifactId

jledit
Last Version

Last Version

0.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

JLEdit :: Assembly
A JLine and Jansi based console text editor.

Download jledit

How to add to project

<!-- https://jarcasting.com/artifacts/org.jledit/jledit/ -->
<dependency>
    <groupId>org.jledit</groupId>
    <artifactId>jledit</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.jledit/jledit/
implementation 'org.jledit:jledit:0.2.2'
// https://jarcasting.com/artifacts/org.jledit/jledit/
implementation ("org.jledit:jledit:0.2.2")
'org.jledit:jledit:jar:0.2.2'
<dependency org="org.jledit" name="jledit" rev="0.2.2">
  <artifact name="jledit" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.jledit', module='jledit', version='0.2.2')
)
libraryDependencies += "org.jledit" % "jledit" % "0.2.2"
[org.jledit/jledit "0.2.2"]

Dependencies

compile (2)

Group / Artifact Type Version
jline : jline jar 2.7
org.jledit : core jar 0.2.2

Project Modules

There are no modules declared in this project.

JLEdit

An extensible Jansi & Jline based Console Text Editor.

The editor is using Jansi for ansi escape sequence manipulation. It also uses Jline terminals, streams and key maps.

It works as a standalone editor, but it can also be use from jline based applications.

Editor Features

  • Scrolling
  • Undo / Redo functionality
  • Forward & Backward searching and highlighting
  • Pluggable content manager, to be able to edit not just files (e.g. blobs, zookeeper znodes, config admin pids etc).
  • Color themes

Building

You can download a standalone version of the editor from Maven Central. You can also build the editor from source.

Buidling requires:

  • Java 1.6+

  • Maven 3

    mvn clean install

Running

Once the build or download is done:

> cd jledit/target
> tar -zxvf jledit-0.1.1-bin.tar.gz
> cd jledit-0.1.1
> ./bin/jledit /path/to/myfile

or on Windows:

> cd jledit/target
> unzip jledit-0.1.1-bin.zip
> cd jledit-0.1.1/bin
> jledit.bat /path/to/myfile

Knows Issues & Limitations

  • The whole file is loaded in memory.
  • Resizing of terminal is not well supported.
  • Save will convert all \r characters to \n.
  • The base ConsoleEditor implementation needs to be simplified.
  • Possible deadlock when shutting closing the editor.

Versions

Version
0.2.2
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0