Tips & Tricks Blog
Notes, ideas and general comments on anything related to high-tech.

July 30, 2021

Building nedit-ng for Ubuntu 18.04

Filed under: nedit

I had to start using nedit under Ubuntu 18.04.5 in VirtualBox under Win 10.
NEdit 5.7 that came with Ubuntu 18.04 and the binary that was perfectly stable under 16.04 (under ESXi) were both getting into state when the keyboard input wasn’t working (but Ctrl+ and functional keys still did).
I decided to give https://github.com/eteran/nedit-ng a try.

The build was pretty easy:
cd ~
git clone https://github.com/eteran/nedit-ng
sudo apt-get install qt5-default
sudo apt-get install libboost-all-dev
#bison --version (didn't need to install)
#cmake --version (didn't need to install)
sudo apt-get install qttools5-dev
cd nedit-ng/
mkdir build
cd build
cmake ..
make

The binaries are “nc-ng” and “nedit-ng”. They are a drop-in replacement for “nc” and “nedit”. I actually used a small script to use symlinks for switching between the original nedit and the ng one.

Since ng uses different configuration format you’ll need to import your original nedit config:
./nedit-import ~/.nedit/nedit.rc

Unfortunately there were some little misses that forced me to go back to using the old nedit (see the next post).
The particular thing that I couldn’t adapt to were the fonts and how nedit-ng runs the shell commands.
With ng it was impossible to display as many readable lines of code in the window as it was possible with the old nedit. As for the execution of the shell scripts, I’m using them often, for example, to select something in the code and pop up a window where grep output for that selection would show. The ng did not bring the focus to the new window, also no output showed up till the command finished executing. Also the cursor change indicating that a command is running happened in the window where it was kicked off rater than the window that was receiving the output.
Regardless, it was really exciting to see nedit reborn. I don’t know what’s the magic, but since I started using nedit many years ago no other editor was compelling enough to replace it for me. Hopefully the project is not abandoned and all the little gotchas will eventually be cleaned up.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Security Code:



Home

OkOb.net Tips & Tricks Blog
Powered by WordPress