<div dir="ltr">I&#39;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 &lt;<a href="mailto:kennethflak@protonmail.com">kennethflak@protonmail.com</a>&gt; 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&#39;ll take a look at this once I finish a residency here in Tallinn next week. Very useful information. Haven&#39;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 &amp; Flak - Contemporary Dance &amp; 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>
&gt;Not sure if it&#39;s useful, but I can tell you how I wound up making my Vim to<br>
&gt;Scheme-for-Max workflow:<br>
&gt;<br>
&gt;- vim key mappings exist to visually select the current matching parenthetical<br>
&gt;expression and send it to a Python script as stdin<br>
&gt;- Python script sends to Max over OSC using liblo <br>
&gt;<br>
&gt;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>
&gt;blob/master/editor-integration/README.md<br>
&gt;<br>
&gt;<br>
&gt;On Wed, Jul 7, 2021 at 7:22 AM &lt;<a href="mailto:bil@ccrma.stanford.edu" target="_blank">bil@ccrma.stanford.edu</a>&gt; wrote:<br>
&gt;<br>
&gt;    I don&#39;t know of any prior work on that.  snd-kbd.c has<br>
&gt;    the keyboard mappings.  There&#39;s an array &quot;built-in-keys&quot;<br>
&gt;    and a function &quot;keyboard_command&quot;.  The latter is<br>
&gt;    a set of case statements -- it should be reasonably<br>
&gt;    obvious how it works.  I don&#39;t know anything about vim.<br>
&gt;    If you get something working, please let me know --<br>
&gt;    I&#39;d be happy to merge it into my version.<br>
&gt;<br>
&gt;    _______________________________________________<br>
&gt;    Cmdist mailing list<br>
&gt;    <a href="mailto:Cmdist@ccrma.stanford.edu" target="_blank">Cmdist@ccrma.stanford.edu</a><br>
&gt;    <a href="https://cm-mail.stanford.edu/mailman/listinfo/cmdist" rel="noreferrer" target="_blank">https://cm-mail.stanford.edu/mailman/listinfo/cmdist</a><br>
&gt;<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>