3 ms·
if you like the Unix philosophy you mighty like Pike's the Acme text editor - http://en.wikipedia.org/wiki/Acme_%28text_editor%29 http://en.wikipedia.org/wiki/A
by wendroid 17y ago
if you like the Unix philosophy you mighty like Pike's the Acme text editor - http://en.wikipedia.org/wiki/Acme_%28text_editor%29 http://en.wikipedia.org/wiki/Acme_%28text_editor%29 (and Plan9 in general).
Many plan9 programs post a file tree which you can manipulate with regular Unix tools - Acme's are described here - http://man.cat-v.org/plan_9/4/acme http://man.cat-v.org/plan_9/4/acme
for instance, if I name this shell script C
#!/bin/rc
tags=`{cat /mnt/acme/$winid/tag}
s = `{echo $tags(1) | sed 's/\.c$//'}
8c $s.c && 8l -o $s $s.8
And middle click on a 'C' in the tag bar (or anywhere in the window) and the filename ends in .c, it will be compiled and linked for me. The /mnt/acme/$winid/tag is exported by Acme which provides a file tree to all of its windows.
Other similarly behaving programs in the distribution (including the windowing system) are described in http://man.cat-v.org/plan_9/4/ http://man.cat-v.org/plan_9/4/
- silentbicycle 17y agoI've looked at it. I really like acme/wily's general design, but can't stand the mouse-centric interface. (Same with plan9 overall, actually.) 9p is pretty cool, though, and I plan on having the 9p protocol as an example file for the non-blocking server framework I'm building. I use Emacs, but my ideal editor would mix Emacs's general buffer and mode extension model with vi-like keybindings, and use Lua as an extension language. Life is too short to write yet another editor, though.
- gnosis 17y agoI'm a vim guy, so this is all hearsay.. but there are supposedly vi keybindings available for emacs (and emacs keybinds for vim). I know vim has Lua bindings, and I would be very surprised to hear that emacs didn't. So look around.. you might find something close to what you're looking for.
- silentbicycle 17y agoThe extension for vi keybindings in Emacs is called "viper", though I think there's another. The problem is that, while you can switch to using vi keybindings for primary editing, every other single package will use conventional Emacs keybindings. Thing is, I don't want to add yet another layer on top of either Emacs (!!!) or vim. Both have waaaaay too much cruft as-is. (nvi isn't as bad.) I think the buffers-and-modes extension model in Emacs and vi's modal, primarily single-key interface are good ideas, though, and I don't see any reason why they couldn't be combined. I've also looked at uemacs, vile, and the like, but haven't found one that suits me. In the mean time, Emacs is good enough for me.