Midnight commander questions. menu file & associations file

hi! i use tuxcmd all time, but find myself interested in try mc, first because it can be transparent and integrates with my transparent desktop:
but i read this manual  http://www.chm.tu-dresden.de/edv/mc/mc4.5/manual1.html  and dont know how to make a couple of things in first place...
1. when i start mc it sorts files in a confusing (for me) way tuxcmd shows me first the "dot" directories, next the "not dot" directories , next the "dot" files and finally the files, all in alphabetic order. how to achieve that sorting in mc?
2. in tuxcmd i have the options to sort (maintaining the number 1 item sort fashion) by date (newest files first) by name, by extension. how to do this in mc?
3. in tuxcmd i add to it a lot of file associations to my common use files, like when i right click a media file, i have my programs like open with mplayer, xine, vlc, ffmpeg -i (shows me info about the file), etc. what file or what i need to do to have file associations like that in mc? so i can just double click the file and it opens with his associated program?
THANKS!!!
my desktop:
Arch
Fluxbox
gkrellm (cronos skin)
aterm (command: aterm -tr -bl +sb)
mc (transparent mc: Copy this line to ~/.mc/ini
[Colors]
base_color=normal=white,default:directory=white,default:marked=yellow,default:selected=gray,white:executable=brightgreen,default:link=lightgray,default:stalelink=brightred,default:special=brightblue,default:device=magenta,default:editnormal=white,default)
Last edited by leo2501 (2008-04-12 13:12:47)

Well, right now i edited my ~/.mc/menu file so when i press F2 i get a menu with my additions, but the thing is, that i need that depending on the selected file when i press F2, the menu displays the corresponding options depending on the file type, but i barely understand the conditions and subconditions thing
#### Added by me ####
#### Video File Menu ####
+ f \.avi$ | f \.mpg$ | f \.mpeg$ | f \.mkv$ | f \.ts$ | f \.rm$ | f \.vob$ | f \.rmvb$ | f \.flv$ | f \.wmv | f \.ram | f \.mp4 | f \.asf | f \.ogm | f \.m2v | f \.evo$ $ & t n
1 ffmpeg -i (show audio/video info)
ffmpeg -i %f
2 vlc
vlc %f
3 Encode to h264 hq 96 700
enc2h264 hq 96 700 %f
#### Audio File Menu ####
+ f \.wav$ | f \.mp3$ | f \.au$ | f \.aiff$ | f \.snd$ | f \.mp2$ | f \.flac$ | f \.wma$ | f \.snd$ | f \.mpc$ | f \.ac3$ | f \.mid$ | f \.ogg$ $ & t n
1 mplayer
mplayer %f
2 aplay
aplay %f
3 ffmpeg -i (show audio/video info)
ffmpeg -i %f
4 audacity
audacity %f
5 Encode to *.mp3
enc2mp3 %f
#### Disk Image File Menu ####
+ f \.iso$ | f \.ccd$ | f \.img$ | f \.nrg$ | f \.mdf$ | f \.cue$ | f \.bin$ | f \.daa$ | f \.b6t$ | f \.b6i$ & t r & ! t t
1 mountiso
mountiso %f &
2 isomaster
isomaster %f
3 Convert BIN to ISO
bin2iso %f
4 Poweriso convert image to ISO
all2iso %f
5 Convert CCD to ISO
myccd2iso %f
#### Image File Menu ####
+ f \.jpg$ | f \.jpeg$ | f \.bmp$ | f \.png$ | f \.gif$ | f \.svg$ & t r & ! t t
1 feh
feh %f
2 gimp
gimp %f
3 gqview
gqview %f
4 mirage
mirage %f
#### PDF File Menu ####
+ f \.pdf$ & t r & ! t t
1 epdfview
epdfview %f
2 xpdf
xpdf %f
#### Text File Menu ####
+ f \.txt$ | f \.nfo$ | f \.cfg$ | f \.log$ | f \.srt$ | f \.sub$ | f \.ssa$ & t r & ! t t
1 leafpad
leafpad %f
#### Archive File Menu ####
+ f \.zip$ | f \.gz$ | f \.rar$ | f \.bz2$ | f \.tgz$ | f \.7z$ | f \.ace$ & t r & ! t t
1 xarchiver
xarchiver %f
2 Extract *.tar.gz
tar -xzvf %f
3 Extract *.tar.bz2
tar -xjvf %f
4 Extract *.rar Full Path
unrar x %f
5 Extract *.rar Current Dir
unrar e %f
6 Extract *.zip
unzip %f
7 Extract *.7z Full Path
7z x %f
8 Extract *.7z Current Dir
7z e %f
9 Extract *.ace Full Path
unace x %f
a Extract *.ace Current Dir
unace e %f
b Extract *.rar in *.rar_dir directory
unrar2dir %f
c Extract *.zip in *.zip_dir directory
unzip2dir %f
d Pacman Install Package
sudo pacman -A %f
e Pacman Upgrade Package
sudo pacman -U %f
#### Windows Executable File Menu ####
+ f \.exe$ | f \.bat$ | f \.msi$ & t r & ! t t
1 wine
wine %f
#### Internet File Menu ####
+ f \.htm$ | f \.html$ | f \.php$ | f \.asp$ & t r & ! t t
1 kazehakase
kazehakase %f
2 swiftfox
swiftfox %f
#### Document File Menu ####
+ f \.doc$ | f \.rtf$ | f \.php$ | f \.asp$ & t r & ! t t
1 abiword
abiword %f
2 OpenOffice Writer
soffice -writer %f
#### Spread Sheet File Menu ####
+ f \.xls$ | f \.csv$ & t r & ! t t
1 gnumeric
gnumeric %f
#### Presentation File Menu ####
+ f \.ppt$ | f \.pps$ & t r & ! t t
1 OpenOffice Impress
soffice -impress %f
#### Java File Menu ####
+ f \.jar$ & t r & ! t t
1 Execute
java -jar %f
#### Help/Manual File Menu ####
+ f \.chm$ | f \.pps$ & t r & ! t t
1 xchm
xchm %f
Last edited by leo2501 (2008-04-12 13:14:16)

