WIP of bringing interpreted languages to @zed 👀 (read :rstats:, :julia:, :python: )

Every time i leave zed to write R im like “man, i wish i was in zed”

#rstats

    • Josiah@fosstodon.orgOP
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      @lascapi not done yet! It’s a new zed command “send to terminal”

      Their extensions don’t let you get this flexible. It relies on the editor and lsp context to find expressions and cursor position

      • lionel@fosstodon.org
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        @josi @lascapi I’m very curious how this works exactly! I assume it’s not using Ark’s extended LSP method to find the relevant statement range for execution? A TS query should suffice though.

        • Josiah@fosstodon.orgOP
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago

          @lionel @lascapi i was hoping Ark would work but the Zed extension doesn’t include the LSP.

          It queries the cursor position then uses the active LSP to find the current or next call / statement / expression and copies the text and inserts it into the terminal.

          Very simple!