@
@
@smind2011-01-28 13:44:04
Midnight Commander
@smind, 2011-01-28 13:44:04

I would like mc to have the same macro mechanism as in far, are you ready to help with testing?

The question is: will there be people ready to test the functionality of macros before it is merged into the main branch.
For testing you need:

  1. the ability to build programs for the desired platform
  2. having git installed

I’ll tell you the rest if there are questions ...
I will be very grateful if someone responds ...

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
mambet, 2011-01-28
@mambet

I'm ready.

S
smind, 2011-01-28
@smind

collect like this

git clone git://midnight-commander.org/git/mc.git
cd mc
git checkout -b 323_editor_macros origin/323_editor_macros
autogen.sh
configure --prefix=$(pwd)/TEST
make && make install
TEST/bin/mc

S
smind, 2011-01-28
@smind

if the macro file ~/.local/share/mc/mc.macros has not been created, then you can create

mkdir -p ~/.local/share/mc/
touch ~/.local/share/mc/mc.macros
<pre>

S
smind, 2011-01-28
@smind

to test the operation of external filters, you can put something like ctrl-W=EditPipeBlock:33 in the
[editor] section; this will mean that the external script file will be searched in ~/.local/share/mc/mcedit/macros.d/ with the name macros.33.sh the content is something like this

l Upper case selection
        TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1
        cat %b > $TMPFILE
        cat $TMPFILE| sed 's/\(.*\)/\U\1/' >%b
        rm -f $TMPFILE

this filter will convert the text selected in the editor to upper case.
for more information, you can look at the section about mc.menu in man mc

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question