Quick note and deck buttons (Fork for 2.1) [Official thread]

If you have a problem with the add-on Quick note and deck buttons (Fork for 2.1) post in this thread. This way I get notified. If you make a new thread I will likely miss it. If you post your comment, question or bug report on ankiweb as a review I won’t get notified. You really should post in this thread.

1 Like

I am facing an issue with displaying the config file of this add-on in my add-on-browser.

I already reinstalled the add-on. The file “config.md” is present in the add-on-folder but it is not being displayed in the add-on-browser. The button “Config” is greyed out.

Thanks!
Kind regards,
Lukas

I don’t fully understand your post.

To make sure we use the same terms:

In the Anki main window there’s a menu bar named “Tools” and in it there’s an option “Add-ons”. When you click it a new dialog opens titled “Add-ons” (add-on dialog). This dialog shows list of all your add-ons installed.

After installing the add-on with the number “1331140127” there should be an entry “Quick note and deck buttons (Fork for 2.1)”.

Question 1: Do you see this? When you double click this entry does another window open? When you select this entry can you click “Config”?

In this additional config window for one add-on you’ll see your config on the left (which is stored in two different files in your add-on folder named config.json and meta.json). On the right you see the contents of a config.md (if present).

Question 2: From the main window click on Help->About. In the window that opens click the “Copy Debug Info” Button and share the copied text.

Question 3: If you are not on the latest Anki version 2.1.26 update and try again. Also disable all other add-ons and restart to rule out an interference. Does this help? My add-on should work on older versions but I only care about the Anki version I use (which is 2.1.26 at the moment).

1 Like

Hi, i want set 4 buttons, can u help me?

your screenshot is too small and doesn’t show your whole config. So I can’t help.

Go to line 40 of your config. There’s an error.

 

general remarks: Your config must be a valid “json” file. So you could google “syntax json” or something for a short introduction which will help will all add-ons in the future. There are also websites where you can paste your json code which highlight invalid parts which makes it easier to fix it.

In general:

  1. Closely look how it’s done in the default config
  2. Usually all settings must be surrounded with "" (quote signs). There are some exceptions: The boolean values true/false (lowercase) and numbers. But a few add-ons have counterexceptions where you must also quote numbers. But then rule 1 helps.
  3. json holds key-value pairs that can be nested. As values you can also have list and other key-value pairs. In general at the end of each pair you must have a comma. Exception: Trailing commas are not allowed.
  4. all opening square bracket [ and curly braces { must have a closing counterpart ] or }.
1 Like

I’m having issues editing the lines of code for this add-on. I apologize ahead of time if this is way simple but I have no background in this and I already spent a couple hours trying to figure this out…

