LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-15-2011, 09:55 PM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 03-16-2011, 02:37 AM   #2
mfrias
LQ Newbie
 
Registered: Dec 2007
Location: Cochabamba, Bolivia
Distribution: 574ckw4r3 14.0
Posts: 15

Rep: Reputation: 7
Quote:
Originally Posted by Woodsman View Post
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 ).
 
3 members found this post helpful.
Old 03-16-2011, 02:49 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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.
 
Old 06-30-2011, 12:41 PM   #4
jbean
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Rep: Reputation: Disabled
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.

Last edited by jbean; 06-30-2011 at 12:43 PM.
 
Old 06-30-2011, 01:28 PM   #5
Perceptor
Member
 
Registered: Jul 2007
Location: the Future
Distribution: Slackware 13.37
Posts: 104

Rep: Reputation: 52
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.

Last edited by Perceptor; 06-30-2011 at 02:33 PM. Reason: typo
 
1 members found this post helpful.
Old 06-30-2011, 02:04 PM   #6
jbean
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 06-30-2011, 03:22 PM   #7
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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.
 
1 members found this post helpful.
Old 06-30-2011, 04:52 PM   #8
jbean
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Rep: Reputation: Disabled
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 ?
 
Old 06-30-2011, 05:52 PM   #9
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 147

Rep: Reputation: 26
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.

Last edited by Wed; 06-30-2011 at 05:54 PM.
 
1 members found this post helpful.
Old 06-30-2011, 06:51 PM   #10
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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.

Last edited by Woodsman; 06-30-2011 at 09:56 PM.
 
1 members found this post helpful.
Old 06-30-2011, 08:44 PM   #11
jbean
LQ Newbie
 
Registered: Jun 2011
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by Woodsman View Post
Oh, version 4.6.
Upgrade done, sorted out Tnx everyone!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Midnight-commander new2nagios Linux - Software 4 08-05-2009 11:55 AM
Midnight Commander matombo Fedora 3 11-30-2005 01:41 PM
midnight commander prevoo DamnSmallLinux 6 09-19-2004 05:26 PM
Midnight Commander XPediTioN Slackware 2 07-13-2003 12:45 AM
Where's mc (Midnight Commander) Shadow Of Death Linux - Software 7 01-09-2003 08:09 PM


All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration