TransWikia.com

Go to file/directory in Midnight Commander by typing

Unix & Linux Asked on October 31, 2021

One thing I really miss in Midnight Commander (compared to some GUI file explorers, like f.e. Thunar) is the ability to go to a certain directory by just typing prefix of its name.

For example for a current directory containing:

files
other
many
many_other
some

Typing man would take me to (focus) directory many. Is there any plugin that would let me configure MC that way?

3 Answers

For os x terminal:

Press ⌘ command+⌥ option+o, you will see 'Option is Meta'.

Now works:

  • ⌘ command+s
  • ⌘ command+o
  • ⌘ command+i

Answered by rofrol on October 31, 2021

You can press Ctrl- to go to a list of shortcuts to your preferred directories. You can organize these directories in groups.

On a side note: it's worth to invest a few minutes in reading the manual. There are many, many useful commands you'll discover.

Edit: If all you want is to navigate to a directory in the current panel, then Alt-s is the way to go, as @cuonglm points out. You can then press Alt-o to open the subdirectory pointed to by the cursor in the other panel, and you can also press Alt-l to follow symlinks.

Answered by lcd047 on October 31, 2021

You don't need any plugins. You have two options:

  1. In current directory panel, type Alt+s or Ctrl+s, then type your search pattern, the cursor will jump to the matches sequentially. To toggle through all results that match the current pattern, repeat the keystroke.

    Note: The Ctrl+s combination will freeze many terminal implementations (press [Ctrl+q to unfreeze), so use Alt+s instead if that happens to you.

  2. Disable Command prompt in Options/Layout.

Answered by cuonglm on October 31, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP