celluloid-player / celluloid

A simple GTK+ frontend for mpv
https://celluloid-player.github.io
GNU General Public License v3.0
1.13k stars 88 forks source link

Feature request: playback history #598

Open baybal opened 3 years ago

baybal commented 3 years ago

Hello,

Would it be possible to add playback history to Celluloid? It would be great if you use Gtk's file history.

gnome-mpv commented 3 years ago

There's already one in the open dialog. It's under the Recent Files section.

baybal commented 3 years ago

There's already one in the open dialog. It's under the Recent Files section.

File chooser recent files, and file/url history are two different things. The former will not show arbitrary URLs for example.

image

What I am talking about is a per-application recent history.

https://developer.gnome.org/gtk3/stable/GtkRecentChooser.html https://developer.gnome.org/gtk3/stable/GtkRecentChooserMenu.html

fabianski7 commented 3 years ago

Any way to achieve this with this script? https://github.com/hacel/recent it works fine on mpv but i couldn't on celluloid. the default hotkey doesn't work and changing it to a free one didn't help either

gnome-mpv commented 3 years ago

@fabianski7 If you replace mp.find_config_file(".") on this line with a string containing a path to a directory for storing the plugin's log file, it should work.

Example: o.log_path = utils.join_path("/tmp", o.log_path).

fabianski7 commented 3 years ago

Thanks!