LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-08-2013, 11:51 AM   #1
Vexe
Member
 
Registered: Feb 2013
Posts: 36

Rep: Reputation: Disabled
inconvinient things in midnight commander.


1- How can I run something in the background, (say an flv) by a-highlighting it b-F2 c-@ (do something with it) Now if I type something like 'vlc &' vlc will run both '&' and the flv (in separate vlc instances)
Now I don't want that, I wanna type vlc & and run the highlighted flv in the background. Now I could just type its name in the command line and append it with a &, but what if the file name was too long?
I'm asking this, because if you open something, like an flv in the foreground and try to open something else, it willl compalin that the terminal is busy.

2- When I highlight multiple files (say mp3 or flv) and hit enter to execute them, say with vlc, I'll get an instance for vlc running the first file, when it finishes, I'll get another for the 2nd file, etc.
I don't want that, I just want one instant running all the things I choose to run.

Now I found that to be very inconvnient.
Has anybody found a way around them?

Thanks!
 
Old 03-10-2013, 09:18 PM   #2
toothandnail
Member
 
Registered: Apr 2007
Location: Oxfordshire, UK
Distribution: Arch, SolydX, Salix64
Posts: 74

Rep: Reputation: 6
Quote:
Originally Posted by Vexe View Post
1- How can I run something in the background, (say an flv) by a-highlighting it b-F2 c-@ (do something with it) Now if I type something like 'vlc &' vlc will run both '&' and the flv (in separate vlc instances)
Now I don't want that, I wanna type vlc & and run the highlighted flv in the background. Now I could just type its name in the command line and append it with a &, but what if the file name was too long?
I'm asking this, because if you open something, like an flv in the foreground and try to open something else, it willl compalin that the terminal is busy.
In this instance, there are two ways you can handle it. First one - highlight the file you want to play, then enter "vlc ", hit ALT-Enter and add "&" at the end of the command (without any of the quotes, of course...). The ALT-Enter will dump the name of the highlighted file to the command line and followed by a space. You really shouldn't need to worry about the length of the name in that instance.

Second - press F9, then c and e to edit the extention file. Search for video and copy the regex that you see in that section, but adding the extention that you want. For example, I have a Toppfield PVR, and I have MC set to play one of its .rec files by adding this to the bottom of the video section of the extention file:

Code:
regex/i\.rec
        Opem=/usr/lib/mc/ext.d/video.sh open ram
If I highlight a .rec file and press enter, vlc is started in its own session so I can continue using MC if I need to.


Quote:
2- When I highlight multiple files (say mp3 or flv) and hit enter to execute them, say with vlc, I'll get an instance for vlc running the first file, when it finishes, I'll get another for the 2nd file, etc.
I don't want that, I just want one instant running all the things I choose to run.

Now I found that to be very inconvnient.
Has anybody found a way around them?

Thanks!
Not sure about this one. I suspect that the only way to make vlc play multiple files in a single instance would be to generate a playlist with the file names in it, and use that to start vlc.

Paul.
 
1 members found this post helpful.
Old 03-11-2013, 08:23 AM   #3
Vexe
Member
 
Registered: Feb 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
@toothandnail: Thanks for the tips, the first one works pretty well. For the 2nd issue, I found that, you could highlight multiple stuff,
and dump their name just like you do with Alt+Enter, but this time, you do Ctrl+x,t. That would dump all the files/dirs you selected, so I would just vlc dumpthem &

There's another issue that I managed to find a solution for, is the renaming part, if you press F6 to try to rename something, you'd have to write the whole path again. instead, you just do shift+F6 (or F5 sometimes), and that will give you instant renaming
 
  


Reply

Tags
file manager, midnight commander


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 Woodsman Slackware 10 06-30-2011 07:44 PM
[SOLVED] Midnight-commander new2nagios Linux - Software 4 08-05-2009 10:55 AM
Midnight Commander 4.6.2 guanx Slackware 8 02-07-2009 03:53 AM
midnight commander prevoo DamnSmallLinux 6 09-19-2004 04:26 PM
Midnight Commander XPediTioN Slackware 2 07-12-2003 11:45 PM


All times are GMT -5. The time now is 05:02 PM.

Main Menu
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