Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

script-opts keybindings not being detected by Celluloid #945

Closed
kekkoudesu opened this issue May 9, 2024 · 0 comments
Closed

script-opts keybindings not being detected by Celluloid #945

kekkoudesu opened this issue May 9, 2024 · 0 comments
Assignees

Comments

@kekkoudesu
Copy link

Overview Description:

I have several mpv plugins loaded into Celluloid. One of this is playlistmanager.

I've set these keybindings inside of ~/.config/celluloid/script-opts/playlistmanager.conf:

#dynamic keybind keys, they should not be re-bound in input.conf
#to bind multiple keys separate them by a space
key_moveup=k
key_movedown=j
key_selectfile=l h
key_unselectfile=
key_playfile=l
key_removefile=BS
key_closeplaylist=ESC q

When I press n to active the playlist selection, and then hit j to go down, instead of moving down the playlist, it seeks through the video because in my input.conf, I have this set:

j	seek  10

So it does that instead. On normal mpv, I can move down playlistmanager with these options set. It seems like Celluloid doesn't load script-opts, maybe?

Steps to Reproduce:

  1. Download playlistmanager.
  2. Set your keybindings inside ~/.config/celluloid/script-opts/playlistmanager.conf so they match mine. Make sure you also match my input.conf.
  3. Try to move down to the next video in playlistmanager with j. It doesn't work.

Actual Results:
The keybindings set for playlistmanager in script-opts work.

Expected Results:
They don't work.

Version: 0.26-1 on Arch Linux, and 0.26 via Flatpak on my Fedora Silverblue system.

Additional Information:
I've noticed that in my modified autoload.lua file, where I have CTRL+L set to load videos in the directory (mp.add_key_binding("CTRL+l", "find_and_add_entries", find_and_add_entries)), Celluloid instead tries to Open Location instead of running the function. This line of code appears in the last line of the actual script, rather than script-opts.

@gnome-mpv gnome-mpv self-assigned this May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants