Questions tagged [mc]

Midnight Commander `mc` is an open-source orthodox file manager accompanied by text-based user interface (TUI) programs `mcdiff`, `mcedit` and `mcview`.

Midnight Commander is an orthodox file manager. It's a console application with a text user interface. The main interface consists of two panels which display the file system. File selection is made using arrow keys, the insert key is used to select files and the Function Keys perform operations such as renaming, editing and copying files. Later versions of the Midnight Commander additionally have mouse support. Such versions are aware of GPM and X terminal emulators (such as GNOME Terminal or xterm) which support mouse reporting. When running inside an X terminal, these versions can update the name of the window in which Midnight Commander runs (if allowed by the terminal emulator).

76 questions
54
votes
5 answers

Keyboard shortcut for going onelevel up in midnight commander [mc]

Is there a keyboard shortcut for going one level up in the directory tree in midnight commander (mc), which will save me from going all the up to the ..? As shown below - say I'm in a directory that contains tonnes of stuff, and its painful to…
Tathagata
  • 1,955
  • 4
  • 23
  • 39
32
votes
7 answers

How to make Midnight Commander exit to its current directory

I've been using, in equal amounts, Fedora and Ubuntu for well over a decade now, and there's one minor but irritating difference I noticed from their installs of midnight commander. When you change dirs inside it using Fedora, then exit, it has done…
Carl Whalley
  • 3,011
  • 8
  • 33
  • 48
22
votes
2 answers

Making key bindings of midnight commander like Vim

I would like to have hjkl key to go through directories/files of my panel. This is a bit like elinks with hjkl, less with hjkl, or vifm. Ctrl+ key left to do a sort of alt+i. Do you know if those shortcuts are possible? If yes, please would you mind…
user1839724
  • 261
  • 2
  • 4
  • 6
17
votes
4 answers

Overwrite file in copying IF content to of them not the same

I have a lot of files from one side (A) and a lot of other files in other place (B) I'm copying A to B, there are a lot of files are the same, but content could be different! Usually I used mc (Midnight Commander) to do it, and selected "Overwrite…
user1016265
  • 2,307
  • 3
  • 32
  • 49
15
votes
3 answers

Midnight Commander: how to enable filter-as-you-type behavior

Basically looking for a feature similar to Total Commander filter-as-you-type.
Devon Ville
  • 2,001
  • 2
  • 19
  • 32
11
votes
5 answers

Emacs: how to make it an editor in a midnight-commander?

My question is about Midnight-commander. I've unset usage of internal editor (in Options -> Configuration) and put in .bashrc: export EDITOR='emacsclient -n' still - pressing F4 gives nothing, pressing F3 - opens in vi. Is there a way to make…
Adobe
  • 12,967
  • 10
  • 85
  • 126
10
votes
3 answers

Ubuntu Default language midnight commander

Please help me to change default language in midnight commander from ru to en, now, to start mc in english i have to write LANG=en_EN.UTF-8 mc in terminal, but it's too long, i want mc in english by mc ty:)
Igor
  • 103
  • 1
  • 5
9
votes
1 answer

Syntax highlighting in Midnight Commander viewer

I would like to mc viewer (mcview, run by F3 key) highlights my C++ code. Is it possible? For editing (mcedit, F4 key) I am using vim with its own syntax highlighting. For viewing, I can't find such option. There…
Michal Špondr
  • 1,337
  • 2
  • 21
  • 44
8
votes
1 answer

When calling Vim from Midnight Commander, Ctrl-O makes me stuck in the Midnight Commander panel view

By default, Ctrl-O in Midnight Commander is used to show the console output. In /etc/mc/mc.keymap I have set ShowCommandLine to another keyboard shortcut, and now MC doesn't react to Ctrl-O. Again, by default, Ctrl-O in Vim is used to cycle through…
Unknown artist
  • 947
  • 9
  • 14
7
votes
3 answers

How do I copy current folder name to the command line of Midnight commander?

I need something similar to ctrl+enter in total commander, copy current selected folder name in the panel to the command line
Eugene M.
  • 163
  • 1
  • 8
6
votes
2 answers

multicore with plyr, MC

Hi I am trying to use ddply in the plyr library in R, with the MC package. It doesn't seem to be speeding up the computation. This is the code I run: require(doMC) registerDoMC(4) getDoParWorkers() ##> 4 test <- data.frame(x=1:10000,…
Alex
  • 19,533
  • 37
  • 126
  • 195
5
votes
3 answers

OS X mc (Midnight Commander) copy to clipboard

Recently I got a Macbook Pro. I can't manage to copy any sing in mceditor to clipboard and paste. No solutions seems to work. Command+V - does paste a text from the buffer, but Command+C does nothing, I can't copy to buffer.
Sergey Onishchenko
  • 6,943
  • 4
  • 44
  • 51
5
votes
1 answer

Midnight commander does not respect umask

When I create new file in Midnight commander and save it (Shift+F4, write something, F2, name the file), it is created with 640 pemissions even thought my umask is set to 0007 so it should be created with permissions 660. Is there any secret place…
gorn
  • 5,042
  • 7
  • 31
  • 46
4
votes
2 answers

How to filter directories in Midnight Commander

Maybe a stupid question, but how can I filter directories in Midnight Commander? For example I have a folder with a lot of directories in it with the following naming: holidays (2016) birthdays (2016) holidays (2015) ... How can I filter like…
John
  • 121
  • 10
3
votes
1 answer

Viewing typescript .ts files in Midnight Commander

When I press F3 key in Midnight Commander on a .ts file, I get the message: Please install either mplayer or mpv to get information for this file How to configure Midnight Commander to view a .ts file as text? Linux Mint 20.1, Midnight Commander…
Sonia Kidman
  • 151
  • 1
  • 6
1
2 3 4 5 6