I feel like I'm taking crazy pills.
-
@swelljoe in my emacs config, TAB indents at the start of the line and auto comps only after a word (and auto comp happens automatically after a short delay too)
@genehack yeah, I could tolerate shell-like tab completion, where it's obvious I'm intending to get an unambiguous completion and a double-tab pops a completions menu. Zed, which is what I'm currently trying to use, defaults to tab instantly completing, and I suppose it must be possible to undo it with backspace or something, but it's super disorienting. I feel a lot of anxiety over stuff like that, it's like, "No that's wrong, what are you doing!? Stop doing wrong things, you're ruining it!"
-
For reference, I disabled it in Zed by editing `settings.json` and adding:
```
"bindings": {
"tab": "editor::Tab"
}
```Ah, but getting the Zig language server working turned tab completions back on, somehow. Jebus. This edit to `keymap.json` seems to have fixed that:
```
{
"context": "Editor && showing_completions",
"bindings": {
"tab": "editor::Tab"
}
},
{
"context": "Editor && edit_prediction && !showing_completions",
"bindings": {
"tab": "editor::Tab"
}
```This may be made more complicated and insane by me using vim mode in Zed, I dunno.
-
Ah, but getting the Zig language server working turned tab completions back on, somehow. Jebus. This edit to `keymap.json` seems to have fixed that:
```
{
"context": "Editor && showing_completions",
"bindings": {
"tab": "editor::Tab"
}
},
{
"context": "Editor && edit_prediction && !showing_completions",
"bindings": {
"tab": "editor::Tab"
}
```This may be made more complicated and insane by me using vim mode in Zed, I dunno.
Jesus Christ, "enter" is fucking deranged, too. It does some kind of autocorrect. How is this behavior usable for anyone? This fixes it:
```
{
"context": "Editor && showing_completions",
"bindings": {
"tab": "editor::Tab",
"enter": "editor::Newline"
} -
Jesus Christ, "enter" is fucking deranged, too. It does some kind of autocorrect. How is this behavior usable for anyone? This fixes it:
```
{
"context": "Editor && showing_completions",
"bindings": {
"tab": "editor::Tab",
"enter": "editor::Newline"
}@swelljoe
I remember when>stty sane
used to fix things. Usually used to recover a cursor at command line after killing a process that captured input without echo.