Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search for subtag #7

Open
aPaci95 opened this issue Apr 28, 2017 · 4 comments
Open

Search for subtag #7

aPaci95 opened this issue Apr 28, 2017 · 4 comments

Comments

@aPaci95
Copy link

aPaci95 commented Apr 28, 2017

I can't understand how I can search for subtag. For example, if I've got the subtag anatomy::stomach, and I want to add a new stomach card, I would need to start typing 'anatomy' for the auto-complete to kick in. Is there a way to just be able to type 'stomach'?

@glutanimate
Copy link

glutanimate commented Aug 20, 2017

Hey @aPaci95,

I just wanted to let you know that I've just completed an add-on that should cover your use case. By default it will match arbitrary tag substrings, but you can also configure it to only match hierarchical (sub)tags (see the config section at the top for more information).

The story behind this is actually quite interesting. Another user found your Reddit thread while looking for ways to improve Anki's tag system and ended up commissioning me to write this add-on. So most credit for this goes to them!

In any case, I hope you'll find the add-on useful.

Best,
Glutanimate

PS: If you're still interested in the other features you listed, I'd be more than happy to write an add-on for them as well. The click-and-drag option might be very tricky to implement, or maybe not possible at all, but the other two should be feasible. Just drop me an email at ankiglutanimate [αt] gmail . com if you're interested and we can discuss the details of the commission. (Sorry if this is the wrong place to post this)

@ELLIOTTCABLE
Copy link

Thank you, @glutanimate! That link is broken, though.

I found this 11 days after you posted it, after coming here to copy the following request from an Ankiweb commenter:

For example, if I've got the subtag language::japanese, and I want to add a new japanese card, I would need to start typing 'language' for the auto-complete to kick in, while it would be super handy for me to just be able to type 'japanese'. Anyways, it's just a minor nitpick in an otherwise great addon!

Meanwhile, I'd still love to see this built-in to AHT. <3

@glutanimate
Copy link

Yeah, I recently restructured my add-on repo for 2.1. Here is an updated link.

I don't know how @pneff feels about this, but I'd be happy to submit a PR that integrates this change into Hierarchical Tags.

@ELLIOTTCABLE
Copy link

@glutanimate I'm rather new to Anki, but an old-school programmer — if it's not on Ankiweb, as yours isn't, is there any particular thing I need to do other than adding the file by its lonesome to the add-ons folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants