<div dir="ltr">I'm certainly interested to hear what you come up with too, my solution was just the low hanging fruit I knew I could get working easily. Main thing that might be useful from mine is just the mapping to get a visual selection off to a command line script. That script could be anything that hoovers up buffer contents over stdin.<div><br></div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 7, 2021 at 8:21 AM Kenneth Flak <<a href="mailto:kennethflak@protonmail.com">kennethflak@protonmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks both!<br>
<br>
I'll take a look at this once I finish a residency here in Tallinn next week. Very useful information. Haven't really done much in c, and I prefer to keep my vim python-free, but both of these angles should give me plenty of inspiration!<br>
<br>
Best,<br>
Kenneth<br>
<br>
--<br>
Roosna & Flak - Contemporary Dance & Music<br>
Web: <a href="http://roosnaflak.com" rel="noreferrer" target="_blank">roosnaflak.com</a><br>
Code: {github,gitlab}.com/kflak<br>
Mastodon: @kf@sonomu.club<br>
On 7 Jul 2021 08:08, Iain Duncan wrote:<br>
>Not sure if it's useful, but I can tell you how I wound up making my Vim to<br>
>Scheme-for-Max workflow:<br>
><br>
>- vim key mappings exist to visually select the current matching parenthetical<br>
>expression and send it to a Python script as stdin<br>
>- Python script sends to Max over OSC using liblo <br>
><br>
>The details are here: <a href="https://github.com/iainctduncan/scheme-for-max-cookbook/" rel="noreferrer" target="_blank">https://github.com/iainctduncan/scheme-for-max-cookbook/</a><br>
>blob/master/editor-integration/README.md<br>
><br>
><br>
>On Wed, Jul 7, 2021 at 7:22 AM <<a href="mailto:bil@ccrma.stanford.edu" target="_blank">bil@ccrma.stanford.edu</a>> wrote:<br>
><br>
> I don't know of any prior work on that. snd-kbd.c has<br>
> the keyboard mappings. There's an array "built-in-keys"<br>
> and a function "keyboard_command". The latter is<br>
> a set of case statements -- it should be reasonably<br>
> obvious how it works. I don't know anything about vim.<br>
> If you get something working, please let me know --<br>
> I'd be happy to merge it into my version.<br>
><br>
> _______________________________________________<br>
> Cmdist mailing list<br>
> <a href="mailto:Cmdist@ccrma.stanford.edu" target="_blank">Cmdist@ccrma.stanford.edu</a><br>
> <a href="https://cm-mail.stanford.edu/mailman/listinfo/cmdist" rel="noreferrer" target="_blank">https://cm-mail.stanford.edu/mailman/listinfo/cmdist</a><br>
><br>
<br>
<br>
_______________________________________________<br>
Cmdist mailing list<br>
<a href="mailto:Cmdist@ccrma.stanford.edu" target="_blank">Cmdist@ccrma.stanford.edu</a><br>
<a href="https://cm-mail.stanford.edu/mailman/listinfo/cmdist" rel="noreferrer" target="_blank">https://cm-mail.stanford.edu/mailman/listinfo/cmdist</a><br>
</blockquote></div>