fix #29
introduced file mode. This might raise more issues. It might be useful
to have a configuration to exclude certain files from file preview (.ini
.wmf are annoying)