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"?

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)

Similar Messages

  • Set midnight commander as default file manager.

    How can i set mc as a default file manager to open files from chrome downloads in it?
    I've put a .desktop file inside /ust/share/applications/
    midnight-commander.desktop
    [Desktop Entry]
    Name=Midnight Commander
    Type=Application
    Terminal=true
    Comment=A visual file manager
    Exec=mc
    TryExec=mc
    Icon=MidnightCommander
    Categories=System;FileTools;FileManager;
    and run xdg-mime default midnight-commander.desktop inode/directory. But when i try to open something from chrome downloads nothing happens.

    anonymous_user wrote:You set "Terminal=true", but what terminal is it trying to run? Do you have xterm installed?
    I'm using zsh + urxvt. Xterm is also installed
    Last edited by innocent_rifle (2013-01-10 12:26:54)

  • How to get  the choice clicked by the user on a Confirmation dialog?

    Hi,
    'm trying with Confirmation dialog which should return
    'yes', 'No', or 'Cancel'
    I wrote like:
    String Message="Do u want  to update ??";
         IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();
         IWDConfirmationDialog dialog =wdComponentAPI.getWindowManager().createConfirmationWindow( Message, controllerInfo.findInEventHandlers("Yes"), "Yes");
         dialog.addChoice(controllerInfo.findInEventHandlers("No"),"No");
         dialog.addChoice(controllerInfo.findInEventHandlers("Cancel"),"Cancel");
         dialog.open();
    It works as a normal dialog window
    But how can I get the choice that is clicked by the user.
    ie . either 'Yes', 'No', or 'Cancel'.
    can any body help me
    thanks
    Smitha

    Smitha,
    In addition to your code, create 3 event handlers in your controller, name them Yes, No, Cancel. In every event handler you know what event was fired, i.e. what button is pressed.
    Valery Silaev
    EPAM Systems
    http://www.NetWeaverTeam.com

  • How do I stop the "Confirm Dialog Preference" box from appearing everytime I load a page?!

    Every time I a go to a new page, whether it is the same site or not, I get a dialog box that appears that reads "Confirm Dialog Preference," and the options include yes or no. How do I get this to stop? It is really, really annoying.

    Can you attach a screenshot showing the dialog?
    Does the issue still occur if you start Firefox in Safe Mode? http://support.mozilla.com/en-US/kb/Safe+Mode
    How about with a new, empty profile? http://support.mozilla.com/en-US/kb/Basic%20Troubleshooting#w_8-make-a-new-profile

  • Logout confirmation dialog box

    Hi,
    Kindly provide me some sample example for showing confirmation dialog box in ADF (jspx page) on click of of a RichCommandImageLink?
    Thnx,
    Vikas

    Here we go:
    Code for the command button
                      <af:commandButton text="Logout" id="cb2">
                        <af:showPopupBehavior popupId="p1" triggerType="action"/>
                      </af:commandButton>
                      <af:popup id="p1">
                        <af:dialog id="d2" dialogListener="#{LoginLogout.dialogLogoutListener}">
                          <af:outputText value="logout?" id="ot2"/>
                        </af:dialog>
                      </af:popup>In a managed bead (here called LoginLogout) implement the dialog listener and navigation if the user really wants to logout
        public String logoutTarget(String aTarget)
            ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();
            HttpServletResponse response = (HttpServletResponse) ectx.getResponse();
            String url = ectx.getRequestContextPath() + aTarget;
            HttpSession session = (HttpSession) ectx.getSession(false);
            session.invalidate();
            try
                response.sendRedirect(url);
                FacesContext.getCurrentInstance().responseComplete();
            catch (IOException e)
                e.printStackTrace();
            return null;
        public void dialogLogoutListener(DialogEvent dialogEvent)
            if (dialogEvent.getOutcome() == DialogEvent.Outcome.ok)
              logoutTarget("/byby.html");
        }The method logoutTarget(String aTarget) does the navigation to a target which is given as parameter. This method is called by the dialogListener if the use clicks ok. In case the user closes the dialog or clicks cancel, the dialog listener is NOT called at all.
    We use a normal html page as target of the logout because using a jspx page causing trouble sometimes. The session gets invalidated in the bean, but the URL still contains the old session info in the url, resulting in some side effects.
    Timo

  • HT1343 Is there a shortcut for "Revert Changes" in the Close/Save confirmation dialog box?

    In OS X 10.8 Mountain Lion, the Close/Save confirmation dialog asks the user:
    Do you want to save the changes made to the document “Screen Shot 2012-10-12 at 12.35.12.png”?
    Revert Changes          Cancel     Save
    Is there a keyboard shortcut for this command, as there is one for Delete (Cmd+Delete) in new document closing confirmations?

    I'm not sure if there is a shortcut (I didn't find one), but if you turn on Full Keyboard Access in the Keyboard system prefs, all controls can be accessed from the keyboard. You can tab through (or arrow keys) the buttons. The active button will be outlined and can be activated with space bar. Since Revert Changes is the first button, it will come up outlined and you can just hit the spacebar to choose it.

  • Best approach to implement reusable confirmation dialog ?

    Hi,
    What's the best approach to implement reusable confirmation dialogs with ADF 11g?
    e.g.: "Do you realy want to delete this client record (yes/no)?" should be used on several pages but with different message text.
    Also I have to know in the calling page which button (yes, no, ...) the user has pressed in the af:dialog.
    If it's af:popup is it possible to place af:dialog within page template to avoid placing af:popup within each page?
    regards
    Peter

    Hi,
    What's the best approach to implement reusable confirmation dialogs with ADF 11g?
    e.g.: "Do you realy want to delete this client record (yes/no)?" should be used on several pages but with different message text.
    Build a declarative component
    Also I have to know in the calling page which button (yes, no, ...) the user has pressed in the af:dialog.
    You can do this through a method reference in a declarative component. Its a method on the calling page's managed bean that is invoked from the declarative component
    If it's af:popup is it possible to place af:dialog within page template to avoid placing af:popup within each page?
    May not make sense but should be possible
    Frank

  • [SOLVED] midnight commander - show size in MB or GB

    mc displays size in KB .. can it show file size in MB or GB ?
    Last edited by xhc (2012-05-25 22:01:20)

    The available size display option offers two modes:
    man mc
    Use  SI  size units.  If this option is enabled, Midnight Commander
           will use SI units (powers of 1000) when displaying any byte  sizes.
           The  suffixes  (k,  m  ...)  are  shown  in lowercase.  If disabled
           (default), Midnight Commander will  use  binary  units  (powers  of
           1024) and the suffixes are shown in upper case (K, M ...)
    You can access the variable and change it in
    Options -> Panel options ... -> Use SI size units
    By default, MC will display K|k / M|m suffixes the following way:
    279426K file1.mp4
    for a 279 MB file, and
    1179M file2.mp4
    for a 1,18 GB file, in both cases calculating the size either using powers of 1000 (SI units), or 1024. The only approximate value in KB / MB / GB as well as the percent of free space left can be displayed in mini-status, if it is enabled.
    Last edited by bohoomil (2012-05-25 17:02:54)

  • Display confirmation dialog when opening PDF

    I've been asked to add a confirmation dialog box to a PDF file that includes a legal disclaimer. The dialogue box would display when opening the pdf document and include yes and no buttons to confirm that the user understands and accepts the disclaimer before reading the document. Selecting "Yes" would allow them to proceed, while selecting "No" would close the file. Is it possible to create something like this in Acrobat? I'm running Acrobat Standard 8.
    Thanks,
    Eric

    Hi Eric,
    Yes, you can do that but it's not an easy task.  You need to code the dialog in JavaScript and then use OCGs (layers) for a cover sheet that will remain "on" until the user selects the Yes button in the dialog.  Coding the dialog is a major task to do by hand and I'm not sure if Acrobat 8 Standard has the OCG capability.
    Check out our tool AcroDialogs(http://www.windjack.com/products/acrodialogs.html) for making dialog creation about 100 times faster and easier, and there is an example of a license dialog agreement just like what you are asking for on that page- scroll down to the Document License Dialog Example. But again, that solution was developed with Acrobat Professional and I'm not sure if Standard handles OCGs or not- you'll have to check on that.
    Also keep in mind this is by no means a foolproof security methodology.  However, it does provide a way to ensure the user agreed to the dialog before viewing the rest of the content.
    Hope this helps,
    Dimitri
    WindJack Solutions
    www.windjack.com
    www.pdfscripting.com

  • Code of confirmation dialog window

    Hi all,
          I have a component in which, I need to display confirmation dialog window when am trying to close a  window  with three buttons like YES,NO and CANCEL ...Its not like an pop-up window..can anybody provide source code for this..Thanks in advance

    Use Work Protect mode if you are running in Portal environment.
    SAP Online Help : http://help.sap.com/saphelp_nw70/helpdata/en/45/b76f4169e25858e10000000a1550b0/content.htm
    Thread which discuss the same :
    Re: Save Changes before leaving a web dynpro application

  • Confirmation Dialog in 10g

    hi all,
    i 've a Delete button(af:commandbutton) on page. its 'action' attribute is associated with a method in bean.
    <af:commandbutton action="#{abcbean.delete_action}"/>.
    how i put a modal confirmation dialog on button like, 'Are u sure want to delete ...?' with yes-no button.
    when user presses 'yes' on dialog, method in bean would invoke. when presses 'no' remain on same page.
    i m using jdev10g.
    thanks with regards to all

    hi you can call a popUp(Dialog) and execute the code later with the returnListener property of that button
    the returnLietener have an object call ReturnEvent in this object allow Map objects
    example code:
    jsp commandButton java Action code:
    Map param = null;
    param = new HashMap();
    param.put("Yes","Ok");
    AdfFacesContext.getCurrentInstance().returnFromDialog(null,param);
    returnListener Method:
    public void handleReturnBuscar(ReturnEvent returnEvent) {
    Map param = (Map)returnEvent.getReturnParameters();
    if(param !=null){
    //delete the row
    more info = http://soadev.blogspot.com/2010/02/adf-faces-rc-simple-but-robust.html

  • [Solved] Midnight Commander file associations - ePub

    After I installed Midnight Commander, it would open epub files with ebook-viewer (Calibre viewer) out of the box, without any specific config from me, which was great, since that was exactly what I wanted it to do.
    Since right now, it no longer does that, and open the files with Firefox instead (which prompts me to save them somewhere.)
    I did not install any update between yesterday and right now, so I wonder what could have happened. I actually restarted Firefox just before that because it froze, and the version 32 was recently shipped, so that might count as an update.
    I have the default Midnight Commander settings, and from what I understand it's supposed to use lucidor to open epub files, which I don't have (that's in /usr/lib/mc/ext.d/doc.sh lines 177-178.)
    So my question is, where this association, previously with Calibre, now with Firefox, comes from?
    I understand that I could just edit ~/.config/mc/mc.ext to have the proper association, but if I could avoid changing the default settings, I would prefer so.
    Last edited by bonob (2014-09-11 18:35:43)

    Thanks to your pointing at xdg, I understand what's happening. Poor Firefox or xdg associations are actually innocent, what happens is that after I close this particular book (which I just started to read before the problem happened) in Calibre, the mimetype changes, from application/epub+zip to application/zip (Calibre saves the file on exit, because it puts a bookmark at the current location.)
    I don't know how to repair the mimetype, but I have a copy of the original file, so that's fine. I'll try to find more details and report to the Calibre developer, and mark this thread solved.
    Thanks again!

  • Dependent Files Dialog Default Button

    Sometimes I think I've been halucinating, but ...
    I could have sworn that when I first installed Dreamweaver CS6 that the default button on the put Dependent Files dialog was "No". And then one day the default became "Yes". I almost feel like I hit some mystical key-combo that changed it's behaviour & mine. Hmmm.
    So is there a way to change the default button to "No"? It would be my preference.
    Thanks in advance!
    OS X 10.8.1
    Dreamweaver CS6 v12.0 Build 5842

    butisitart wrote:
     Am I going crazy? Was I halucinating? Did I dream the whole thing?
    I couldn't possibly comment.
    I remember writing something about the way dependent files work many moons ago, so I checked my "Essential Guide to DW CS4" and found a little gem of information that I had completely forgotten about.
    The default for Put Dependent Files is No. However...
    If you deselect the check box labelled  "FTP transfer options: Select default action in dialogs after [30] seconds", guess what happens?
    You've got it... The default changes to Yes.
    Heaven only knows why this happens, but select that check box again, and your sanity should be preserved for a little while longer.

  • Save dialog default

    Is there a way when using .saveDialog to have the dialog default to a specific directory when it pops up? right now i believe it defaults to the parent directory of the file or the script. thanks

    Command-R.
    Usually, butttons in a dialog can be accessed by Command-(first letter of button name). The blue button is Return and the Cancel button is Escape. For other buttons try Command-(first letter of button name).

  • Confirmation Dialog Problem

    Hello!
    I am facing a peculiar problem in the production system where in the confirmation dialog isn't working and the NullPointerException is getting thrown. For some reason the production server isn’t getting the handle for the event even though they are defined and the same piece of code is working fine in both Dev & QA.
    Could someone look into the code and let me know what I can do to make it work.
        try
              String dialogTxt =     "Are you sure you want to ignore changes? ";
              IWDEventHandlerInfo eventIgnore               =     wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("evtIgnoreChanges");
              IWDConfirmationDialog dialog               =     wdComponentAPI.getWindowManager().createConfirmationWindow(dialogTxt,eventIgnore,"Yes");
              IWDEventHandlerInfo eventIgnoreCancel     =     wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("evtIgnoreCancel");
              dialog.addChoice(eventIgnoreCancel,"No");
              dialog.setWindowPosition(WDWindowPos.CENTER);
              dialog.setWindowSize(250,50);
              dialog.open();
        }catch(Exception ex)
             wdComponentAPI.getMessageManager().reportException("Error ignoring changes",true);
             ex.printStackTrace();
    Thank you very much in advance.
    Regards,
    Vikram

    Hi,
    Use this code:
    IWDControllerInfo controllerInfo =
            wdControllerAPI.getViewInfo().getViewController();
          String dialogText = "Are you sure you want to ignore changes?";
          IWDConfirmationDialog dialog =
            wdComponentAPI.getWindowManager().createConfirmationWindow(
              dialogText,
              controllerInfo.findInEventHandlers("evtIgnoreChanges"),
              "Yes");
          dialog.addChoice(
            controllerInfo.findInEventHandlers("evtIgnoreCancel"), "No");
          dialog.open();
    check if you have created events with name evtIgnoreChanges & evtIgnoreCancel in your view controller.
    Regards,
    Rajeev

Maybe you are looking for

  • Can't move layers in Mac Acrobat 9 Pro

    I can't move layers in Acrobat 9 Pro, even though Adobe says it's possible. All that I get is a circle wih a slash at the cursor on clicking and holding the mouse, indicating that moving the layer up or down in the stack is not possible. No key press

  • Web based booking in of service orders

    A company I have recently been doing work for approached me with a interesting request. They wanted a method for users to be able to book in service orders themselves, online. Vendors were not being paid on time due to the fact acknowledgment of rece

  • Run a formula if a cell contains particular data from various cells

    I have a formula which checks a list of domains to see what the TLD is and then returns a renewal price based on the TLD e.g. .co.uk may return with $5.99 and .com $10.00. The formula I am using is below: =VLOOKUP(RIGHT(A2,LEN(A2)−SEARCH(".",A2)+1),$

  • How to export for both windows and mac users

    I'm new to the video stuff, so i have a few questions. i am planning to post videos on my blog. I want to have them in a format that both windows and mac users can play. is this a possibility or will i have to export .wmv for windows and quicktime fo

  • Accessing an EJB property

    I have an ejb and i am using oracle weblogic wokshop . I have made an ejb control in the workshop . now i set a boolean field in the ejb . Now i want to access this field's value in the workshop using ejb control . I am unable to do so .Please help