Added by jmw 2020 may 28: Maybe these konqueror and kwrite config hints are still somewhat useful for nautilus and kate???
I find konqueror the best file browser for linux. To customize it a little, for example to get .idl files to open with my favorite text editor, kwrite:
with konqueror running:
settings>>configure konqueror gives some options like what your home dir should be (eg /home/youusername
to make conqueror behave a certain way with a certain kind of file, i made in my home dir (/home/jweisber) a file called dummy.idl
if you select it inside konqueror (one click to highlight it)
go to edit>properties
it should pop open a window labelled “Properties for dummy.idl – Konqueror”
‘way to the right of “type” is an icon of a bunch of tools. push on it.
it should pop open a window labelled “Edit file type application/idl KDEditFileType- Konqueror”
if its not already there, add a filename pattern of *.idl
that means any file ending with that will be treated in the way you are getting ready to set up
under application preference order, enter
kwrite
if you wish, you can also associate a pretty icon with *.idl by clicking on the “?” icon to left of “filename patterns”
click ok and from now on , when you dble-click on any file ending in .idl, it should open it with kwrite (see addition below)
(you may have to entirely quit and restart konqueror for the new properties to take)
–jmw january 2008
——addition feb 2008 – to get kwrite to use “syntax highlighting” (ie to color idl files with a certain color set; fortran etc etc):
open an idl file in kwrite.
in the kwrite toolbar up top, hit settings>configure editor>highlighting
now here is what took me more time than i am willing to admit:
the panel should now be labelled highlighting rules.
the first thing to do is to select a type from the pulldown menu near the top; eg “sources idl ”
then inside properties:file extensions, type *.pro;*.idl;*.batch
inside properties: MIME types, type application/idl
then hit the icon on the far right of this line and get a panel saying “Select the mimetypes you want highlighted using sources/idl syntax highlight rules”
and check the relevant mime types.
(note if the right mime types arent there, see joel)
note that some of these properties do not “take” until you jump out of konqueror and restart it!