Skip to content

Commit

Permalink
Some small refactoring on More Answer Buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
glutanimate committed Apr 4, 2019
1 parent 0372969 commit fe9605f
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

"""
Anki Add-on: More Answer Buttons for New Cards
Entry point for the add-on into Anki
Please do not edit this if you do not know what you are doing.
Copyright: (c) 2016-2019 Glutanimate <https://glutanimate.com/>
(c) ijgnd 2019
License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl.html>
"""

Expand All @@ -22,4 +26,4 @@
# Please use NotePad++ or another text editor that supports python
# source code files to edit it

import more_answer_buttons
import more_answer_buttons # noqa: F401
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Configuring the add-on on Anki 2.0

The configuration options may be found at the top of the file reviewer_more_answer_buttons_for_20.py.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
# Please do not edit this if you do not know what you are doing.
#
# Copyright: (c) 2017-2019 Glutanimate <https://glutanimate.com/>
# (c) 2019 ijgnd
# License: GNU AGPLv3 <https://www.gnu.org/licenses/agpl.html>

import sys
import os
from anki import version

anki20 = version.startswith("2.0")

if anki20:
from . import reviewer_more_answer_buttons_for_20
from . import reviewer_more_answer_buttons_for_20 # noqa: F401
else:
from . import reviewer_more_answer_buttons_for_21
from . import reviewer_more_answer_buttons_for_21 # noqa: F401
10 changes: 10 additions & 0 deletions src/reviewer_more_answer_buttons/more_answer_buttons/config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### Answer button properties

You can add 4 buttons at maximum, each of which should have the following properties defined (please refer to the default config for the exact syntax and formatting):

Description ... appears above the button
Label ... the label of the button
ShortCut ... the shortcut key for the button
ReschedMin ... same as the lower number in the Browser's "Edit/Rescedule" command
ReschedMax ... same as the higher number in the Browser's "Edit/Rescedule" command

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "More Answer Buttons for New Cards",
"package": "153603893"
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
Adds extra buttons to the answer button area for new cards
Copyright: (c) Steve AW 2013 <[email protected]>
(c) Glutanimate 2016-2017 <https://glutanimate.com/>
(c) ijgnd 2019
Copyright: (c) 2013 Steve AW <[email protected]>
(c) 2016-2019 Glutanimate <https://glutanimate.com/>
(c) 2019 ijgnd
License: GNU AGPLv3 or later <https://www.gnu.org/licenses/agpl.html>
"""

Expand Down

0 comments on commit fe9605f

Please sign in to comment.