Assistant: Default to block under cursor #26860
Closed
dremnik
started this conversation in
Feature Ideas / Enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know people are already thinking about the agent mode and all that, which is definitely where things should go .. but one small thing that would be massive convenience is to have the inline assistant automatically select the code block under your cursor.
This is something that Cursor does with cmd-k and is really nice.. so if you are over the definition of a function it automatically puts the entire function in scope for the change.
Seems like it would be really easy to do considering Zed already has all the elements necessary for it..
It's just that little bit of friction each time (not horrible as a vim user to use
vaf
first) but it would still be nice if it did thisCurrent:

Ideal:

It's worth noting that I've found Zed's assistant to be a little finicky wrt aligning the scope around a consistent indent in the code .. if you cross over the end of the function or only select the top half, it can tend to remove braces or destroy the structure, which is why this feature would be especially nice (helps avoid that kind of stuff from accidental misselections)
Beta Was this translation helpful? Give feedback.
All reactions