Similar Messages

  • File association, file association

    I can't get the file association to allow a change from the textedit writer to the OpenOffice.odt format. Is there a way to trick OSX into allowing the change?

    Stop documents from opening in text...: Apple Support Communities

  • [Solved] Midnight Commander file associations - ePub

    After I installed Midnight Commander, it would open epub files with ebook-viewer (Calibre viewer) out of the box, without any specific config from me, which was great, since that was exactly what I wanted it to do.
    Since right now, it no longer does that, and open the files with Firefox instead (which prompts me to save them somewhere.)
    I did not install any update between yesterday and right now, so I wonder what could have happened. I actually restarted Firefox just before that because it froze, and the version 32 was recently shipped, so that might count as an update.
    I have the default Midnight Commander settings, and from what I understand it's supposed to use lucidor to open epub files, which I don't have (that's in /usr/lib/mc/ext.d/doc.sh lines 177-178.)
    So my question is, where this association, previously with Calibre, now with Firefox, comes from?
    I understand that I could just edit ~/.config/mc/mc.ext to have the proper association, but if I could avoid changing the default settings, I would prefer so.
    Last edited by bonob (2014-09-11 18:35:43)

    Thanks to your pointing at xdg, I understand what's happening. Poor Firefox or xdg associations are actually innocent, what happens is that after I close this particular book (which I just started to read before the problem happened) in Calibre, the mimetype changes, from application/epub+zip to application/zip (Calibre saves the file on exit, because it puts a bookmark at the current location.)
    I don't know how to repair the mimetype, but I have a copy of the original file, so that's fine. I'll try to find more details and report to the Calibre developer, and mark this thread solved.
    Thanks again!

  • Problem with file association in midnight commander

    i want to open jpg files with gpicview isntead of feh in midnight commander, i read that i have to edit the file: /etc/mc/mc.ext
    in the part that say type/^JPEG
    i wrote
    #Include=image-options
    Open=gpicview %f
    i restart mc but nothing happen it still open the jpg files with feh, what im doing wrong?
    cheers

    try this
    type/^JPEG
    Include=its
    include/its
    Open=/usr/bin/gpicview %f
    View=/usr/bin/gpicview %f
    make its anything you want

  • Photomerge command has gone missing from File Automate - menu

    Was using Photomerge command successfully in PS and at some point later PS crashed and locked my Mac. I restarted and now the Photomerge command is missing from the File Menu. I asked Adobe support for help, they had me reinstall latest PS but it's still not there.
    Is there anywhere in the PS Folders I can check for a file associated with this command (like there are for Scripts for example) and could possibly replace?
    I also tried initiating the command from Lightroom with a set of images selected and using the relevant contextual menu and it produces an error saying Photoshop could not be launched (it is launch though).

    Hi and thank you. Yes Photomerge.jsx is there in the scripts folder. Although when I go to launch other scripts from within PS using the File> Scripts… menu I get the following error:
    Could not complete the Image Processor command because Photoshop was unable to find the JavaScript plug-in
    How can I get it?

  • Set midnight commander as default file manager.

    How can i set mc as a default file manager to open files from chrome downloads in it?
    I've put a .desktop file inside /ust/share/applications/
    midnight-commander.desktop
    [Desktop Entry]
    Name=Midnight Commander
    Type=Application
    Terminal=true
    Comment=A visual file manager
    Exec=mc
    TryExec=mc
    Icon=MidnightCommander
    Categories=System;FileTools;FileManager;
    and run xdg-mime default midnight-commander.desktop inode/directory. But when i try to open something from chrome downloads nothing happens.

    anonymous_user wrote:You set "Terminal=true", but what terminal is it trying to run? Do you have xterm installed?
    I'm using zsh + urxvt. Xterm is also installed
    Last edited by innocent_rifle (2013-01-10 12:26:54)

  • Copy full file path+file name in Midnight Commander

    Hi!
    How can I copy a file's full path with the file name in Midnight Commander?
    If I press Ctrl+Alt+Enter it's shows this to me in the command line but I can't copy this route.
    If I mark a file with 'Insert' and than if I would like to paste this for example in Mousepad or any other text editor with Shift+Insert or Ctrl+V it isn't works.
    (Relatively newbie sitting here so if the answer is complicated please write a step-by-step instruction )

    Well,I did a lot of research on the internet and I found the best solution.
    - choose the file,press 'Ctrl' + 'Shift' + 'Enter'
    - after that you can see the full file path + the file name in the command line (bottom of the screen)
    - Select the text with 'Shift' + 'Mouse Left Click' (drag it across the whole command)
    - For copy the text, press 'Ctrl' + 'Insert'
    - For paste, press 'Shift' + 'Insert'
    This is still pretty damn slow,I wanted to do it with a single key combination while the file is selected but it looks impossible.
    But at the same time I have started to use Ranger file manager which is also runs from terminal,extremely fast,easy to use and if I press 'Ctrl' + 'Insert' on a file it is copies the full path with the name of the file itself. Just perfect.
    I won't mark the thread [SOLVED] because if anybody knows a better method for this in Midnight Commander (with a script or whatnot) maybe will write it down for us. I hope...

  • Xfce4 file associations simple problem

    Can anyone help me with some simple file association problems in xfce4?
    whenever I click a link, it tries to launch the GNOME Web Browser, and I get the following message:
    Could not start GNOME Web Browser
    Startup failed because of the following error:
    Unable to determine the address of the message bus (try 'man dbus-launch' and 'man dbus-daemon' for help)
    I've set the preferred application to Opera in the Settings menu, but no difference.
    Additionally, can anyone point to somewhere explaining how to write custom commands for opening files in thunar. For example, it doesn't recognise .torrent files, and I'd like to launch them in Azureus when I click on them.
    Any help appreciated!

    soylent_green_is_hamster wrote:
    run dbus-launch gnome web browser
    this produces the following error
    Couldn't exec web: No such file or directory
    about the thunar question if u right click a .torrent file and open it with azureus theres a tick which is ticked by default to open these files every time with azureus.
    yeah - but azureus isn't listed as one of the  applications I can pick from. Not sure what to do...
    errm ...
    dbus-launch NAME_OF_BROWSER_EXECUTIVE
    edit: u could always edit the menu or make a custom link adding the command for example dbus-launch FOO instead of just FOO
    about azureus: add it manually using a custom command..

  • Windows Server 2008 R2: Different file associations when double-clicking vs. right-click - open

    I have a basic .xml file on my Windows 2008 R2 desktop. I have set the file association for .xml files to Adobe FrameMaker 12. When I double-click the .xml file, it opens with FrameMaker. When I right-click -> open the .xml file, it opens with Notepad.
    I need the .xml file to always open with FrameMaker, even when I use right-click -> open. How can I set this up for all users on a Windows 2008 R2 server?
    Thank you!
    -Nicole

    Hi Nicole,
    Thank you for posting in Windows Server Forum.
    When you double-click on a file in Windows explorer, the Windows shell looks up the extension of the file in the registry to see if the extension is registered. If the extension is not registered, Windows displays the Open With dialog box, allowing the
    user to choose an application to associate with the file type. If the extension is registered, Windows calls the ShellExecute() function with a command of "open." It also passes the name of the file that was double-clicked as a command line parameter. 
    Associations go further than simply opening a file, though. If you right-click on a text file (.TXT) in Explorer you will see two items at the top of the context menu. The first is named Open. Choosing this menu item is the same as double-clicking the
    file in Explorer. When you choose Open, NOTEPAD.EXE will be started with the selected file loaded (assuming a default Windows installation). The second menu item is called Print. Clicking this menu item will cause the file to be printed without displaying
    Notepad at all.
    There is some registry setting for the application association to take place, you can edit them under following path.
    HKEY_CLASSES_ROOT\Test App File
    (Quoted from below article)
    More information:
    Using file associations
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • CS6 Beta Modifies CS4 & CS5 Bridge File Associations (W7 Pro 64Bit SP1)

    Symptoms:
    After installing CS6 including bridge CS6 onto a W7 pro 64Bit Machine with SP1.
    The File associations in the existing copies of CS4 and CS5 bridge are updated to make the CS6 Beta the default programme for opening the majority of file types from either CS4 or CS5 bridge.
    When right clicking ona file from CS4/5 bridge only the option of opening in CS6 is presented
    Expected Bahaviour:
    I expected that CS6 would be the default programme launched from CS6 bridge but that CS4/CS5 would remain the default programmes launched from their own versions of bridge.
    Setting CS6 as the default file association in previous versions of bridge makes no sense at the Beta stage, as it interupts a clean migration back to existing workflow.
    I would also question the value in not preserving the existing file associations in prior versions of bridge in the final CS6 release, as there are cases when it might be desirable to go back to a previous version of CS, in which case opening that version of bridge and launching directly into the prior versions of CS is very desirable.
    Is there anyway to quickly restore the previous associations in CS4/CS5 bridge and be sure that they are exactly the same as prior to the CS6 beta install ?

    Sorry for the noise. I misunderstood your depth of knowlege and what you had tried. I also committed the sin of not testing the procedure all the way through because I did not want to change the association on my computer. I get the same behavior.
    Guess for .jpg
    Registry shows for .jpg:
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jpg\UserCho ice  Progid = Applications\Photoshop.exe
    HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\Photoshop.exe\shell\open\command  (Default) = "C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Photoshop.exe" "%1"
    UserChoice seems to be added when I made the association choice. Note that it points into Applications with a non-version specific Photoshop.exe. Within HKLM\....\Applications there is only one Photoshop.exe -- no version -- and that entry points to CS6.
    I believe that explains why the browsed to association is CS6. It does not explain why it would be set up that way. Probably has something to do with Windows special handling of certain file extensions. Beyond my depth and tells me I am not going to find a solution.

  • Photoshop CS5 has lost file associations

    I recently installed both Photoshop and Dreamweaver CS5, deleting the CS4 versions after installation. I have lost file associations for all Photoshop-related files: eg jpg, tiff, gif and so forth, and the psd extension as vanished altogether. (That means that if you click on a .jpg file, it opens in a free MS utility like Paintshop rather than where you want it to go: in this instance, to Photoshop.)
    I have taken the following measures, none of which have worked:
    Manually altered the associations in Folder Options. I can browse to photoshop.exe, but nothing happens when I select it.
    I have gone into the registry and deleted all associations under the relevant file types, eg .jpg etc. Restarting folder options replaces them exactly as they were, and I still cannot associate anything with Photoshop.
    I have run Photoshop from the command prompt with the tag /regserver which ought to re-register it. Nothing happens. (If you want to try this, open the Start > Run box, browse to the .exe file and append (separated by a space) /regserver
    I have changed and saved all file associations in the Bridge Options section. They are still there after I restart Bridge, but it has no effect on the overall file associations.
    So that leaves me stuck. Both CS5 programs are registered in the program list, and both appear in the Start menu list of programs. Neither appear in the Folder Options list. I am running on XP Pro with today's (16 Sept 2010) MS updates. Can anyone help with this?

    Solution
    I have found how to fix this, for me at least and on an XP machine. Some users may find the procedure a bit unnerving. You should anyway back up your registry before making these changes.
    Start > Run > regedit
    Go to:
    HKCurrentUser\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
    That will give you a long list of file extensions: ex .jpg, .png
    Scroll down to and select the relevant ones, one by one. This is moderately laborious, but what follows is repeated exactly. (I found the .tiff extension was slightly different and left it alone. I never use tiffs so I don't know if it works unchanged.)
    When you click on the + box for e.g.  .jpg, two 'folders' open. These are
    OpenWithList
    This sets the list of potential programs to use for this extension, lettered a,b,c etc.The last entry in the 'folder' is MRUList which sets the priority order for these programs, eg if it has 'bcade' then program 'b' is first, 'c' is second etc. You can edit this order by clicking on it.)
    OpenWithProgIds
    This stores what kind of image this is. Under .jpg I found that I had 'jpefile' and something like Photoshop.9 (I don't recall exactly.) This refers to a very old  version of Photoshop, certainly not the last one on this machine. All the other relevant image files had much the same terms associated with them. Some had four or five older Photoshop references: you can delete these entirely by right clicking on them. You then right click on the remaining Photoshop reference and alter it to read Photoshop.Image.12 Do not change the identity entry, e.g. the term 'jpefile', as mentioned above.
    It is also worth navigating back up to
    HKCurrentUser\Software\Adobe\Photoshop
    I found that I had reference to five separate versions of Photoshop. You can delete all but (numerically below) the 12.0 folder.
    Close regedit and reboot. You will find that Folder associations now recognise Photoshop as a valid program and assign it to the files that you have changed. I have not tried adding to the list in Explorer > Folder associations.
    This is pretty shameful, frankly. Adobe's installation program should clean out all preceding registry entries when it de-installs a version. It should most certainly write Photoshop12 refereces when installing. This must be a pretty geenral problem.

  • File association reverting itself on its own

    I have been unable to change the file association for .bib files. I would like to open all of these with JabRef (default is texmaker). I selected one, did cmd-I, went to the "open with" tab, looked for JabRef, selected "all applications" from the drop-down menu (JabRef is not a "recommended application"), selected JabRef. I then pressed the button "Change all" to change all of the .bib files and the file association reverted itself to texmaker!
    What could be the reason for this behaviour? I made sure that the file was unlocked before trying to change its association after it failed the first time, but b/c I did not know what else to do, in fact it seems irrelevant. Any suggestions?

    baltwo wrote:
    Could be a hosed LaunchServices database. Best thing to do is reset it. Launch the Terminal.app in /Applications/Utilities/, paste in the below command, hit the return key, quit the app, and restart.
    */System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user*
    I did it, but there is no effect. Just to make sure, what is that you mean exactly by quit the app? Quit the Terminal? In any case thanks a lot for the suggestion.
    Besides, I have circumvented the problem by associating bib files with BibDesk, although it is a bit annoying that the file association seems to ahve a glitch.

  • EA Could Not Find The .html File Associated With...

    After naming folder names, I now get the "EA could not find the .html file associated with..." message when I open the .edge file. When I open the .an file, I have all elements and the timeline are gone! How can I restore it? Surely, it is just a question of changing a path, or? Please help. Thanks!

    From the File > Open menu, browse to the that same folder (the newly renamed one), and select the .html file.
    Darrell

  • Dont Steal Mac OS X.kext - Getting rid of file association?

    Hey everyone, new to the OS X operation system -
    Long story short: I got curious about reading the little poem Apple developers put in the .kext, and I figured it was the file equivalent to Windows where you would open a '.nfo' file with notepad (or text editor of choice) to view the hidden message inside.
    Now being as unlucky and new to how OS X works, my guess was wrong.
    Now I guess OS X has put a file association thing, because the icon of the 'Dont Steal Mac OS X.kext' went from the lego brick, to a blue folder icon.
    How would I go about putting it back the way it was?
    Thanks!
    MacBook   Mac OS X (10.4.9)   I only wanted to see the poem for myself ;_;

    First, select the item and press COMMAND-I to open the Get Info window. Be sure the filename has not been changed (the extension should be .kext). Also check that the permissions are correct:
    Owner = system with Read/Write privileges
    Group = wheel with Read-Only privieges
    Other = Read-Only privileges
    Now select any other extension and open a Get Info window on it. Click on the icon in the upper left of the Get Info window then press COMMAND-C to copy. Click on the icon in the changed extension and press COMMAND-V to paste.
    This may or may not succeed because of access restrictions. However, as long as the permissions and extension of the file are unchanged (.kext) there should be no impact on your system.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • 10.4.7 update screws up image file associations

    Since installing the 10.4.7 update, all my image files now open in Preview as the default application, regardless of Type or Creator.
    I know that the file association of an individual can be changed via Get Info, however, I have 11,000+ image files in various formats as well as several thousand PDFs scattered across three hard drive, and do not want to waste several days tracking them all down and changing their file associations manually.
    I know that the "Change All" button in the Get Info panel is supposed to change all documents of a given type to the selected application, however, the "Change All" function seems to be broken because hitting "Change All" simply reverts everything to Preview.
    Deleting Preview does not solve the problem, as everything then defaults to Image Tricks; deleting Image Tricks simply defaults everything to Color Sync; deleting Color Sync defaults everything to Graphic Converter, which is fine for JPEGS, but I need Photoshop files to open in Photoshop, Illustrator files to open in Illustrator, etc.
    Is there a script or other simple way of changing the default application for various file types at the system level, i.e., so that .JPG always open in Graphic Converter, .PSD and .TIF in Photoshop, .PDF in Acrobat Reader, etc.?
    Thanks.
    2.0 GHz G5 Dual    

    Well, I had it happen to me again yesterday, i.e., all graphics files defaulting to Preview. I changed them back using the procedure I used earlier, but if this continues, it's going to be a MAJOR problem.
    Even after you selected, for
    example, Graphic Converter as the default application
    in the Open With pop-up menu, per step 3 in "Mac OS X 10.4 Help: Changing
    the application that opens a document."
    Unfortunately, no, not even after selecting Graphic Converter as the default app in the Open With menu.
    I think you
    mean Show Inspector, which is Command-Option-I, vs.
    Command-I for Get Info. The Inspector displays
    common info for a selection of objects, so you can
    change the default app for multiple files in one
    window.
    Hmm ... I get the same "Multiple Item Info" panel whether I hit Command-I and Command-Option-I if I have more than 10 files selected. In any case, I hit Command-I to bring up the Multiple Item Info panel.
    3. The anomalies you described are very strange. As
    a general check, run the Procedure specified in my
    "Resolving Disk, Permission, and Cache
    Corruption" FAQ. I'd recommend at least running
    Steps 1-3.
    I'll give it a go. Thanks!
    2.0 GHz G5 Dual    

Maybe you are looking for