You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
to select the item, press <enter> or <tab>. Same as (3)
I used to use nvim + CoC, so don't want to take my fingers of the homerow. Using the arrow keys to navigate the options is cumbersome. CoC does it like this:
when you hit <tab>, the selected item is inserted into the buffer and the cursor is placed at the end of the inserted text, but the popover stays open, the respective option is selected.
if intead you want to select a different item, you can use <tab> to cycle through the options (and <shift-tab> to cycle reversely). The old insertion is removed and the newly selected item is inserted, the cursor is placed at the end of the inserted text
upon any other keypress than <tab> (for example continuing typing a space), the suggestion is accepted and the popover is closed
class |
to cancel the completion, pimply press <esc>, then the inserted text is removed and the popover is closed.
c|
Frankly I don't see any downside of this, users of the arrow-key/return camp can still do that, but vim users don't have to leave the homerow. It's much faster and more ergonomic. It feels nicer, since you automatically see what you will be inserting and it integrates so much nicer into the flow of typing.
Is it possible to configure zed to behave this way? Would be open to implement this behaviour or accept a PR? (I'm new to rust, but I would give it a try if there is the possibility to have it accepted)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I love zed, but the ergonomics of tab-completion are not what I am used to. It currently works like this
c
<tab>
, the selected item is inserted into the buffer and the popover is closed, the cursor is placed at the end of the inserted text<down>
to change the select<enter>
or<tab>
. Same as (3)I used to use nvim + CoC, so don't want to take my fingers of the homerow. Using the arrow keys to navigate the options is cumbersome. CoC does it like this:
c
<tab>
, the selected item is inserted into the buffer and the cursor is placed at the end of the inserted text, but the popover stays open, the respective option is selected.<tab>
to cycle through the options (and<shift-tab>
to cycle reversely). The old insertion is removed and the newly selected item is inserted, the cursor is placed at the end of the inserted text<tab>
(for example continuing typing a space), the suggestion is accepted and the popover is closed<esc>
, then the inserted text is removed and the popover is closed.Frankly I don't see any downside of this, users of the arrow-key/return camp can still do that, but vim users don't have to leave the homerow. It's much faster and more ergonomic. It feels nicer, since you automatically see what you will be inserting and it integrates so much nicer into the flow of typing.
Is it possible to configure zed to behave this way? Would be open to implement this behaviour or accept a PR? (I'm new to rust, but I would give it a try if there is the possibility to have it accepted)
Beta Was this translation helpful? Give feedback.
All reactions