lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Please change discard all changes confirmation key

Open lukepighetti opened this issue 3 years ago • 6 comments

I hit dd by mistake and lost 8 hours of work. The confirmation key should be different than the initiation key. My suggestion is d followed by y/n

lukepighetti avatar Nov 25 '22 03:11 lukepighetti

@jesseduffield maybe switch it up to d -> D instead of d -> d for discarding all changes for the current file?

mark2185 avatar Nov 25 '22 07:11 mark2185

works for me

jesseduffield avatar Nov 25 '22 10:11 jesseduffield

@lukepighetti would changing the second d to uppercase D suffice?

mark2185 avatar Nov 25 '22 10:11 mark2185

That works for me and will be a welcome change, thank you. And thank you for the extremely fast response.

lukepighetti avatar Nov 25 '22 13:11 lukepighetti

Hey team, is this still active? Would love to take it on if it's fine with you :)

pavleprica avatar Jan 27 '23 18:01 pavleprica

It seems I somehow missed that the PR was already open 😳 Apologies. Though a good question of its status. Nuked my work by accident myself today as well. 😅

pavleprica avatar Jan 27 '23 19:01 pavleprica