Re: mc Digest, Vol 103, Issue 3



# whatis meld
meld: nothing appropriate
--- .mc.menu
D       Delete tagged files if a copy exists in the other directory.
        if [ "%d" = "%D" ]; then
          echo "The two directores must be different"
          exit 1
        fi
        for i in %t
        do
          if [ -f %D/$i ]; then
            SUM1="`sum $i`"
            SUM2="`sum %D/$i`"
            if [ "$SUM1" = "$SUM2" ]; then
              rm $i && echo ${i}: DELETED
            else
              echo $i and %D/$i differ: NOT deleted.
            fi
          else
            echo %f has no copy in %D/%f: NOT deleted.
          fi
        done
???? BTW I found that any macros which use Fkeys[which is essential for mc]
is no good, because the macro waits for the input
to the F-key. I can't remember, but probably for F7

On 11/29/12, mc-request gnome org <mc-request gnome org> wrote:
Send mc mailing list submissions to
      mc gnome org

To subscribe or unsubscribe via the World Wide Web, visit
      https://mail.gnome.org/mailman/listinfo/mc
or, via email, send a message with subject or body 'help' to
      mc-request gnome org

You can reach the person managing the list at
      mc-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mc digest..."


Today's Topics:

   1. external diff (Frank Dietrich)
   2. Re: external diff (Andrew Borodin)


----------------------------------------------------------------------

Message: 1
Date: Wed, 28 Nov 2012 19:42:47 +0100
From: Frank Dietrich <ABLEsoft gmx de>
To: mc gnome org
Subject: external diff
Message-ID: <20121128194247 4c6633f6 example com>
Content-Type: text/plain; charset=US-ASCII

Hi,

is it possible to configure an external diff tool?
I would like to use meld in case I need to diff a directory.

Current I do it like this
  in panel1: cd ..
  in panel2: cd ..
  type command 'meld '
  in panel2: CTRL-SHIFT-ENTER
  in panel1: CTRL-SHIFT-ENTER
  press ENTER to execute the command

I would like to reduce the number of steps needed to compare the two
selected directories without leaving them.

cheers
Frank
--


------------------------------

Message: 2
Date: Thu, 29 Nov 2012 08:25:57 +0400
From: Andrew Borodin <aborodin vmail ru>
To: mc gnome org
Subject: Re: external diff
Message-ID: <web-1720729989 box vrn ru>
Content-Type: text/plain;charset=koi8-r

On Wed, 28 Nov 2012 19:42:47 +0100 Frank Dietrich wrote:
is it possible to configure an external diff tool?
I would like to use meld in case I need to diff a directory.

Current I do it like this
  in panel1: cd ..
  in panel2: cd ..
  type command 'meld '
  in panel2: CTRL-SHIFT-ENTER
  in panel1: CTRL-SHIFT-ENTER
  press ENTER to execute the command

I would like to reduce the number of steps needed to compare the two
selected directories without leaving them.

Read the "Macro Substitution" subsection in mc manual page.

--
Andrew


------------------------------

_______________________________________________
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


End of mc Digest, Vol 103, Issue 3
**********************************




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