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
3
votes
1 answer

Viewing MS Word .docx files in Midnight Commander

I want to be able to quickly view (with F3) the content of Word doc/docx files in Midnight Commander. MC's extensions file calls /usr/lib/mc/ext.d/doc.sh, which contains wv, antiword, catdoc, and word2x as helper programs. On my system (debian),…
GrB
  • 183
  • 3
3
votes
3 answers

View JSON file in Midnight Commander using jq

So there is that awesome tool for working with JSON data called jq. And there is that awesome linux file manager called mc. One day (today) I came around an idea to integrate these two, so I could easily preview JSON files in a pretty/formatted way…
roomcays
  • 927
  • 1
  • 7
  • 22
3
votes
1 answer

How do Thunar and MC decide how to open a file?

It seems that Thunar and Midnight Commander (any maybe other tools) don't use Mailcap to decide how to open a file. What do they use instead? Background of the question: On my system, Thunar and Midnight Commander open all ODT files with Okular…
vog
  • 23,517
  • 11
  • 59
  • 75
3
votes
1 answer

How to I add additional symlinks on a homebrew formula?

I have at least one application that is installing executables in another folder than its {{prefix}}/bin, one like {{[prefix}}/libexec/mc/mcwrapper.sh. I know that brew does symlink all the files from bin/ automatically, without needing any…
sorin
  • 161,544
  • 178
  • 535
  • 806
3
votes
2 answers

How to change file permissions recursively on Midnight Commander?

If I select all the files and use ctrl + x c it just asks me to change permissions to all the selected files individually and if I do it at the directory level all of the files inside are unaffected. Is there a way to change the permissions of all…
Aspiring Dev
  • 505
  • 1
  • 4
  • 17
3
votes
1 answer

Changing tab completion key binding to tab in MC

There are lots of people wondering how to tab completion. This is not one of those questions. The question is how can I assign the tab key to tab completion? alt-tab/esc-tab is a pain. In the panels disabled mode tab completion works, and that is…
GRMrGecko
  • 321
  • 4
  • 9
3
votes
1 answer

mcedit and mcview - subshell not work on Ubuntu Linux, on mc - works well

I have the problem with not working subshell on mcedit and mcview of Midnight Commander package on all my Ubuntu systems. When I in mc file manager, ctrl+o drops me to the full-featured shell (bash), so I can see previous shell output, type and…
Murz
  • 199
  • 2
  • 9
3
votes
1 answer

tmux - stealing Alt key from Midnight Commander, emacs

just starting to use tmux. I really like it so far -- a solid replacement for screen. The one single problem I have is that tmux steals the Alt (meta) key presses from a Midnight Commander running within it. I have made my prefix key C-[, which…
Madeleine P. Vincent
  • 3,361
  • 5
  • 25
  • 30
2
votes
1 answer

midnight commander files location on mac

I'm trying to find mc config files on mac. I've used macports to install it. The .mc folder in home dir doesn't affect the mc behaviour - not hotlist nor others configs. So where is the mc config files exists, and how to find them? (is there any…
egor7
  • 4,678
  • 7
  • 31
  • 55
2
votes
2 answers

Highlighting Syntax in mcedit for assembly

I want a code to be highlighted like this jmp label ;comments I want only label to be highlighted. I've tried something like this context exclusive jmp\t \n brightmagenta But in this case ";comments" turned brightmagenta as well which is not what I…
2
votes
0 answers

libtool is excessively copying objects to resolve name conflicts

I often rebuild Midnight Commander and I've had enough staring at the make message: copying selected object files to avoid basename conflicts... so I've decided to fix it – i.e.: to make the names of objects unique – patch is attached. It renames…
psprint
  • 349
  • 1
  • 10
2
votes
0 answers

Chmod Recursive in Midnight Commander

Is there Recursive option for chmod and chown in Midnight Commander? Chmod, chown and advanced chown do not make changes to the files within directories.
user13767792
2
votes
1 answer

How do I use panelize in Midnight Commander? I want to know since this is a way to do a recursive chmod on selected files and directories

I know I can use chmod and advanced chmod but they do not offer me a way to recursively change permissions on the filed and folders. Panelize seems to be able to do that. However I seem not to get any results if I select files with Ctrl-t and then…
Meewind
  • 23
  • 4
2
votes
2 answers

mouse support in Midnight Commander in MSYS2

How can you enable mouse support in in Midnight Commander in MSYS2? Currently when I click the options menu there appear only control sequences like 6;1M6;1m in the console. When I ssh into a Linux box from the same MSYS2 bash shell, Midnight…
weberjn
  • 1,840
  • 20
  • 24
2
votes
2 answers

linux screen on putty prevents midnight commander mouse action

When I am using the linux screen program (for multiple screens) on putty the mouse action in midnight commander is suppressed. Any idea how to fix this?
jet miller
  • 275
  • 2
  • 17