LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Midnight Commander (http://www.linuxquestions.org/questions/slackware-14/midnight-commander-868807/)

Woodsman 03-15-2011 08:55 PM

Midnight Commander
 
I'm sure I asked this once before but I can't find the post.

In midnight commander 4.7.x (Current) the listing mode headings include 'n in the top left above the file names. The remaining heading names are Name, Size, Modify time.

What does the 'n mean and is there a way to change the heading name to somethine more meaningful?

Thanks.

mfrias 03-16-2011 01:37 AM

Quote:

Originally Posted by Woodsman (Post 4292059)
I'm sure I asked this once before but I can't find the post.
What does the 'n mean and is there a way to change the heading name to somethine more meaningful?
Thanks.

The character "'" is the type (way) of order and the character that follows ("n") the abbreviations of the column. Possible abbreviations are n, t, m, and c. Then "'n" represents the ascending order and ",n" descending order by name in the panel.

Understand better if you click on the columns of the panel ( name | size | mtime ).

Woodsman 03-16-2011 01:49 PM

Ah, thank you! Yes, now that I understand I see how the heading changes when I modify the Sort Order. I cannot find anything in the docs about that. :scratch:

jbean 06-30-2011 11:41 AM

I will use this tread since my question is about MC editor.

So, instead of mcedit, I am using external editor (good old nano) in my MC configuration, and nano saves file with CTRL+O shortcut. However, the problem is that MC uses the same keys for switching into shell :) Does anyone knows what MC menu file and what lines I should customize so that my MC will use other keys (ex. CTRL+W) to switch bask/forward into shell. Please, do not recommend me to change editor, I'm big fan of nano :)

Thanks in advance.

Perceptor 06-30-2011 12:28 PM

Welcome to LQ! I believe it's /etc/mc/mc.keymap.
Also, you should not be afraid to start your own threads, that way the information is easier to find.

jbean 06-30-2011 01:04 PM

Thanks Perceptor for advice. Btw, mc.keymap do not exist any more, and looking into all other mc conf files and couldn't find anything that looks like shell switch.

For now, only solution on the web I found is to use F3 which also saves file in nano, this could be of help if someone has the same prob.

Woodsman 06-30-2011 02:22 PM

Quote:

Btw, mc.keymap do not exist any more, and looking into all other mc conf files and couldn't find anything that looks like shell switch.
The mc packages is located in the ap branch. You can extract the mc.keymap files from there. The files located in /etc/mc are system-wide files. If you do not want to modify the keymap for all users then copy /etc/mc/mc.keymap to $HOME/.mc and edit that file.

jbean 06-30-2011 03:52 PM

I searched into final source code release : http://www.midnight-commander.org/do...c-4.6.1.tar.gz , but couldn't find mc.keymap inside. If you can let me know which tool to use to browse through ap branch and how to download last version of this specific file. Do I need SVN ?

Wed 06-30-2011 04:52 PM

A browser will suffice for the first step: ftp://ftp.belnet.be/packages/slackwa.../slackware/ap/

Either on the internet, as above. Or on the install media.

Woodsman 06-30-2011 05:51 PM

Quote:

I searched into final source code release : http://www.midnight-commander.org/do...c-4.6.1.tar.gz , but couldn't find mc.keymap inside. If you can let me know which tool to use to browse through ap branch and how to download last version of this specific file. Do I need SVN ?
Oh, version 4.6. :) I believe mc.keymap was introduced after version 4.6. You can grab the mc package from 13.1 or later. Use upgradepkg to install the newer version.

If you are using Slackware 12.2 or earlier, you probably will want to grab the latest build script from any Slackware mirror and build a tgz package that way. Versions 12.2 and earlier do not recognize txz packages.

jbean 06-30-2011 07:44 PM

Quote:

Originally Posted by Woodsman (Post 4400780)
Oh, version 4.6. :)

Upgrade done, sorted out :) Tnx everyone!


All times are GMT -5. The time now is 04:59 AM.