Re: mcedit

Jörg Thümmler via mc <[email protected]> Wed, 18 Jan 2023 09:07:24 +0100
Newsgroups gmane.comp.gnome.apps.mc.general
Message-ID <[email protected]>
Am 18.01.23 um 08:47 schrieb Alan Corey via mc:
> How about a /root/config/.mc or /root/.config/.mc?
> 
> On Wed, Jan 18, 2023, 2:07 AM Jörg Thümmler via mc 
> <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>     Am 17.01.23 um 16:45 schrieb Ben via mc:
>      >
>      >
>      > On Tue, Jan 17, 2023 at 8:15 AM Grzegorz Szymaszek
>     <[email protected] <mailto:[email protected]>
>      > <mailto:[email protected] <mailto:[email protected]>>> wrote:
>      >
>      >     Just in case you haven't already tried it: "sudo mc -F"?
>      >
>      >
>      > Yes, I tried that too -- it gave (still gives, I just checked)
>     the same
>      > exact report as mc -F without the sudo.
>      >
>      > --Ben
>      >
> 
>     Hi,
> 
>     to end this i did some testing, at least on my OpenSuse Linux it's like
>     that:
> 
>     Macros are stored in .local/share/mc/mc.macros
>     Mcedit Macros are stored in a [editor] section one line per macro
>     like that:
>              f12=Down:-1;InsertChar:49;...
> 
>     Typed chars are shown as "InsertChar:49;" (the ascii code), keys are
>     named as "Down:-1" above, the "-1" maybe just to have a value after the
>     ":"...
> 
>     If you use "sudo mcedit" or "sudo mc" and then "mcedit", the
>     .local/share/mc/mc.macros of the Admin is used to store.
> 
>     To delete a macro simply delete the line (but the macro is active until
>     you end this mc session (so if you use sudo mc and then from this
>     mcedit, it's not forgotten until you end the mc session, not just by
>     closing mcedit...
> 
>     -- 
>     cu
> 
>     jth
> 
>     -- 
>     mc mailing list
>     [email protected] <mailto:[email protected]>
>     https://lists.midnight-commander.org/mailman/listinfo/mc
>     <https://lists.midnight-commander.org/mailman/listinfo/mc>
> 
> 

Hi,

1st: AFAIK the macro definitions aren't in .config but in .local/share/...

2nd: Ben is on MacOS, there is no /root bu some Admin, there should be a 
.local/share...

-- 
cu

jth

-- 
mc mailing list
[email protected]
https://lists.midnight-commander.org/mailman/listinfo/mc