Kann ich ein Trennzeichen in das Mitternachtskommandantenmenü einfügen?

652
okutane

Ich möchte einige Elemente in das mc-Menü (das durch F2 geöffnet wird) zusammenfassen. Kann ein Trennzeichen vor ihnen eingefügt oder in ein Untermenü eingefügt werden?

2

1 Antwort auf die Frage

2
whitequark

Probably, not.

The format of the menu file is very simple. Lines that start with anything but space or tab are considered entries for the menu (in order to be able to use it like a hot key, the first character should be a letter). All the lines that start with a space or a tab are the commands that will be executed when the entry is selected. 

But MC allows you to make multiple menu entries with same shortcut and title, so you can make a menu entry that looks like separator and does nothing, like:

a hello echo world - -------- b world echo hello - -------- c superuser ls / 

This will look like:

menu with separators