Re: [9fans] Re: A learners sam cheat sheet

2024-08-22 Thread Mathieu Bivert
Hi, I think it's a typo in the cheat sheet; at least for s///, \i is the correct syntax to reference "tagged patterns": % echo foo bar | ssam 's/([a-z]+) ([a-z]+)/\2 \1/' bar foo I lack familiarity with sam/sam's language to be certain, but I doubt it'd make much sense to have it for other c

Re: [9fans] Acme event file and keyboard

2025-04-01 Thread Mathieu Bivert
1/ opening the event file disables menu management. one can write 'menu' to ctl (should still be undocumented) to re-enable it. 2/ xfideventwrite() (src/cmd/acme/xfid.c) doesn't seem to handle "keyboard insert" events (e.g. "KI275 275 0 1 e"; third integers is a flag; acme(4) only describes writin

Re: [9fans] Next Generation Acme

2025-05-13 Thread Mathieu Bivert
I often consider acme as being a "clumsily programmable set of text windows". I've often wondered about simplifying it as such. e.g. replacing 9P by an ~RPC interface (+ an event stream?), giving a simple, complete programmatic control over the editor. usual commands (Undo, Snarf, etc.) would all