[SOLVED] [Midnight Commander] A couple of questions
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using MC ("3:4.7.0.9-1", says dpkg) on Ubuntu 11.04, and have a couple of questions about using MC.
1. I often need to have the two panels show the same directory.
ALT+o doesn't work, as this shortcut is used by the Windows terminal emulator I'm using.
ESC+o sort of works, except that it cd's to the parent directory instead of the same directory: For instance, if the right panel is in /usr/src/mydir, hitting TAB to switch to the left panel followed by ESC+o cd's to /usr/src instead of /usr/src/mydir.
Does someone know why MC behaves that way?
2. Does MC support going back to the previous directories through eg. ALT+left arrow like TotalCommander does in Windows?
3. How can I jump to the first file/directory starting with a given letter? In TotalCommander, I use the ALT+(letter) shortcut, but this feature doesn't work in MC.
Hello,
1) Did you try Alt-i ? It should make the current directory of the current panel also the current directory of the other panel
2) You have C-PageUp which should change directory to ..
and Alt-y to change to the previous directory in the history (Alt-u to the next)
3) To go to an entry in the current panel, just type in the first letters of the name and Enter when you are at the right entry.
You can also redefine the hotkey bindings in a keymap-file : copy the default /etc/mc/mc.keymap to $HOME/.mc/mc.keymap
And edit it to change the key bindings.
You should read the integrated Help of mc (F1 key) where all the above is written.
Regards.
Edit : the last version of mc is 4.7.5.2
if possible you should upgrade to that version.
2. Does MC support going back to the previous directories through eg. ALT+left arrow like TotalCommander does in Windows?
There's an option in the configuration menus somewhere for "Lynx-like navigation", which allows Left arrow and Right arrow to move through directories, left being "back".
edit:
Quote:
1. I often need to have the two panels show the same directory.
Alt-i works here.
Quote:
3. How can I jump to the first file/directory starting with a given letter? In TotalCommander, I use the ALT+(letter) shortcut, but this feature doesn't work in MC.
Control-s, then type.
Last edited by Stephen Morgan; 07-03-2011 at 08:51 AM.
1. ESC+i works to make the current panel to jump to the same directory as the other panel.
2. CTRL+PageUp doesn't work in my terminal emulator (SecureCRT just scrolls the whole screen), but ESC+y/u does the job.
Options > Configuration > Lynx-like motion doesn't go through the navigation history but rather jumps in/out of a directory so the user doesn't have to hit PageUp followed by Enter
I find ALT+left/right much more intuitive than ESC+y/u, though. I'll check what can done mc.keymap about this.
3. CTRL+s followed by the letter works; To rotate through other items that start with the same letter, keep pressing CTRL+s
Simply hitting the first letter doesn't work in my terminal emulator: The letter is simply displayed at the shell prompt at the bottom of the screen below the MC interface.
Yes you are right, it works only if the command prompt is disabled in Options/Layout: [ ] Command prompt.
Personally I disable the command prompt, and when I need one, I use C-o, so it's why the trick I gave you works on my machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.