hssm/anki-addons

Multi-column note editor: order fields vertically, then horizontally?

Closed this issue · 22 comments

The fields are arranged as:
A B C
D E F
G H I

I'd prefer them to be arranged as:
A D G
B E H
C F I

Two reasons:

  1. For some note types, of two related fields, the first one appears in the second column, and the second one in the first column. This cannot be fixed easily by re-arranging fields if there is an odd number of fields before those two.
  2. Fields can be of different height, which seems to interfere with scanning of the table.
hssm commented

I understand what you're asking for, but I don't understand the reasons you cited. Wouldn't those issues still apply for both? I can add a button to toggle this anyway.

Regarding the height issue, I was thinking of making a (configurable) fixed-height setting, and add a scrollbar for any overflow. That way the boxes won't keep shifting.

But it's a low priority right now.

hssm,

Thanks for writing this addon. I really like it. Wish I would have discovered it earlier. Anyhow, there is one feature I wish it had. I thought I would at least ask and see if you might be willing to add the feature. If not, I'm still glad to have the great addon.

So, in my situation, I have one field that that is just bigger than the rest. Lots of small fields, one big one. This single field takes a lot of horizontal space. When I turn the columns on, this single field just wraps and forces the height of that field and other fields on that line to really increase. Thus forcing lower fields out of view on the screen. The very thing the columns ideally help eliminate.

Anyhow, if there were an option to somehow select a single field to NOT be included in the columns, and instead for that single field to still be able to use the whole horizontal space, that would help optimize space for those of us who have a single large field for whatever reason.

All the Best,
Matthew

PS. Still really enjoying the Arabic Diacritics addon also. Thanks for that one too.

hssm commented

I've just pushed a new version of the add-on that does both of the features requested here.

Please give it a quick test before I put it up on AnkiWeb (grab the raw from here).

@aleksejrs, sorry it took so long, I did say it was a low priority!

@hssm, no problem! I think I've moved the first field down after that (when merging note types with and without a common field, so had to make another field the Sort field), so it was less of a problem.

The horizontal order works as before, but the vertical order… looks like the rows are ordered randomly.

hssm commented

Oops, maybe it is. I only checked if they were different without verifying the order.

hssm commented

Actually, the order is the same as the one in your opening post.

order

Example:

Fields:

  • Q
  • A
  • Freq
  • Src
  • add Reverse
 2, horizontal:
 Q            A
 Freq         Src
 add Reverse

 2, vertical:
 Q            Freq
 add Reverse  A
 Src

 3, horizontal:
 Q    A            Freq
 Src  add Reverse


 3, vertical:
 Q            Src   A
 add Reverse  Freq
hssm commented

Ah, it does that when there's an even number of columns.

No, check my text comment: it happens with 3 columns, too…
Removing all other add-ons doesn't fix it.

Added fields 10, 9, 8, 7, 6, 5, 4.
Moved the fields. First moved 10 to the end, then not sure if any, then 4 to the beginning, then in no order the rest.

verticloz2

If I swap the positions of two fields, the fields' positions in the mce are swapped.

Houssam,

The feature that I was asking for works perfectly. Thanks a ton. I
hope that other users in my situation find it equally helpful.

Best,

Matthew

On Sun, Nov 10, 2013, at 11:21 AM, Houssam Salem wrote:

I've just pushed a new version of the add-on that does both of the
features requested here.

Please give it a quick test before I put it up on AnkiWeb (grab the
[1]raw from here).

[2]@aleksejrs, sorry it took so long, I did say it was a low
priority!

Reply to this email directly or [3]view it on GitHub.
[LgUMP5eOLwrmqB1YiqeZAG2O9t1do9lfL_jCnKjuD2FspYkZGhW8A0D_EdJWzZvz.gif]

References

  1. https://raw.github.com/hssm/anki-addons/master/multi_column_editor.py
  2. https://github.com/aleksejrs
  3. #6 (comment)

mnhende2 commented 6 minutes ago

Houssam, The feature that I was asking for works perfectly. Thanks a ton. I hope that other users in my situation >find it equally helpful. Best, Matthew

Oh, and that's a great feature, it also kind of solves the problem. Thanks to both of you.

No thanks to me. I simply encountered the issue. Houssam is the one
who fixed it. Thanks again Houssam.

On Sun, Nov 10, 2013, at 12:40 PM, aleksejrs wrote:

mnhende2 commented 6 minutes ago

Houssam, The feature that I was asking for works perfectly. Thanks a
ton. I hope that other users in my situation >find it equally
helpful. Best, Matthew

Oh, and that's a great feature, it also kind of solves the problem.
Thank you both.

Reply to this email directly or [1]view it on GitHub.
[LgUMP5eOLwrmqB1YiqeZAG2O9t1do9lfL_jCnKjuD2FspYkZGhW8A0D_EdJWzZvz.gif]

References

  1. #6 (comment)
hssm commented

No problem. Glad you like the add-on!

I'm tempted now to remove the sorting option. I'm not sure how useful it really is.

I'm tempted now to remove the sorting option. I'm not sure how useful it really is.

If you mean the vertical order option, I mostly needed it in the multi-field cloze note type, where fields have an order. But since I moved the different field out in some types, and can make it wide (kind of a separator) in other types, it's solved for such cases.

(also, in the cloze note type, I started ignoring the field order, since it's only the cloze numbers that matter)

hssm commented

In that case I'll get rid of it.

hssm commented

The new version is now up on AnkiWeb.

Thanks. Just downloaded it, rated it, and wrote a review.

On Sun, Nov 10, 2013, at 03:22 PM, Houssam Salem wrote:

The new version is now up on AnkiWeb.

Reply to this email directly or [1]view it on GitHub.
[LgUMP5eOLwrmqB1YiqeZAG2O9t1do9lfL_jCnKjuD2FspYkZGhW8A0D_EdJWzZvz.gif]

References

  1. #6 (comment)
hssm commented

Thanks for the review!