081224 Mick wrote: > On Tuesday 23 December 2008, Philip Webb wrote: >> FYI & others', there's a very nice lightweight FM called 'vifm', >> which is in Portage & uses Vim-style commands in a terminal; >> no FM cb faster & it's highly configurable with many features. >> When I want to do heavy lifting, I use Krusader, which is very powerful. > Can you set up which application will open a file > when :view is run depending on the type of file?
In ~/.vifm/vifmarc2.0 , I have # The file type is for the default programs to be used with # a file extension. # FILETYPE=description=extension1,extension2=defaultprogram, program2 # FILETYPE=Web=html,htm,shtml=links,mozilla,elvis # would set links as the default program for .html .htm .shtml files # The other pgms for the file type can be accessed with the :file command # The command macros %f, %F, %d, %F may be used in the commands. # The %a macro is ignored. To use a % you must put %%. FILETYPE=Web=html,htm=lynx,dillo FILETYPE=Object=o=nm %f | less FILETYPE=Image=jpg,jpeg,png,gif=feh FILETYPE=Archive=tar.gz,tgz=tar -tzf %f | less,tar -zxvf %f so it opens images with my favorite 'feh' (also worth looking into). -- ========================,,============================================ SUPPORT ___________//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT `-O----------O---' purslowatchassdotutorontodotca