Skip to content

Commit

Permalink
Set keybindings to nil in copy-time.lua and mpv-gif.lua to avoid conf…
Browse files Browse the repository at this point in the history
…licts
  • Loading branch information
noelsimbolon committed Feb 20, 2022
1 parent 27cf6a6 commit 2a98020
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion scripts/copy-time.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ function copy_time()
mp.osd_message(string.format("Copied to clipboard: %s", time))
end

mp.add_key_binding("Ctrl+Alt+c", "copy-time", copy_time)
-- the keybinding here is set to nil on purpose 'cause I modified the keybinding (in input.conf)
mp.add_key_binding(nil", "copy-time", copy_time)
10 changes: 5 additions & 5 deletions scripts/mpv-gif.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ function file_exists(name)
if f~=nil then io.close(f) return true else return false end
end

-- all keybindings are overridden in input.conf
mp.add_key_binding("g", "set_gif_start", set_gif_start)
mp.add_key_binding("G", "set_gif_end", set_gif_end)
mp.add_key_binding("Ctrl+g", "make_gif", make_gif)
mp.add_key_binding("Ctrl+G", "make_gif_with_subtitles", make_gif_with_subtitles) -- making GIFs with subtitles doesn't seem to work
-- all keybindings here are set to nil on purpose 'cause I modified the keybindings (in input.conf)
mp.add_key_binding(nil, "set_gif_start", set_gif_start)
mp.add_key_binding(nil, "set_gif_end", set_gif_end)
mp.add_key_binding(nil, "make_gif", make_gif)
mp.add_key_binding(nil, "make_gif_with_subtitles", make_gif_with_subtitles) -- making GIFs with subtitles doesn't seem to work

0 comments on commit 2a98020

Please sign in to comment.