4 ms·
Disclaimer: I'm a gnu nano contributor. It makes me happy seeing nano being considered this way. Some of the features cited in the article were developed, impr
by marcodiego 6y ago
Disclaimer: I'm a gnu nano contributor.
It makes me happy seeing nano being considered this way. Some of the features cited in the article were developed, improved, influenced or implemented by me; mainly macros and external commands.
It is possible to use the linter combined with macros as a "go to implementation" or "go to declaration"[1]. I think it is also possible to do the same so it can get completions from external commands.
I'd like to improve nano enough to make it a good IDE, but its main developer is against it.
[1] https://lists.gnu.org/archive/html/nano-devel/2018-05/msg00073.html https://lists.gnu.org/archive/html/nano-devel/2018-05/msg000...
- bayindirh 6y agoOh hey, I'm primarily a Vi user, but I respect and love nano. It's the first editor I try on any system I'm not familiar with. I'd also argue against growing nano to a good IDE, because I think nano is in perfect form for its name and role. Maybe there can be a fork (maybe called micro) which contains the features you want to see in nano.
- vanderZwan 6y agoFYI, Micro already exists, it's implemented in Go https://micro-editor.github.io/ https://micro-editor.github.io/
- tpoacher 6y agoI love the ability to record a macro, I use it all the time. But unfortunately only one macro can live in memory at any one time. I was hoping for the ability to record a macro, and then 'save' it somewhere for future reuse (possibly by binding a shortcut to it). The link you point to seems very interesting to me for this reason. If that means what I think it means, then that is a good workaround for me, so I wanted to make sure: can you bind a shortcut to a string which uses ansi sequences to simulate keystrokes, and something like, e.g. "^R" to simulate pressing control+R? If that's the case, while I cannot "record and save" per se, I could still use this technique to bind a key to a series of keystrokes, like I would with a macro inside the editor.
- marcodiego 6y agoYes you can use ansi use pre-defined macros to fire key combos. Edit your .nanorc and bid a sequence to a key (like in the given example). To specify combos, press alt+v then hit the key combo you desire.