An open API service indexing awesome lists of open source software.

https://github.com/eteran/nedit-ng

a Qt port of the NEdit using modern C++
https://github.com/eteran/nedit-ng

c-plus-plus editor linux nedit qt

Last synced: 11 months ago
JSON representation

a Qt port of the NEdit using modern C++

Awesome Lists containing this project

README

          

# nedit-ng

[![Gitter](https://badges.gitter.im/eteran/nedit-ng.svg)](https://gitter.im/nedit-ng/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
[![Build Status](https://app.travis-ci.com/eteran/nedit-ng.svg?branch=master)](https://app.travis-ci.com/eteran/nedit-ng)
[![License](https://img.shields.io/badge/license-GPL2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)

nedit-ng is a Qt port of the [Nirvana Editor (NEdit)](https://sourceforge.net/projects/nedit/) version 5.6. It is intended
to be a **drop in replacement** for nedit in every practical way, just as on
many systems `/usr/bin/vi` is now a symlink to `/usr/bin/vim`.

Because it is a true port of the original code, it (at least for now) inherits
some (but not all) of the limitations of the original. On the other hand, some
aspects have been improved simply by the fact that it is now a Qt application.

![Nedit-ng](https://eteran.github.io/nedit-ng/latest/img/nedit-ng-find.png)

### Requirements:

Dependency | Version Required
------------------------------------------- | ----------------
[Qt](http://www.qt.io/) | >= 5.5
[Bison](https://www.gnu.org/software/bison/)| >= 3.0
[CMake](https://cmake.org) | >= 3.0

### Compiling:

$ mkdir build
$ cd build
$ cmake ..
$ make

### Help Documentation

NEdit had extensive help texts, which have been carefully updated and made available online here: https://eteran.github.io/nedit-ng/

### Inherited Limitations:

* Text display is still ASCII only (for now).
* Regex engine is the original nedit proprietary implementation. This was kept
for a few reasons:
1. NEdit's syntax is **slightly** non-standard, and I wanted to keep
things backwards compatible for now.
2. NEdit's syntax highligher has very carefully created regex's which
result in things being highlighted in a way that I (and I assume other
nedit users) have grown to appreciate. A change in regex engine would
likely require a rework on the syntax highlighting algorithm.
3. The original highligher has some insider information of the regex
implementation which it uses in order to be more efficient. I could
fake this information, but at the cost of efficiency.

### Improvements already available:

* Bug fixes! Yes, NEdit 5.6 unfortunately has some bugs, some of which can
result in a crash. Where possible, the new code has these fixed.
* Anti-aliased font rendering.
* Modern look and feel.
* Internally, counted strings are used instead of NUL terminated strings. This
removes the need to have code that played games with substituting NUL
characters mid-stream.
* Use of some C++ containers means many internal size limits are no longer
present.
* Code as been reworked using modern C++ techniques using a toolkit with an
active developer community, making it significantly easier for contributions
to be made by the open source community.

The goal of the initial release is to be a nearly 1:1 port of the original NEdit.
Now that we have achieved that goal. looking towards the future, some additional
goals are:

- [x] Cross platform
- [x] Internationalization!
- [ ] Python/LUA scripting support in addition to the built-in macro system
- [ ] An improved preferences system
- [ ] Extensibility though plugins
- [ ] Sessions, meaning that you can save and restore an edit session (such as
several open tabs)