Such an editor will be written in HQ9E+, my fork of HQ9+ with the following semantics:
H: prints Hello, World!
Q: prints the program's source text
9: prints the lyrics to 99 Bottles of Beer on the Wall
E: behaves like a nano-like text editor
+: increments the accumulator
A transparent preprocessor can of course be used to add the necessary "E" to the empty source as part of the build step.
I decided once to recompile nano on mac os because it has some bug or some color missing. I don’t remember why exactly but I do remember a lot of trouble with dependencies … and then my impression was that this tiny editor - is a monster.
It is of course depends with what you compare but still it was shockingly bigger then I was prepared/wanted to see
>I decided once to recompile nano on mac os because it has some bug or some color missing. I don’t remember why exactly but I do remember a lot of trouble with dependencies
Apple is weird about nano. By default, it uses Pico when you try to use nano, which is the text editor that nano is based off of. It seems to be because of concerns over the GPLv3, but the switch isn't made clear to the user, which is pretty deceptive.
Keep in mind that nano's name is derived from the fact it's a clone of pico, and things might start to make more sense. GNU nano's name is a play on words, not a statement about its size.
Nano has a surprising amount of features. I actually use it as my main text editor, and I rarely find myself lacking anything I could possibly want. Off the top of my head, it has the ability to run 3rd party code, a file browser, autoindenting, linting, macros, and a rudimentary autocomplete. A lot of it's reputation for being weak comes from bad defaults, which can be quickly fixed by ricing your nanorc file.