JLEdit :: Project

A JLine and Jansi based console text editor.

License

License

GroupId

GroupId

org.jledit
ArtifactId

ArtifactId

jledit-project
Last Version

Last Version

0.2.2
Release Date

Release Date

Type

Type

pom
Description

Description

JLEdit :: Project
A JLine and Jansi based console text editor.
Project URL

Project URL

https://github.com/jledit/jledit
Source Code Management

Source Code Management

http://github.com/jledit/jledit

Download jledit-project

Filename Size
jledit-project-0.2.2.pom 8 KB
Browse

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

  • core
  • jledit

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