aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2024-03-04 12:18:49 +0530
committersinanmohd <sinan@sinanmohd.com>2024-03-04 12:46:22 +0530
commit8982ec02694f925ebb311b386dcd06063e5e55fe (patch)
tree54a1c271552e73ade6df89e88d70cee594146ac6
parent55e49cb31744c2fef297f2531fa914bd1b402ccf (diff)
mpv: bind b to sub_setup
-rw-r--r--README.md2
-rw-r--r--main.lua1
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index c30694e..518da5e 100644
--- a/README.md
+++ b/README.md
@@ -28,7 +28,7 @@ TODO
----
- [ ] use language from slang and fall back to english
- [x] deprecate subscene (unreliable servers and poor db)
-- [ ] add key binding to force subtitle lookup
+- [x] add key binding to force subtitle lookup
- [ ] implement text search on all severs
- [ ] remove the default retries
- [ ] shill on reddit and matrix
diff --git a/main.lua b/main.lua
index 2609b65..1b1eeb5 100644
--- a/main.lua
+++ b/main.lua
@@ -80,3 +80,4 @@ local file_listener = function ()
end
mp.register_event('file-loaded', file_listener)
+mp.add_key_binding('b', "mpvsub", sub_setup)