#What is this? mimi is an improved verision of xdg-open. The original xdg-open works horribly without DE environment.
you can define a list of 'how-to-open' in '~/.config/mimi/mime.conf' (read below for format)
or you are lazy, mimi will search a best-fit app using .desktop file. Best fit is defined as the first option sorted by mime order and then , if they have the same mime order, reverse sorted by generality
For example, the best-fit app says it can open 'text/html' in the very beginning of its mime definition. if two or more apps have the same priority, then we choose the app that can open the most number of file types.
#search order for example, I want to define how to open 'text/html'. mime will search in order like this
#customize this is my own stuff
text/: xterm -e vim application/pdf: zathura video/: vlc image/: feh audio/: vlc application/x-tar: xterm -e 2a application/x-gzip: xterm -e 2a application/x-bzip2: xterm -e 2a application/x-rar: xterm -e 2a application/x-xz: xterm -e 2a application/zip: xterm -e 2a inode/directory: xterm -e ranger
it can be simplified by using:
rar: xterm -e 2a
but if you have time, using mime-type is more precise