zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
39.36k stars 2.04k forks source link

vim: Allow alactritty vim mode #7417

Open NukaCody opened 4 months ago

NukaCody commented 4 months ago

Check for existing issues

Describe the feature

Alacritty has a vim mode option and it seems like y'all use alacritty as the embedded terminal. Is there an option to enable vim mode movements when the terminal is focused?

If applicable, add mockups / screenshots to help present your vision of the feature

No response

ConradIrwin commented 4 months ago

@NukaCody this is an interesting idea!

One of the problems we ran into recently was wanting to make ctrl-w down go to the terminal pane; but unfortunately ctrl-w is already used for the terminal; so you can't go back.

The way vim solves this is to have the terminal be modal too (you can do i to get into terminal mode and ctrl-\ ctrl-n to leave).

Is this what you're imagining, or is it something else?

mrnugget commented 4 months ago

I think what they're referring to is Alacritty's vi mode: https://github.com/alacritty/alacritty/blob/master/docs/features.md#vi-mode Ever used tmux and used its ctrl-b [ scrollback mode where you can navigate through your terminal with keybindings? That's similar, except it's built into Alacritty.

NukaCody commented 4 months ago

What mrnugget mentioned was what I was referring too but honestly any mechanism that allows the ability to find error message or json output in the terminal message and "yank" it to system clipboard is neat. The inspiration came from how jonhoo navigates his terminal during rust streams.