RE: https://rstats.me/@adamhsparks/116232309278499930

I was inspired by this post to fork R.nvim and implement `external_term = "ghostty_split"` leveraging Ghostty Apple Script integration.
After using it for a little, I am not sure `terminalgraphics` really fits with my workflow.
For the moment, I think I will stick with `httpgd` (which is currently back on CRAN), yet it is good to know there is a viable alternative.

@beps can you share your `ghostty_split` method? I was using Ghostty but the lack of native support in R.nvim meant that I didn't pursue that option.
@adamhsparks Sure. I just need to clean it up a little bit.

@adamhsparks You can find the `ghostty_split` branch here:
https://codeberg.org/gcarlino/R.nvim/commit/9a28fbbce133141dbd04097560fa4513b6c0dc73

It introduces the option `external_term = "ghostty_split“`, leveraging AppleScript in Ghostty. I do not know if there are better ways to do it, not limited to macOS.

Anyway, please keep in mind I did very limited testing since at the moment I am still using httpgd.
Furthermore, I did it with the help of AI (which is a concern to me), but I have fully reviewed and partly rewritten it.

#RNvim #Rstats #ghostty

Split ghostty window with AppleScript · 9a28fbbce1

New option: external_term = "ghostty_split" use AppleScript to split the Ghostty terminal window.

Codeberg.org
@beps cheers! I’m using macOS as well, hence asking. I am curious to see other methods.