Now group items by their file extension
Removing debug print statements that I had overlooked
Now defaults the selection to the previously visited file.
This makes it much nicer to toggle between to files.
Now works when you have unsaved documents opened
Should (theoretically) work on Windows as well now