@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.
@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.
Nice!! Is it a plugin?
@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
Amazing!!
@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.
@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!