Hacker News new | ask | show | jobs
by mhd 5105 days ago
I've used sam a bit in the past, when I was working in a pretty heterogenous Unix environment (Suns, SGIs etc.). The split between the display component and the actual editing core made that pretty easy to do, a good alternative to vi over ssh (given terminal funkiness and differences between vi implementations).

I liked the regular expression syntax, the ed/ex editing window and the actual GUI text editor wasn't that bad, if I remember correctly. Selecting the whole area between brackets or quotation marks was done easily (double-clicking) with the mouse and is very useful.

As for acme, mouse chording isn't for everyone, but definitely worth trying at least once. One of the better features they borrowed from Oberon… When I work with some other editors, I do tend to work a bit with "registers" and similar copy/paste buffers, as opposed to just reusing the one thing you've just selected. For a similar approach to "saving text for later", a secondary file/buffer with all the snippets might work for the smaller stuff. Similarly, a "bookmark" facility wouldn't hurt, but you can work around with spurious superflous characters (e.g. %%%%) and just searching for it. Acme does searching quite well, and you're in no danger of messing up syntax highlighting.

The real secret sauce to advance Acme editing would be plumb, to use where you'd reach for scripts in vim or emacs. Haven't really gotten too much into that, but some more regular users might help out here.

As for syntax highlighting, yeah, sometimes the Plan 9ers tend to sound almost Luddite. Quite often they're "right" in a way, although in this specific case I don't see why you couldn't extend the rendering engine of Acme to support fonts and colors and just use something external (i.e. plumb-like) to drive syntax coloring or other highlighting features. But easier said than done, of course. Not sure how much hacking is going on at the Plan 9 core tools right now. A reimplementation in go might be nice, with a Plan-9/Inferno-like cross-platform GUI toolkit, while we're daydreaming.

plumb: http://doc.cat-v.org/plan_9/4th_edition/papers/plumb

1 comments

> Not sure how much hacking is going on at the Plan 9 core tools right now. A reimplementation in go might be nice, with a Plan-9/Inferno-like cross-platform GUI toolkit, while we're daydreaming.

This would be cool, but remember that Russ Cox (among many other things) still maintains (and uses) Plan 9 from User Space:

http://plan9.us

Also there is Acme Sac, which is standalone reimplementation in Limbo:

http://code.google.com/p/acme-sac/

The cool thing about Acme sac is not just that is portable to Windows too, but that it includes the whole Inferno environment under the covers.

Still, I would love to see a rewrite of Acme or something like it in Go, and wouldn't be surprised if Rob gifts us with one more text editor :)

For more info about Acme see:

http://acme.cat-v.org