Live data from Hacker News

Use Midnight Commander like a pro (2015)

klimer.eu

11–20 of 99 posts

Re: Use Midnight Commander like a pro (2015)

#12
post #5

The nice thing about Midnight Commander is that it has a hex viewer and editor.

Moreover, editor allows to switch to console via Ctrl-O, which turns it into an simple IDE for console programs: edit code, Ctrl-O, run program, Ctrl-C Ctrl-O, repeat.

I always thought the C-o subshell needed a status bar or something. Not once did I find myself launching mc again because I forgot it was already running. Luckily it warns you when launched from the subshell.

Re: Use Midnight Commander like a pro (2015)

#13
post #11

Shameless plug for my more modern, GUI alternative to Midnight Commander, https://fman.io .

a for effort, but link to the terminal version of it if you want to call it an alternative

I rephrased my comment to make it clearer that it's a GUI tool, thanks.

Re: Use Midnight Commander like a pro (2015)

#14
vifm is an awesome file manager for anyone familiar with vi. You can have single/multiple panes and can do operations on multiple files. Renaming/moving/copying multiple files is a breeze. You can also run shell commands on selected files using %f %a %d etc. Also allows filtering and sorting over a host of columns.

Re: Use Midnight Commander like a pro (2015)

#15
post #12

Earlier quoted context omitted.

Moreover, editor allows to switch to console via Ctrl-O, which turns it into an simple IDE for console programs: edit code, Ctrl-O, run program, Ctrl-C Ctrl-O, repeat.

I always thought the C-o subshell needed a status bar or something. Not once did I find myself launching mc again because I forgot it was already running. Luckily it warns you when launched from the subshell.

mc sets $MC_SID in the subshell, so you can query that in your prompt to mark prompts running under mc.

Another option might be to bind F10 to start mc, so that it acts as a toggle whether in mc or in a non-mc shell. You'd need to wrap a zle widget in zsh, or add a '$if Bash' guard to your inputrc with bash.

Re: Use Midnight Commander like a pro (2015)

#17
I don't often use a file manager, but when I do, I use ranger. It's mostly for use cases like "delete everything in this directory but these 3 files" and navigating deep directory structures with many files. However, recently I've also begun to use a mix of "z" and the "cd" feature/bash-binding of fzf.

I like that ranger allows me to use vim key bindings, which matches nicely the rest of my system which is centered around i3 and vimium.

Post reply on HN