Re: mc Digest, Vol 116, Issue 5



On Tue, 17 Dec 2013 04:00:03 -0800, <mc-request gnome org> wrote:


Message: 1
Date: Mon, 16 Dec 2013 14:05:48 +0000
From: James Wonnacott <james tregillis eclipse co uk>
To: mc gnome org
Subject: Changed behaviour of clicking at the top.
Message-ID: <52AF08BC 5020002 tregillis eclipse co uk>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Dear All,

Sorry to raise this again but it's driving me nuts and I only got one
reply last time which didn't help.

#######################################################
#Warning! if you don't think a mouse is an appropriate#
#input device to use on mc please don't read any more.#
#I use a mouse a lot in mc and I like it!             #
#######################################################

I've been using mc for many years and I love it- thanks!

I've recently installed version 4.8.3 on a few Debian servers I've built
and found that I can no longer click at the top of a panel to move up-
it now reverses the sort order instead.
Now, I really would like to get the old behaviour back- is this
possible? please!

Thanks,

James.


It's true. I don't use the mouse much, tend to be a keyboard hotkey
kind of guy. But your question got me playing with mc & mouse. The
mouse support seems to be highly improved over the last time (years
ago) that I fiddled with mouse support.

If you want to change it, the relevant code is in
src/filemanager/panel.c, around line 3645:

[code]
    /* sort on clicked column; don't handle wheel events */
if (mouse_down && (local.buttons & (GPM_B_UP | GPM_B_DOWN)) == 0 && local.y == 2)
    {
        mouse_sort_col (panel, local.x);
        goto finish;
    }

    /* Mouse wheel events */
    if (mouse_down && (local.buttons & GPM_B_UP) != 0)
    {
        if (is_active)
        {
            if (panels_options.mouse_move_pages && (panel->top_file > 0))
                prev_page (panel);
            else                /* We are in first page */
                move_up (panel);
        }
        goto finish;
    }
[/code]

Frankly, I like the sort/reverse sort feature. I didn't even know I
could do that. Very handy. Thank you for drawing it to my attention.


--
Peace and Cheer


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]