ALT ('-') and ALT('+')

Miven Dooligan dooligan at intergate.ca
Wed Oct 9 06:12:58 UTC 2002


Hello.

A few questions:

Is it reasonable to make ALT('=') do
Select All as well?
I use it all the time and that triple bucky
gets a bit... bothersome.

What about ALT('_') for invert selection?
It uses the same keys as the rest of the
select functions and it's a bit easier of
a stretch than ALT-SHIFT-8 :)

Attached is a meager patch if that seems like
a good idea.

*

I see that those functions avoid the directories.
It's a paltry matter to comment out the lines in
cmd.c that check for dirs, but there must be a
reason someone did that to begin with.

It is a good idea when you are fixing file
permissions and stuff, because you almost always
want to treat the files separate from the dirs,
so what if we just comment out the lines in
cmd.c:reverse_selection_cmd_panel(),
that way you can select all, then reverse the
selection to get the directories all selected?
Two keystrokes.  Actually three because you have
to hit ENTER after the select all. I like it,
but I could see why someone else wouldn't.
Usually the subdirs are a minor component of a
directory structure, and it's the files you want
to work on, usually.

Also, the unselect-all SHOULD do directories,
shouldn't it.  That's what it's for, to unselect
everything, isn't it?  Right now it won't touch
selected directories.  Isn't that wrong? If it's
not wrong, could someone please explain why?

Maybe it's because this is a FILE manager, not
a DIRECTORY manager? :) :) LOL...

Anyway, attached are a couple minor patches for those
things if they seem like the right thing to do.



Cheers,
Mr.Picky :)



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: select-all-key.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20021008/496d16d7/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: invert-selection.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20021008/496d16d7/attachment-0001.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unselect-all.patch
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20021008/496d16d7/attachment-0002.ksh>


More information about the mc-devel mailing list