Proposed patch: Alt-O on files to select current directory

Pavel Roskin proski at gnu.org
Wed Mar 23 21:25:48 UTC 2005


Hello, Miguel and everybody!

I'm sorry, I was too busy to do anything about the issue with Alt-O,
even to argue about it.  But I'd like to fix the current code a bit to
make it less annoying to me.

Alt-O on a file makes the inactive panel change to the parent directory
of the one in the active panel.  It would be great to move selection on
the inactive panel to select the entry corresponding to the current
directory on the active panel.

This way, I could use Alt-O, Tab, Enter to emulate the behavior of Alt-O
in mc 4.6.0.  Also, I could press Tab and use Alt-O or cursor keys to
navigate directories with similar names.

Miguel, since you wanted the old behavior, I'd like you to see the patch
so you don't complain again that I broke something you liked.

ChangeLog:

	* screen.c (chdir_other_panel): When used on a file
	entry, move selection on the inactive panel to select
	the entry for the current directory on the active panel.

-- 
Regards,
Pavel Roskin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: alt_o_select.diff
Type: text/x-patch
Size: 823 bytes
Desc: not available
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20050323/2558da78/attachment.bin>


More information about the mc-devel mailing list