Re: feature wanted: ctrl-RETURN



On Sun, 9 Nov 2003, Thomas Schuett wrote:

Of course, everybody always wants more, and so why not me ,-) I found
out by random (fingers too thick), that in total commander
ctrl-shift-return beams in the selected file with absolute path.  This
gives you the possibility to do the mgdiff (as example) with files from
different directories.

Is this somehow possible too?

Yes, as long as your terminal can detect Ctrl-Shift-Enter and distinguish
it from other key combinations.  This patch against CVS does it.  I think
I'll apply it, but I want to check first if Far does something even better
or more consistent.

=================================
--- src/main.c
+++ src/main.c
@@ -1497,6 +1497,13 @@ midnight_callback (struct Dlg_head *h, d
            return MSG_HANDLED;
        }

+       /* Ctrl-Shift-Enter */
+       if (parm == (KEY_M_CTRL | KEY_M_SHIFT | '\n')) {
+           copy_current_pathname ();
+           copy_prog_name ();
+           return MSG_HANDLED;
+       }
+
        if ((!alternate_plus_minus || !(console_flag || xterm_flag))
            && !quote && !current_panel->searching) {
            if (!only_leading_plus_minus) {
=================================

-- 
Regards,
Pavel Roskin



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