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

Multiple features added #444

Draft
wants to merge 20 commits into
base: develop
Choose a base branch
from
Draft

Conversation

cpt-n3m0
Copy link

@cpt-n3m0 cpt-n3m0 commented Sep 17, 2023

I've added the following features. My Obsidian plugin API knowledge is still limited so some of these may need to have their own settings entries but I've just implemented them as the default behaviour for the case of the link, everything else is backwards compatible and doesn't break the current way of doing things.

The features are as follows:

  • frontmatter support (takes priority over the comment tags):

    • Instead of processing every file in the vault (which created a lot of false cards and littered some template files with card IDs) I added a boolean ankifiable frontmatter entry. only ankifiable files (with ankifiable: True) are scanned for cards.
    • deck: deck name
    • tags: file tags which are also passed on to obsidian. this may break inherited folder tags
  • IDs double as Obsidian block ids.

    • new IDs are in the format (^ID\d+) Regex is modified to handle this new ID format as well as the old ones (minor draw back is that it looks weird with the comment wrapping is on (<--^ID\d+-->) so may need some setting magic or completely replace the comment option
    • this new format enables direct linking to the cards from other notes (e.g. I have a note to handle flagged cards which is populated exclusively by embedded card block links which makes it very convenient to go and directly edit the cards in question without having to scroll endlessly to look for them)
  • To take full advantage of the previous feature, modified the default link to use the advanced-uri plugin link format so that cards are directly accessible from Anki.

    • One caveat with this is the the vault needs to be scanned twice (first is for the cards to be added and ids generated, then on the second one the ids are added to the links in the card), for me this is a simple case of pressing Alt+A twice, and in any case the default behaviour of linking only to the page still works as previously

@shoudeyunkaijianyueming

Can you release a obsidian plug-in style, easy to install from brat, big guy @cpt-n3m0

@shoudeyunkaijianyueming

See your magic obsidian to anki plugin feeling very wow, relatively speaking, your magic version of the feature is currently very perfect, but obsidian to anki is obsidian to anki, and anki through the advanced url back link this is very good, However, if you can link through the noteid of anki card, it is better. There is a plug-in called power search, which creates a link to facilitate obsidian to go directly to a certain card, but it has two disadvantages: (1) Developers stop or pause development. (2) Search by lines, which will make the results endless. Instead, I think you should search by a word that you mouse over, so that the results are exhausted. Look at your plug-in think you are definitely enough development ability, and I do not programming, I beg the big boss you can change the magic magic change, its code is far less than obsidian to anki, and it is obsidian can accurately reach anki the only plug-in, thank you
https://github.com/aviral-batra/obsidian-power-search @cpt-n3m0

@ShootingKing-AM
Copy link
Member

Can you rebase your PR and update the Readme.MD with some description ?

@ShootingKing-AM ShootingKing-AM marked this pull request as draft January 19, 2024 07:32
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

Successfully merging this pull request may close these issues.

None yet

5 participants