When ever I change around the config.md file (even just a single character sometimes) I get a message - “Invalid configuration: JSONDecodeError(‘Expecting value: line ## column ## (char ###)’)”. This message of course varies depending where and what I change but it seems I get it no matter what I do.

What am I doing wrong? I’ve seen some examples and even added a “u” before some deck names, because I use an @ symbol for names sometimes, but no success.

@gun123: in Anki 2.1 in the add-on config window in effect you edit a so-called json-file.You could google for a webpage where you get a description of the rules for json written by someone who speaks English natively and professionally writes understandable documentation … There are also validators that show more info about json code you paste to them. Maybe their messages are more useful than what Anki shows you. Google for “validate json”.

For another add-on I recently wrote: multiline setting issue in 2.1.22 · Issue #13 · ijgnd/anki__BetterSearch · GitHub Maybe there’s something useful in it.

Without seeing the config I can’t say where your problem is, maybe it’s just one comma in the wrong place, etc. I’m very busy at the moment so I’ll probably only check this forum again next weekend.

 

added a “u” before some deck names

This won’t help here: Adding a “u” was only needed in the old Anki 2.0 where as a user you set your config in python files and python2 didn’t handle non-English characters unless you prefixed a string with a “u”. Now you set json files (and Anki 2.1 internally uses python3).

This helped so much!!! Thank you. I used an online validator to find my formatting errors.

Hello, I noticed a little problem

if you use the addon’s change note type button while a field is not empty the content of this field will be transferred to whichever field is in the same position in the second note type, while Anki’s default change note type button instead checks if there is any field with the same name even and if so moves the content to that one

@jcznk: I added a reminder to my todo list. I’m busy so fixing this might take some time.

I need more info: In the main window click menu bar click on “Help”, then “About”. In the window that opens click the button “Copy Debug Info” at the bottom. This copies useful info about your setup to your clipboard. Share this here.

Alright, here it is

Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-02 15:14:27


===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
'' ['show_warning_if_no_tags_when_adding_cards', 0, 'None', '']
ANTI-SUCK automatically move leeches to a separate deck ['1131698154', 2019-11-24T18:14, 'None', '']
Add Cards - Web Browser ['1783260740', 2020-04-24T08:08, 'None', '']
Add Hyperlink ['318752047', 2020-07-29T22:37, 'None', '']
Add Table ['1237621971', 2020-07-25T14:19, 'None', mod]
Additional Card Fields Fork for 21 ['744725736', 2020-04-16T12:00, 'None', mod]
AddonBackup ['162231225', 2020-04-09T08:30, 'None', '']
Advanced Browser ['874215009', 2020-04-08T21:58, 'None', '']
Advanced Copy Fields ['1898445115', 2020-04-08T22:04, 'None', '']
Agent Orange Pseudo-Fuzz Defoliator ['175851166', 2019-08-03T06:46, 'None', '']
Anki Browser Context Menu Search ['422526650', 2020-04-04T00:19, 'None', '']
Anki Simulator ['817108664', 2020-07-21T16:17, 'None', '']
Anki Zoom ['538879081', 2020-04-04T07:00, 'None', mod]
AnkiWebView Inspector ['31746032', 2020-04-08T21:40, 'None', '']
AutoDefine - Automatically define vocabulary words with pronunciations and image ['2136497008', 2020-04-10T07:03, 'None', mod]
AwesomeTTS Google Cloud Text-to-Speech unofficial ['814349176', 2020-07-12T18:33, 'None', '']
Batch Editing ['291119185', 2020-02-25T01:13, 'None', '']
Batch Remove Formatting eg bold italics etc ['1734822644', 2020-03-30T16:45, 'None', '']
BetterSearch ['1052724801', 2020-07-29T00:44, 'None', mod]
Blitzkrieg II - Advanced Browser Sidebar BETA7 ['564851917', 2020-04-08T21:29, 'None', '']
Browser TableEditor side-by-side horizontal split ['831846358', 2020-07-08T01:44, 'None', mod]
Cacher In The Rye Windows Archived ['1302452246', 2020-02-25T01:32, 'None', '']
Change note type respect field and card names ['513858554', 2020-04-05T17:41, 'None', '']
Click to replay animated Gifs ['677177530', 2020-04-08T22:28, 'None', '']
Clickable Tags v20 Anki 2120 support ['1739176371', 2020-03-13T15:25, 'None', '']
Color Confirmation ['1084228676', 2020-03-14T13:13, 'None', '']
Colorful toolbars ['388296573', 2020-04-20T11:22, 'None', '']
Customize Keyboard Shortcuts ['24411424', 2020-08-20T05:39, 'None', mod]
Customize Sidebar ['1988760596', 2020-02-25T01:21, 'None', '']
Deck Stats ['1421528223', 2020-02-25T01:23, 'None', '']
Deck name in title 21 ['699175524', 2020-03-25T09:14, 'None', '']
Disable fading between cards ['1533933651', 2019-07-16T17:23, 'None', '']
Edit Field During Review Cloze ['385888438', 2020-06-11T14:32, 'None', mod]
Empty cards returns more usable informations ['25425599', 2020-03-26T17:56, 'None', '']
Enhance main window ['877182321', 2020-05-03T18:58, 'None', mod]
Extended Card Stats During Review ['1008566916', 2020-02-25T01:09, 'None', '']
External Note Editor for the Browser ['1996266159', 2020-04-08T21:37, 'None', '']
Fast cards reposition ['544982740', 2020-04-08T22:01, 'None', '']
Field History ['1247884413', 2019-01-08T19:34, 'None', '']
Field Modifier Random Item Fork for 21 ['1940275457', 2019-04-11T17:43, 'None', '']
Flexible Duplicate Checking ['1587955871', 2020-05-19T08:49, 'None', '']
Frozen Fields ['516643804', 2020-03-31T18:50, 'None', '']
Hanzi Stats ['181243826', 2020-05-01T20:07, 'None', '']
Highlight Search Results in the Browser ['225180905', 2018-02-17T01:40, 'None', '']
Holdem Cardfield Preserves add card history ['363320830', 2020-02-25T01:33, 'None', '']
HoochieMama Randomize Rev Queue ['1460733408', 2020-06-03T15:17, 'None', '']
HoochiePapa Randomize New Queue ['1173108619', 2020-04-25T05:17, 'None', '']
Ignore accents in browser search ['1924690148', 2020-06-14T16:42, 'None', '']
Image Editor ['307397307', 2020-07-06T09:10, 'None', mod]
Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-04-28T04:21, 'None', '']
Image Style Editor ['1593969147', 2020-04-08T21:49, 'None', mod]
Improved Quizlet to Anki 21 Importer ['538351043', 2020-08-31T12:47, 'None', '']
Increase autosave frequency ['786971082', 2020-04-08T23:52, 'None', '']
Keep card displayed in reviewer until it is modified ['1894745652', 2020-04-05T20:57, 'None', '']
Kitten Rewards Gamification ['1627107763', 2020-03-24T19:18, 'None', '']
Knockout Deck Subset Learning ['899747926', 2020-02-25T01:33, 'None', '']
LPCG LyricsPoetry Cloze Generator ['2084557901', 2020-04-08T21:58, 'None', '']
Localize Media ['1293255374', 2018-11-26T12:27, 'None', '']
Long term backups ['529955533', 2020-03-26T17:52, 'None', '']
MIA Retirement ['1666520655', 2020-03-11T00:26, 'None', mod]
Maximum image height and width in card editor ['229181581', 2020-03-22T19:23, 'None', '']
Mini Format Pack ['295889520', 2020-02-28T12:16, 'None', '']
More Overview Stats 21 ['738807903', 2020-02-25T01:24, 'None', '']
Oxford Dictionaries ['1515522458', 2020-02-27T11:43, 'None', '']
Pennywise Add Only Once Option ['1032766035', 2020-02-25T01:34, 'None', '']
Pop-up Wikipedia Beta ['395343016', 2020-04-08T21:58, 'None', '']
Progress Graphs and Stats for Learned and Matured Cards ['266436365', 2020-03-29T08:26, 'None', '']
Pull from Duolingo - Temporarily Broken by Recent Change to Duolingo ['557761805', 2020-04-16T16:39, 'None', '']
Push Paradox Sibling Cardistry ['1797395052', 2020-04-04T06:40, 'None', '']
Quick Colour Changing ['2491935955', 2020-03-27T16:20, 'None', mod]
Quick note and deck buttons Fork for 21 ['1331140127', 2020-05-13T16:05, 'None', mod]
Quick tagging 21 ['304770511', 2020-03-26T17:51, 'None', '']
ReMemorize Ex Rated0Search Archived Deprecated since 2124 ['1056004913', 2020-04-15T21:17, 'None', '']
ReMemorize Rescheduler with sibling and logging v140 ['323586997', 2020-04-17T09:07, 'None', mod]
Refocus Card when Reviewing 21 ['1642550423', 2020-02-25T01:27, 'None', '']
Remove Cloze Button and Hotkey ['836994508', 2020-03-23T20:43, 'None', mod]
Remove card history ['2089200096', 2020-04-08T21:57, 'None', '']
Replay buttons on card ['498789867', 2020-02-25T01:15, 'None', '']
Review Heatmap ['review_heatmap', 2018-10-28T23:06, 'None', '']
Reviewer Context Menu Search ['359618071', 2020-04-04T00:18, 'None', '']
Search and Replace Tags ['138501288', 2020-02-25T01:12, 'None', '']
Slackers Delight PostponeDefer Button ['880824023', 2020-03-31T18:51, 'None', '']
Small Potatoes Show learning step count in days ['75718778', 2020-04-02T20:53, 'None', '']
Special Fields ['1102281552', 2020-08-16T17:18, 'None', mod]
Statistics for Note Types Card Types and Tags ['16703369', 2020-07-20T04:11, 'None', '']
Straight Reward ['957961234', 2020-03-17T18:38, 'None', mod]
Study Logger ['1919929679', 2020-04-04T06:45, 'None', '']
Symbols As You Type ['2040501954', 2020-04-30T16:32, 'None', '']
Symbols ['1461102936', 2020-03-23T12:52, 'None', mod]
Tag Toggler Fork for 21 ['1429363228', 2020-05-08T14:01, 'None', mod]
Text Rendering Fix ['94394764', 2020-03-22T19:38, 'None', '']
Toggle front and back card in Anki 21 ['1240106570', 2020-04-01T23:18, 'None', '']
Touch Wood Show New Cards Left Hint ['1498273991', 2020-04-04T06:45, 'None', '']
Transfer scheduling data from one card to another ['94685914', 2020-04-15T16:53, 'None', '']
True Retention by Card Maturity ['923360400', 2020-02-25T01:25, 'None', '']
batch change fonts ['1479177943', 2020-07-13T22:37, 'None', '']
confirm deletion ['263363568', 2019-04-13T13:21, 'None', mod]
editor - remove more formatting for selection headings hyperlinks  ['333221628', 2019-04-11T00:45, 'None', mod]
editor apply font color background color custom class custom style ['1899278645', 2020-01-22T15:51, 'None', '']
extended html editor for fields and card templates with some versioning ['1043915942', 2020-07-20T23:31, 'None', '']
memrise2anki ['memrise2anki', 2020-02-23T20:43, 'None', '']
put ALL due learning cards first modified v2 support ['1807121582', 2019-11-24T20:20, 'None', '']
rebuild allempty all filtered decks enhanced fork ['104518886', 2020-05-27T11:23, 'None', '']
remove linebreaks  do word wrap fork for 21 ['2028179508', 2020-05-11T14:58, 'None', '']

