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

How to generate MC config via ansible

I am making an ansible project for setting up the environment. And I'm stuck on a seemingly simple task - I need to create the Midnight commander config after installing it. The problem is that the config is generated the first time the application…
Mystic
  • 73
  • 7
0
votes
1 answer

Is there a Vim plugin that would TAB-complete symbols from CTags index?

I've stumbled upon a quite innovative functionality in editor – ability to TAB-complete symbols from CTags index, on this Asciinema video. I wonder if there is anything like it available for Vim? I've been using many completion engines like eg. CoC,…
Ravier
  • 3
  • 2
0
votes
1 answer

What are the "a1", "c1" bindings in mc.keymap (Midnight Commander)?

There are such bindings in mc.keymap, which don't describe a meaningful shift-like key combination, but something that looks like a raw character sequence that starts with a letter, and ends with a digit, e.g.: Top = home; alt-g; a1 # ← the sequence…
psprint
  • 349
  • 1
  • 10
0
votes
1 answer

Is there a command to move file pointers across unRAID shares on the same drive?

I've created a Python script to help manage my media on an unRAID server. New files are automatically transferred into a folder and the script uses the folder structure and filenames to determine where they should be moved, usually into another…
tekowalski
  • 19
  • 4
0
votes
1 answer

How to highlight a comment in mcedit?

I need to highlight comments on mcedit using syntax file. One line comment begins with "--" and may end with "\n" or with "--". My syntax file content which responsible for comments is following: context -- \n brown spellcheck context /\* \*/…
Umid
  • 81
  • 1
  • 6
0
votes
1 answer

mc update 4.8.25 changed folder of shell commands

I updated mc and all shell commands disappeared. I couldn't execute openoffice or other command from mc. I checked ~/.config/mc/mc.ext and found that the folder of doc.sh was in /usr/lib/mc.
konenas
  • 80
  • 1
  • 12
0
votes
1 answer

ncurses: mouse works in terminal emulator but not tty(vt)

initscr(); cbreak(); noecho(); assert(OK==keypad(stdscr,TRUE)); mousemask(BUTTON1_PRESSED|BUTTON1_RELEASED,NULL)); assert(has_mouse()); assert(166==mouseinterval(1)); refresh(); for(;;){ int ch=wgetch(stdscr); // Detect…
Darren Ng
  • 373
  • 5
  • 12
0
votes
1 answer

How can I bind F3 behavior on key 5 on numeric keypad in midnight commander?

How can I bind F3 behavior on key 5 on the numeric keypad in Midnight Commander? It will be very usable for me.
0
votes
0 answers

Workflow using vim together with midnight commander

As a huge fan of terminal applications, I use mc and vim on a daily basis. However, I never figured out a practical way to efficiently use both together. In a gui application I would browse through my data and then open multiple files with a word…
Holger
  • 13
  • 2
0
votes
1 answer

Midnight Commander (mc) normal "+" and "-" keys working as those on numpad

When I press normal "+" or "-" on keyboard, they work as I'd press those on numpad - mc is popping the dialog for selecting/deselecting files. So its impossible to type any command that contains "+" or "-" (like eg. "ls -al"). This happens on my…
madneon
  • 537
  • 3
  • 17
0
votes
2 answers

Does MC work independently from OS libraries and kernel?

Does the windows version of Midnight Commander (MC) work independently from Windows libraries? I mean does it have it's own way of reading data off the disk or is it using the OS's abilities? If it's not independent do you know of any file manager…
Auxiliary
  • 2,687
  • 5
  • 37
  • 59
0
votes
2 answers

Open file in Midnight Commander directly from console?

I mean without launching MC. Like "vi somefile", but in MC editor.
MDI
  • 177
  • 10
0
votes
1 answer

What code does Midnight Commander recognize for the cursor keys?

I have a web ssh terminal app using 'xterm.js' in the browser, and the 'ws' and 'ssh2' npm modules from node.js to connect to an ssh server. I've implemented a swipe gesture that sends the ansi codes esc+'[A', esc+'[B', esc+'[C', and esc+'[D', to…
jdmayfield
  • 1,400
  • 1
  • 14
  • 26
0
votes
1 answer

Midnight Commander (mc) not working in cygwin ("Error opening terminal")

I installed Midnight Commander into my Cygwin environment, but it's not working. Can anyone help me figure out what's going wrong? Here's what I'm seeing: $ mc Error opening terminal: xterm. $ mc -U Error opening terminal: xterm. Here's the…
Mingo
  • 1,613
  • 2
  • 16
  • 20
0
votes
0 answers

How to select row in Mac in MC and cut one?

I've installed to Mac a Midnight Commander (I did not find better terminal text editor). I tried edit file - it works. I tried select row to cut - I can't... So question is How to select row in Mac in MC and cut one?
Sergii
  • 7,044
  • 14
  • 58
  • 116