Coder Social home page Coder Social logo

debanjandhar12 / obsidian-anki-sync Goto Github PK

View Code? Open in Web Editor NEW
140.0 140.0 11.0 940 KB

Obsidian plugin to make flashcards and sync them to Anki

License: GNU General Public License v3.0

JavaScript 1.40% TypeScript 93.42% HTML 5.18%
anki flashcards obsidian obsidian-md obsidian-plugin

obsidian-anki-sync's Introduction

Hey, I'm Debanjan!

A little more about me...

const deban : Programmer = {
    code: ["TypeScript", "Javascript", "Java", "Python"],
    likes: ["PKMs", "Competitive Programming", "Tech", "Anime", "Oh, did i say Programming?"],
    technologies: ["NodeJS", "React.js", "Vue.js", "SQL"]
};

obsidian-anki-sync's People

Contributors

debanjandhar12 avatar zinc0x1e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

obsidian-anki-sync's Issues

New plugin name requirements

Hi @debanjandhar12

Per our developer policies,
please ensure that your plugin's name does not include the word "Obsidian".
In addition, the plugin name should not include the word "Plugin", as that is unecessary duplication.
We have already modified the name of your plugin to "Anki Sync" in our records.

To maintain compliance, take the following actions:

  1. Modify the manifest.json file in your plugin repository.
  2. Generate a new release for your plugin to ensure users download the updated manifest.

If you have a idea for a different plugin name, you may also submit a pull request to the obsidianmd/obsidian-releases repository.

Thank you for your cooperation.
— the Obsidian team

Failing to Sync

Screenshot 2023-06-17 at 2 03 14 PM

Any advice on how to fix this? I updated to the newest versions of Obsidian and Anki...not sure if that's creating the issue.

Feature Request

Could you please implement this feature: use the obsidian's native hilight syntax to make the cloze?

<!-- clozeblock-start -->
This is the ==use case==, in this way, users can be ==less== distracted
<!-- clozeblock-end -->

Make it the same semantics as

<!-- clozeblock-start -->
This is the {{c1::use case}}, in this way, users can be {{c2::less}} distracted
<!-- clozeblock-end -->

Advantage:

  • Less type to make the cloze
  • Less distracted in preview mode

Disadvantage

  • Less control on whether some cloze should appear at the same time
  • More development effort

Thanks for this great plugin, Look forward to your reply :)

[bug]replaceblock cloze -->

text

<!-- replaceblock-start oid="Obso8xuIun25izJyneCfb2wb" -->
<!-- replace id="1" text="-->" -->

graph LR
A --> B

<!-- replaceblock-end -->

bug log

Updated note with oId Obso8xuIun25izJyneCfb2wb and ankiId 1633084617396
(unknown) TypeError: Cannot read property 'getAttribute' of null
    at getAttribInCommentLine (eval at <anonymous> (app.js:1), <anonymous>:2622:41)
    at eval (eval at <anonymous> (app.js:1), <anonymous>:10091:29)
    at Array.forEach (<anonymous>)
    at ReplaceBlock.toAnkiHTML (eval at <anonymous> (app.js:1), <anonymous>:10089:17)
    at ReplaceBlock.updateInAnki (eval at <anonymous> (app.js:1), <anonymous>:10062:25)
    at ObsidianAnkiSyncPlugin.syncObsidianToAnki (eval at <anonymous> (app.js:1), <anonymous>:10413:29)
eval

Can it be improved to support it?

thank you.

Error: 'NoneType' object has no attribute 'write'

image

I had installed obsidian_to_anki, flashicard and this plugin but had the same problem.
I think I installed Ankiconnect in the right way. Is it possible that there might be some port occupancy issues on my computer?
looking forward to your help~

Put picture(s) in "Extra" column

Hi, is there any way to put the picture directly to the "Extra" column in Anki?
Currently it is under the "Text" column.
If I change it in Anki, it'll switch back to the "Text" column when I resynch.
I only need the picture on the Back of the card for review purposes.

image

image

I want it like this
image

The uploaded image directory is not located in the correct path

![](Wtf_SH,graph流程图箭头.jpg)

