18 2
Contact Author Sign in to rate

Collapsible Fields

0.01MB. Updated 2021-08-29. Only supports Anki 2.1.x.
The author has shared 13 other item(s).

Description

Adds a little arrow on top of your fields, which allows you to collapse them. Works in the Current Card Editor, Browser, and the Add Cards dialogs. Shortcuts All shortcuts are settable through "Tools > Add-ons > Collapsible Fields > Config". Collapse by default You can set fields to collapse by default. To enable this, open the editor, select "Fields", choose your field, and check "Collapse by default". Updates 2020-03-07: * Remove bug that prevented using Alt+Shift+Direction key 2021-02-11: * Anki 2.1.41 support 2020-12-22: * Green highlight on icon when field has content * Fix blinking in browser * Fix compatibilities with Persistent Editor * Make collapsed fields unfocusable using Tab / Shift+Tab * On Anki 2.1.38, you can Alt+Shift-click a field name to clear it (even if collapsed) 2021-08-28: * Update for Anki 2.1.45+! Thanks go out to RisingOrange for helping out with this * Clickable area around arrow is bigger (Thanks to Kleinerpirat) Support If you like my add-ons, you can consider supporting me. My add-ons will always be freely available for everybody, but what I can offer you is my sincere thanks, and first-hand technical support, if you have any questions/issues with my add-ons. At the same time it allows me to put more time and focus into developing these and making them as powerful and user-friendly as they are. Thanks for considering! ko-fi.com/hgiesel patreon.com/hgiesel

Download

As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:

1896168623

If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author

Reviews

on 1634025513
Great Add-On, I've been using it for a while!

Just updated Anki to 2.1.48 — it seems the Add-On only works partially, for the time being:

some ticks for 'Collapse by default' are heeded, others ignored; i.e. one Field I need to be open in the 'Add'-Dialogue is collapsed, even though there's NO tick for 'Collapse by default'. All the other Fields are fine … ;)

(there are 15 Fields in this note type, in case this is relevant)
on 1633823102
Nice! I stumbled upon this by accident--was looking for way to collapse items in left panel--but it makes another wish I had possible: To add a field that I may not use most times to a general note template; now that field won't clutter the editor. "Rate Collapsible Fields" was a great find today.
Comment from author
I'm glad you like it
on 1630255522
As someone said, it doesn't work on 2.1.46 version, and it was very useful. What a pity.

Edit: It works now on 2.1.46!!! Thanks a lot, Mr.
Comment from author before post was edited
Updated :)
on 1630191934
Works in 2.1.46
I love u.
Comment from author before post was edited
Should work now :)
on 1628527414
Great, thanks a lot! Would be even greater if there is a way for me to change the green highlight to, for example, blue highlight?
Comment from author before post was edited
Which color?
on 1624218684
Collapse by default not working :(
on 1620987185
If you use the Japanese addon, after Japanese gets generated it opens back up the collapsed text

It would be nice if the text label was clickable to collapse instead of the tiny collapse button.

I'm also getting this error when generating card data.

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 37, in cmd
File "aqt\webview.py", line 123, in _onCmd
File "C:\Users\\AppData\Roaming\Anki2\addons21\278530045\main.py", line 369, in prevBridgeReroute
ogAnkiWebBridge(self, cmd)
File "aqt\webview.py", line 541, in _onBridgeCmd
File "aqt\gui_hooks.py", line 2959, in __call__
File "C:\Users\\AppData\Roaming\Anki2\addons21\1896168623\src\webview.py", line 30, in handle_collapsible_messages
model = context.note.model()
AttributeError: 'NoneType' object has no attribute 'model'
on 1620669058
Excellent add-on, but it has an annoying bug (nothing that obscures the brightness of its work): sometimes, when opening the card addition box, no file presents collapsed as placed in the field customizations. Would it be an addon problem?
Note: To return to the initial preset (collapse certain fields), it is necessary to restart Anki.

Edit: I found an error: every time you change the deck cards, the addon stops working, therefore it is necessary to restart the program

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2021-05-09 22:14:12

Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 37, in cmd
File "aqt\webview.py", line 123, in _onCmd
File "aqt\webview.py", line 541, in _onBridgeCmd
File "aqt\gui_hooks.py", line 2959, in __call__
File "C:\Users\xxx\AppData\Roaming\Anki2\addons21\1896168623\src\webview.py", line 30, in handle_collapsible_messages
model = context.note.model()
AttributeError: 'NoneType' object has no attribute 'model'


Brazilian greetings: D
on 1619415221
Unfortunately I couldn't get it to work on my anki.

I use Anki version 2.1.35. I don't know if it works for just a specific type of card, but in all that I tried it didn't work.

A pity, because I really liked the idea!

Edit: The author's suggestion solved my problem. There is incompatibility between this addon and the Frozen Field addon.

As I understand it, it is not possible to use both at the same time. Despite the regrets, good work, it is a very interesting addon!
Comment from author
It's most likely an incompatibility with another add-on. Have you tried disabling other add-ons? Possibly Glutanimates Frozen Fields?

Edit: You can use "Ze Frozen Fields" instead, which is a more compatible version of Frozen Fields
on 1617809136
Great add-on!
Worked for me in Anki version 2.1.43.

Regards,
Andrej Adamenko
https://forums.ankiweb.net/u/andr/summary
on 1617297080
I'm on win10 and using cloze overlapping notes on anki 2.1.38. It doesn't work for me, arrows are not present, I do have the collapse by default option but even if selected, nothing happens.

UPDATE:
Yes, you were right. It conflicts with frozen fields. Is there a way to have both of them working?

Update: Thank you so much, now it works flawlessly
Comment from author before post was edited
Probably a conflict with another add-on. Maybe Frozen Fields? Have you tried turning off all other add-ons?
Edit: You can use https://ankiweb.net/shared/info/94610912 instead of Frozen Fields.
on 1616531874
Thanks
on 1615196506
Great. But it binds ⌥⇧← (Alt+Shift+←), ⌥⇧→, etc., which I need to select words forwards, backwards, etc. Would it be possible that you make these bindings optional?
Comment from author
The version for Anki 2.1.41 solved this issue, I might go back and fix the older versions too.
on 1615117184
Thanks! I recently added additional cloze fields to my notes, but they are empty more often than not. With this add-on, they take up less space and I can immediately see Sections like Extra, Sources, Images.
on 1610133435
+
on 1608656056
I didn't know I needed It up to I see It
on 1607619206
Great add-on
can you make the same idea but for the content of the field during the review?
Comment from author
This can be done by using the HTML `detail` element, have a look here: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_details_css.
Another idea is the built-in `{{hint::}}` tag. If you post the question on the Anki forum, and @ me, I could help you even more.
on 1606690607
Love the functionality, but I the icons are a bit distracting. They don't really blend in with Anki, so I made an alternative set of icons that look more "default": https://snipboard.io/GlRIrz.jpg

(Feel free to download the icons here: https://gofile.io/d/5WdfpG)

EDIT: Of course! I'm glad you like them!
Comment from author before post was edited
I really like the icons! They're much better than the ones I chose. I especially like how they're a bit off-center, to be more centered in front of the first letter. If you agree to it, I would include yours in the add-on.
on 1606481005
Thank you for making this addon. Nice!
on 1606428819
Great idea! Will prove extremely useful for Closet cmds fields.
I also love that you can now tab over less used fields when they are collapsed. Improves the workflow a lot.