top | item 43047663

(no title)

as-cii | 1 year ago

Hey! Zed founder here.

We totally agree with this and that's why Zed will switch the keybinding for accepting an edit prediction to `alt-tab` when the cursor is in the leading whitespace of a line. This way you can keep using `tab` for indenting in that situation.

Also, when there's both an edit prediction and and LSP completion, Zed switches the keybinding to `alt-tab` to prevent the conflict with accepting an LSP completion.

Curious to hear what you think!

discuss

order

danielsamuels|1 year ago

For reasons that should be obvious, that's not going to work on Windows.

as-cii|1 year ago

Sorry, I assumed macOS: but you're right! For Linux (and Windows, once we ship support for it) the keybinding is alt-l to avoid conflicting with tab switching.

awfulneutral|1 year ago

Ohhh, is that why I keep pressing tab and it doesn't accept the prediction lately? I thought it was a bug. It feels weird for tab to double-indent when it could be accepting a prediction - I wonder if alt-tab to do a manual indent rather than accept the current prediction might be preferable?

Edit - On the other hand, a related issue is that if the prediction itself starts with whitespace, in that case it would be good if tab just indents like normal; otherwise you can't indent without accepting the prediction.

VWWHFSfQ|1 year ago

Is there way to change this key binding (tab for accept) right now? Because otherwise I have to stop using this program. It is absolutely obnoxious.

maxloh|1 year ago

Hi. Could you explain how you plan to make money with the model while open-sourcing it?

It seems contradicting to me.

recov|1 year ago

Not everyone can, or wants to set up running a local model. And it'll probably be slower on most users GPUs then what zed runs it on.