Advanced Topics

Types
comes with a number of types predefined, but you can add your own types by choosing Settings Configure File Associations in a window.
's handling of types is very powerful, and very configurable. On the one hand, you can set a default action to be performed when you click on a file in . Just as useful, you can add many more actions, which are then available with a click menu on the file in question.

To link a certain file type with a particular application:
Make sure the application you want to start this file type has an entry in the .
In find or make a file with the extension you wish to link.
Right click on the file, and choose Edit File Type from the context menu, or choose Edit Edit File Type in 's menu bar.
Add file masks for the application by clicking the Add button, and entering the file pattern you want. Remember that is case sensitive, so you may need to add variations - *.mp3 may need *.MP3 added as well, for example. Add as many extensions as you like in this way.
Add a description if you like. This is optional.
In the section labeled Application Preference Order, press the Add button. A miniature copy of the will open, where you can choose the application you want files of this type to be opened with.
Sometimes, you may want to use a different application to open this file type. For example, you might like to use to open text files you wish to edit, and for text files that you just want to take a quick peek into. You can add more applications in the same way as you did in the last step, and you can change the preferred order using the Move Up and Move Down buttons.
If you're satisfied with your choices, you can click the Apply button to save your changes without closing the dialog box. This gives you the opportunity to test in the Konqueror window that your file association is correct. You can choose OK to save your changes and close the dialog box, or Cancel if you have changed your mind and just want to close the dialog box.
Be sure to try your new association by opening a directory containing a file of the type you just selected. Click on the file, and the program needed to edit it should start.
types are a way of describing the contents of files. You may be used to using file extensions for that purpose, and you may know that on systems the file extension often bear little or no relation to the contents of the file. On the other hand, it may be vital - for example, some implementations of gunzip won't operate on files that aren't named .gz.
types naturally make use of filename patterns, but not necessarily the extensions - you can set up any filename pattern you like. For example, if you always want to open any files relating to a particular client with , and you make a habit of naming the files with the client's name at the beginning so that they naturally group in the window, then you can set up a filename pattern that matches ^clientname*. Then any files that have clientname at the beginning (the ^ character means starts with...) and without any regard to the rest of the filename.