===IDs of active AnkiWeb add-ons===
1008566916 1032766035 1043915942 104518886 1052724801 1056004913 1084228676 1102281552 1131698154 1173108619 1237621971 1240106570 1247884413 1293255374 1302452246 1331140127 1374772155 138501288 1421528223 1429363228 1460733408 1461102936 1479177943 1498273991 1515522458 1533933651 1587955871 1593969147 162231225 1627107763 1642550423 1666520655 16703369 1734822644 1739176371 175851166 1783260740 1797395052 1807121582 181243826 1894745652 1898445115 1899278645 1919929679 1924690148 1940275457 1988760596 1996266159 2028179508 2040501954 2084557901 2089200096 2136497008 225180905 229181581 24411424 2491935955 25425599 263363568 266436365 291119185 295889520 304770511 307397307 31746032 318752047 323586997 333221628 359618071 363320830 385888438 388296573 395343016 422526650 498789867 513858554 516643804 529955533 538351043 538879081 544982740 557761805 564851917 677177530 699175524 738807903 744725736 75718778 786971082 814349176 817108664 831846358 836994508 874215009 877182321 880824023 899747926 923360400 94394764 94685914 957961234

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Add a tag to notes with missing media ['2027876532', 2020-03-26T17:45, 'None', '']
Add-on folder with readable names ['519936472', 2020-03-31T18:50, 'None', '']
Browser Resizer ['1435775540', 2020-04-08T21:53, 'None', '']
Clickable Tags v11 ['380714095', 2020-03-22T14:56, 'None', '']
Cloze Hide All ['1709973686', 2020-07-21T04:53, '20.6.20i63', '']
Customize Editor Stylesheet ['1215991469', 2020-02-28T07:13, 'None', '']
Deadline2 ['723639202', 2020-05-05T21:38, 'None', mod]
GODMODE faster shortcuts and cloze switching ['1508677152', 2020-06-09T21:15, 'None', mod]
High Yield Tags ['1918380616', 2020-06-30T22:35, 'None', '']
Hitmarkers ['1776869150', 2020-04-01T00:04, 'None', '']
Lapse Lapse Revolution ['591909957', 2019-07-06T06:53, 'None', '']
No Distractions Full Screen Clean review interface  TabletTouch support ['1049863218', 2020-08-14T00:59, 'v4.1.8', '']
Open deck in browser from main window ['1886315955', 2020-03-26T17:43, 'None', '']
Partial synchronization for inconsistent database ['1675325364', 2020-03-26T17:43, 'None', '']
Pop-up Dictionary beta ['153625306', 2020-02-25T01:24, 'None', '']
Pretzel Logic Retention Benchmarking ['1168065472', 2020-04-25T05:13, 'None', '']
Separate Learn and Relearn in the Answer Buttons graph 21 ['403491806', 2020-03-26T17:49, 'None', '']
Set Font Size ['651521808', 2018-09-30T13:23, 'None', mod]
Throughput Monitor ['826650564', 2019-08-21T19:17, 'None', mod]
True Retention ['613684242', 2020-02-25T01:16, 'None', '']
Undelete deleted note ['912930620', 2019-05-01T08:53, 'None', '']
Zoom 21 ['1846592880', 2020-03-21T09:48, 'None', mod]
bury future new sibs ['930365039', 2019-11-24T21:09, 'None', '']
link cardsnotes and preview them in extra window ['1423933177', 2020-03-03T12:12, 'None', '']

Thank you for this port, it’s work perfectly on Anki 2.1.38. Would be great have an update for Anki 2.1.41, currently doesn’t work.

@savage: I uploaded a new version for 2.1.41. I think a small fix was enough. If you find problems let me know.

Thank you very much @ijgnd !! It’s works perfectly no errors.

Could you adapt to the latest version(2.1.43)? I cannot live without this add-on, please.

I just adjusted the compatibility info so it should work with .43 now. There were some changes recently that should break my add-on - maybe they were postponed to .44.

Well, it cannot use again in 2.1.44 indeed…

44 is a mostly the same as 43 so I didn’t change my addon. When I set the limit to <43 many weeks ago it looked like the big breaking changes that are now in 45 would already arrive in 44.

I have no idea why my add-on is not offered as an update. maybe reinstall it (and maybe delete the old version before it - if you delete make sure to save/store your custom config elsewhere).

Any plans to update this add-on to the anki version 2.1.46? Thank you for you good work, I love this add-on.

plans yes, time no. At the moment I don’t expect to have an update in the coming weeks/months. If someone else has working code I’m happy to merge and release it.