Answer the question
In order to leave comments, you need to log in
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:
Answer the question
In order to leave comments, you need to log in
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
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>
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question