Support for GTK-Recent and various improvements
In the introductory blog-post I wrote that for the first month of my GSoC time I had planned to work on supporting the `recent:///` location and on
adding some other requested features, most notably the option to save the zoom-level per directory. The time has come for you to take a closer look at what I've
been working on.
- Support for GTK-Recent: A way to easily access recently used files is a staple of contemporary file managers. For that purpose, GTK has a special location on its virtual filesystem
called 'recent:///'. Until now users could access this location manually (by typing `recent:///` in the path bar) but because this location wasn't supported files appeared locked
and there were a variety of other issues, which rendered it useless. The following MR solves these problems.
Users will be able to use the `Recent` location like any other location that Thunar supports. In addition opening a file from Thunar adds it in the list of recently used files (previously
files got added to the recently used files only if they were opened by an app that supports GTK-Recent), there is an option to remove files from `Recent` and a new sorting column called `Recency`
has been added (only visible in the `Recent` folder).
Zoom-level as a per-directory setting: This is a feature that has already been merged, which means that you will be able to try it when the next development build gets released (or by compiling the current master branch). Thunar has supported per-directory
settings for quite some time. A significant omission was the ability to use different zoom-levels for different directories (e.g. a different zoom-level for a folder with family photos and a folder
with work documents). If you've been waiting for that... rejoice :-)
Preference to restore tabs on restart: Lately I've been working on a feature that is pretty common in web browsers, the option to restore the tabs as they were before exiting the program.
I've coded a rudimentary version that lacks support for things like the split-view. I'm hoping that in the next few days I'll complete my work on this feature.
Restore and show: This is a new option for restoring files from the Trash folder. The goal is to make it easier for users to use the restored files. The existing `restore` option removes the selected
files from the Trash folder and places them back in their original locations. Unfortunately, if you don't remember (or check) the location of the now restored files you might have a hard time finding them.
With this option the locations of the restored files will be opened as new tabs (I'm not quite sure if following the existing tabs/windows preference is the way to go, more on that later).
Originally I had planned to accompany this post with a video showcasing these features and talking about some minor details. Unfortunately it looks like my video editing software doesn't support
the format that I used to record my footage and it's getting pretty late over here, so I'll keep that for next week's update, stay tuned :^)
Link to all my Merge Requests: link