Re: mc.ext.ini - new format causes problems
Morten Bo Johansen via mc <[email protected]> Thu, 1 Jun 2023 08:46:38 +0000
| Newsgroups | gmane.comp.gnome.apps.mc.general |
|---|---|
| Message-ID | <DB7PR03MB510033960B34E47C148C11CECD499@DB7PR03MB5100.eurprd03.prod.outlook.com> |
Hi Yury, Sorry for not making myself clear enough. What doesn't work is that if I have defined an entry for opening e.g. a text file with the extension ".txt", like this: [txt] Shell/.txt Open=openfile.sl %f The "openfile.sl" script should open a file with this extension in my editor. Of course I have made sure that it works from the command line. But in mc, nothing happens when I type <enter> on a *.txt file. This used to work fine. What am I doing wrong? Thanks, Morten ________________________________ Fra: Yury V. Zaytsev <[email protected]> Sendt: 31. maj 2023 19:44 Til: Morten Bo Johansen via mc <[email protected]> Cc: Morten Bo Johansen <[email protected]> Emne: Re: [mc] mc.ext.ini - new format causes problems On Wed, 31 May 2023, Morten Bo Johansen via mc wrote: > With the old format of mc.ext.ini I could do e.g. > shell/.ms > Open=openfile.sl %f > > where openfile.sl is my own script that opens files by their > extensions and takes one argument, the file to be opened. This > worked fine with the old format, but no longer, not with a > capitalized version of Shell/.ms either. > > What must I do to use my script? I don't understand your question. The new format is documented in the file, you can just take any of the existing sections as an example: https://github.com/MidnightCommander/mc/blob/master/misc/mc.ext.ini.in What is it exactly that you have tried and what doesn't work? -- Sincerely yours, Yury V. Zaytsev -- mc mailing list [email protected] https://lists.midnight-commander.org/mailman/listinfo/mc