是否可以在午夜指挥官菜单中插入分隔符?

是否可以在午夜指挥官菜单中插入分隔符?

我想将一些项目组合在一起插入到 mc 菜单(按 F2 打开)。是否可以在它们前面插入某种分隔符或将它们放入某个子菜单中?

答案1

可能不会。

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.

但是 MC 允许您使用相同的快捷方式和标题创建多个菜单项,因此您可以创建一个看起来像分隔符但不执行任何操作的菜单项,例如:

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

这看起来像:

带分隔符的菜单

相关内容