Ancestors

Written by Patrick Marchand on 2024-11-15 at 22:08

[#]plan9 #acme allows you to execute selected text by running it with the rc shell and printing the return value in acme.

But did you know you could override the shell it uses by exporting the SHELL and acmeshell variable with another shell ? It works easily with bash or python, but I think the exec command acme does hardcodes a '-c' argument so if you want it to work with other shells you probably need to wrap it in script that handles the '-c'.

But if I can get that working then that means I can turn acme into a language specific interpreter. Ideally I think I'd like to be able to have an rc shell in the tag bar and a language specific shell in the window body, but that would probably require modifying acme's source code.

=> More informations about this toot | More toots from mathuin@bsd.network

Toot

Written by Sminez :ferris: on 2024-11-15 at 22:51

@mathuin I had a script contributed to ad today that worked along these lines by sending the highlighted text to an active repl window: https://github.com/sminez/ad/blob/develop/data%2Fcontrib%2Fsh%2FsendtoRepl

This sort of thing is something I'm interested in tinkering with: ideally I'd like to get something along the lines of org babel tangling working based on structural regex.

=> More informations about this toot | More toots from sminez@hachyderm.io

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113489417730094116
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
261.639649 milliseconds
Gemini-to-HTML Time
0.654309 milliseconds

This content has been proxied by September (3851b).