You are not logged in.

#1 2013-01-02 01:01:37

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Midnight Commander confirmation dialogs default to "yes"

I finally found a file manager that I like. Yay.

However, Midnight Commander's confirmation dialogs (e.g. when deleting a file) always pop up with "yes" preselected, which means that your data is toast (or whatever) if you accidentally hit Enter. Guarding against accidental keystrokes is IMO a Big Deal, and I consider this a rather serious issue.

I've yet to come up with anything on this on Google... So, does anyone here know how to make those dialogs default to "no"?

Offline

#2 2013-01-02 01:38:42

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: Midnight Commander confirmation dialogs default to "yes"

Options -> Configuration -> Safe delete wink

Offline

#3 2013-01-02 02:45:44

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Midnight Commander confirmation dialogs default to "yes"

Thank you!

Is there per chance a way of setting that behavior for file execution as well, or am I out of luck on that?

Offline

#4 2013-01-02 03:16:31

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: Midnight Commander confirmation dialogs default to "yes"

you are welcome,

Nope, there is no config option for such thing. However you can change the source, in src/filemanager/panel.c then add query_set_sel (1); just before:

        if (query_dialog
            (_("The Midnight Commander"),
             _("Do you really want to execute?"), D_NORMAL, 2, _("&Yes"), _("&No")) != 0)

Offline

Board footer

Powered by FluxBB