Commit: ad29c3441fed3e09a2b3956d4694f60bdf179876
Parent: b3b5c7a29cbf438f3086e28c14d9b4e9cc529ffd
Author: Ren Tatsumoto
Date: Tue, 4 Aug 2020 07:53:58 +0300
ctrl+a aborts sub-text concatenation
Diffstat:
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/README.md b/README.md
@@ -77,13 +77,16 @@ snapshot_height=200
```
## Usage
-* `Ctrl+t` **t**oggles `autoclip` option. When enabled, you can use it in
-combination with [Yomichan](https://foosoft.net/projects/yomichan/)'s clipboard monitor. `Yomichan Search` is activated
-by pressing `Alt+Insert` in your web browser.
+* `Ctrl+t` **t**oggles `autoclip` option.
+When enabled, you can use it in combination with
+[Yomichan](https://foosoft.net/projects/yomichan/)'s clipboard monitor.
+`Yomichan Search` is activated by pressing `Alt+Insert` in your web browser.
* `Ctrl+e` **e**xports a card with currently visible subtitle text on the front.
-* `Ctrl+s` sets the **s**tarting line. It is supposed to be used when the sentence spans
-multiple subtitle lines. After pressing `Ctrl+s` wait for the next line(s) to
-appear and then press `Ctrl+e` to set the **e**nding line and create the card.
+* `Ctrl+s` sets the **s**tarting line.
+It is supposed to be used when the sentence spans multiple subtitle lines.
+After pressing `Ctrl+s` wait for the next line(s) to appear
+and then press `Ctrl+e` to set the **e**nding line and create the card.
+* `Ctrl+a` **a**borts string concatenation process started by `Ctrl+s`.
After the card is created, you can find it by typing ```tag:subs2srs added:1```
in the Anki Browser. Then use [qolibri](https://aur.archlinux.org/packages/qolibri/)
diff --git a/subs2srs.lua b/subs2srs.lua
@@ -386,4 +386,5 @@ config.check_sanity()
ankiconnect.create_deck_if_doesnt_exist(config.deck_name)
mp.add_key_binding("ctrl+e", "anki-add-note", export_to_anki)
mp.add_key_binding("ctrl+s", "set-starting-point", subs.set_starting_point)
+mp.add_key_binding("ctrl+a", "abort-multiline-export", subs.clear)
mp.add_key_binding("ctrl+t", "toggle-sub-autocopy", clip_autocopy.toggle)