Ticket #4444 (new defect) — at Initial Version

Opened 16 months ago

Last modified 16 months ago

MD files not recognized as markdown files by extension

Reported by: wwp Owned by:
Priority: trivial Milestone: 4.8.30
Component: mc-config-ini Version: 4.8.29
Keywords: markdown mc.ext.ini Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

What version of Midnight Commander is used?

2.4.29

Put output of mc -V command (and all other commands described in 'How to report about bugs') here.

GNU Midnight Commander 4.8.29
Built with GLib 2.56.1
Built with S-Lang 2.2.4 with terminfo database
Built with libssh2 1.8.0
With builtin Editor and Aspell support
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
With ext2fs attributes support
Virtual File Systems:

cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, fish

Data types:

char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

What steps will reproduce the problem?

Create or file a markdown file named foo.MD.
Select it, type ENTER to raise the default by-extension action over it.
Nothing happens.

Create or file a markdown file named foo.md.
Select it, type ENTER to raise the default by-extension action over it.
The default action for markdown files is happening.

What is the expected output?

The default action for markdown files.

What do you see instead?

Nothing, because mc.ext.ini wrongly says:

[markdown]
Regex=\.(md|mkd)$
ShellIgnoreCase?=true
Include=editor

The issue is that it uses ShelIgnoreCase?=true instead of RegexIgnoreCase?=true
It should be:

[markdown]
Regex=\.(md|mkd)$
RegexIgnoreCase?=true
Include=editor

Note: See TracTickets for help on using tickets.