correct path:
C:\JGY\Obsidian\md\P\mermaid给你的文档加层滤镜\Wtf_SH,graph流程图箭头.jpg.jpg

bug log
image

It was normal before, but error after update.

other problems
Images in ANki are not updated after OB images are updated

Can I use "Basic" note type of Anki?

Hi,

I think this is the most useful plug-in I have ever used.

I have a question: Can I use the "basic" note type in Anki instead of just the "cloze" one?

I don't need the whole page contents of obsidian. I just need its link to review in Anki.

I am using the following template:

basicblock-start deck='🟥Obsidian_🟧Lang'-->

basicblock-end-->

However, I don't know how to modify this to achieve the result I want.

Could you please help me?

Thank you!

Trouble with pasted / locally stored images

When adding pasted images or dragging images into my flashcards in obsidian they do not get rendered correctly in Anki?

I use this structure for my flashcards on a per file basis:

---
Deck: DeckName
---
<!-- basicblock-start-->
Question
::
Text + ![[Pasted Graphic]]
<!-- basicblock-end -->

When displaying the file in Anki it looks like this:

image

Not sure why this happens but I cannot get it to work unfortunately. Hope this issue can be solved 👍
Nice plugin btw!

Any possibility to add clozeblock without the comment <!-- -->?

I used to use another plugin where we can add without a comment.

For example, I want to add a cloze note without <!-- clozeblock-start --> and <!-- clozeblock-end -->, instead of the original way:

<!-- clozeblock-start -->
The capital of Japan is ==Tokyo==
<!-- clozeblock-end -->

Is there any possibility for this feature?

Any way to show Linked Notes?

I have individual notes (files) for different concepts (ex: fallacies) that I would like to re-use as the back side of an Anki card but when I use the Embed syntax (Ex: ![[Genetic Fallacy]]) it doesn't show the linked document on the Anki Card and only shows the Embed info (Ex: ![[Genetic Fallacy]]) as the back of the card.

---
deck: Fallacies
tags: ObsidianAnkiSync
vault: Personal
ObsidianAnkiSyncModel: oid
---
<!-- basicblock-start oid="ObsNZWZn2PWfXaead1cNX2uC" -->
What is formula for sin theta?::
$$\frac{Opposite}{Hypotenuse}$$
![Triangle](https://i.pinimg.com/originals/0d/79/3a/0d793a88f6c69aa8efd54a1012722c12.gif)
<!-- basicblock-end -->

<!-- basicblock-start oid="ObsVwDxjn3ToC3htRgyrb2iz" -->
Genetic Fallacy?::
![[Genetic Fallacy]]

<!-- basicblock-end -->

Support to local images?

Hi,

I'm trying to embed local images from my vault using markdown syntax but it doesn't seem to work. Is this feature not implemented or am I doing something wrong?

Thanks

Images Not Displaying Correctly: Unable to Sync with Anki's Media Folder

Obsidian Current version: v1.6.3
Obsidian-Anki-Sync Version: 1.0.0
Anki Version ⁨23.12.1 (1a1d4d54)
Anki Python 3.9.15 Qt 6.5.3 PyQt 6.5.3

My Obsidian settings are: Obsidian Settings → Files and links → Use [[Wikilinks]] & New link format: Shortest path when possible option.

337941772-913ec2f5-abf2-4d2e-a653-e0084612617c

So the format of the image link is:

Obsidian Image

image

It seems that the plugin recognizes <img>, but does not transfer the image in Obsidian to Anki's collection.media folder.

src= 9b3394b3d474fee53321320477be4d10_MD5 png

After testing, Anki works fine as long as the images from Obsidian are placed in the collection.media folder.

request: special mark to restrict sync

I use templates for keep blank anki card with different types of card.

The problem is that all my template cards are also sync and it create a trash deck with garbage cards.

Therefore, every time I need to use card template, i have to clean OID from card before i can use it.

Could you do somesing with that?

No synchronization possible

Hey.

After I clicked on the "Hello" button, an error message appeared (see attachment) and nothing happened.
I hope you can help me.
Thanks

Screenshot 2024-01-23 225449

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.