jesseduffield / lazygit

simple terminal UI for git commands
MIT License
52.65k stars 1.84k forks source link

Confirmation Dialogue - How to interact? #3583

Closed zhdenny closed 5 months ago

zhdenny commented 5 months ago

I occasionally receive Yes/No confirmation dialogue messages in the Command Log.....How do I interact with these messages!? When I see the message, I press "y" or "n" but that doesn't work. Screenshot below is just one example....it isn't the only confirmation message I see.

According to the Keybindings Chart: "y" is to "Copy to Clipboard" "n" doesn't do anything.

I tried to mouse click over the "Command Log" window. That doesn't do anything. I'm not really sure what to do here.

image

stefanhaller commented 5 months ago

There's no way to interact with these, I'm afraid. Where do they come from?

Lazygit only has support for certain kinds of prompts that occur during certain operations, e.g. when you push and ssh asks you for a passphrase. The one in the screenshot doesn't look like a standard prompt (never seen it myself).

zhdenny commented 5 months ago

I cd into a git repo in my terminal, type "lazygit", lazygit opens and I see this message immediately almost all the time.

image

zhdenny commented 5 months ago

Maybe this has to do with using ssh to authenticate into github....and "StrictHostKeyChecking ask" setting in ssh_config file. I'll experiment with changing that to:

Host github.com
     StrictHostKeyChecking no

This seems to have solved this specific confirmation dialogue. I guess these various confirmation dialogue messages are all just coming straight from git itself and I should search for how to suppress any confirmation dialogue lazygit does not support.