Commit: 9b11b92869f18f238a0c068675da24e0d1987224
Parent: 5b14d134f198cfd96a62daeffbef638c8bb0c976
Author: Ren Tatsumoto
Date: Thu, 27 Aug 2020 16:47:05 +0300
rename reset function
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
@@ -96,7 +96,7 @@ This step is not necessary.
```
Ctrl+e script-binding anki-export-note
Ctrl+s script-binding set-starting-point
-Ctrl+r script-binding reset-starting-point
+Ctrl+r script-binding reset-timings
Ctrl+t script-binding toggle-sub-autocopy
Ctrl+h script-binding sub-rewind
```
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -475,9 +475,9 @@ subs.clear = function()
subs.list = {}
end
-subs.reset_starting_point = function()
+subs.reset_timings = function()
subs.clear()
- mp.osd_message("Starting point is reset.", 2)
+ mp.osd_message("Timings have been reset.", 2)
end
------------------------------------------------------------
@@ -557,6 +557,6 @@ check_config_sanity()
ankiconnect.create_deck_if_doesnt_exist(config.deck_name)
mp.add_key_binding("ctrl+e", "anki-export-note", export_to_anki)
mp.add_key_binding("ctrl+s", "set-starting-point", subs.set_starting_point)
-mp.add_key_binding("ctrl+r", "reset-starting-point", subs.reset_starting_point)
+mp.add_key_binding("ctrl+r", "reset-timings", subs.reset_timings)
mp.add_key_binding("ctrl+t", "toggle-sub-autocopy", clip_autocopy.toggle)
mp.add_key_binding("ctrl+h", "sub-rewind", sub_rewind)