Obsidian_to_Anki icon indicating copy to clipboard operation
Obsidian_to_Anki copied to clipboard

[Suggestion] Possible improvement to "Add File Link" function

Open envico801 opened this issue 11 months ago • 5 comments

Discussed in https://github.com/ObsidianToAnki/Obsidian_to_Anki/discussions/555

Originally posted by dragonlau0924 March 22, 2024 Hello developer, thank you very much for sharing the Anki plugin. I have some suggestions. Could you please display the link passed into Anki in the "Add File Link" as a file name instead of "Obsidian"? This would make it easier for me to know which note I have reviewed, which would be more practical.


It could be useful for some people.

I left a possible solution in #557.

envico801 avatar Mar 22 '24 16:03 envico801

+1, I would also like to see the flashcard link to the block of the created card in the markdown file since I typically put all of my anki cards in the same file. I think the Flashcards plugin has this feature

smaroukis avatar Apr 16 '24 19:04 smaroukis

+1, I would also like to see the flashcard link to the block of the created card in the markdown file since I typically put all of my anki cards in the same file. I think the Flashcards plugin has this feature

It is an interesting approach, in the pull request I created only the name of the link changes. A better solution would be the one you mention, but I can't think of a way to place you in the question that generated the card, as if it were a link.

I know markdown is capable of using the # headers to redirect the cursor to that specific position, but if the question doesn't use them, I don't know what to use to move the cursor to that position. I had thought of using the ID generated by the question but I don't know how feasible it is.

envico801 avatar Apr 16 '24 20:04 envico801

I think the Flashcard plugins uses block references to do this, as there's a caret (^) in the note ID that is inserted into the .md file.

On Tue, Apr 16, 2024 at 4:40 PM Enzo Davico @.***> wrote:

+1, I would also like to see the flashcard link to the block of the created card in the markdown file since I typically put all of my anki cards in the same file. I think the Flashcards plugin has this feature

It is an interesting approach, in the pull request I created only the name of the link changes. A better solution would be the one you mention, but I can't think of a way to place you in the question that generated the card, as if it were a link.

I know markdown is capable of using the # headers to redirect the cursor to that specific position, but if the question doesn't use them, I don't know what to use to move the cursor to that position. I had thought of using the ID generated by the question but I don't know how feasible it is.

— Reply to this email directly, view it on GitHub https://github.com/ObsidianToAnki/Obsidian_to_Anki/issues/556#issuecomment-2059886986, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIBNWDGMFUTHZTD5GGZMH3Y5WECLAVCNFSM6AAAAABFDS5ADCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZHA4DMOJYGY . You are receiving this because you commented.Message ID: @.***>

smaroukis avatar Apr 18 '24 13:04 smaroukis

Sounds interesting, I don't think I can implement that, or at least not in this version of the plugin, maybe one of the repository maintainers knows more about it.

Maybe I can implement it in the custom version of the plugin I'm using. Sounds like a very useful idea

envico801 avatar Apr 18 '24 20:04 envico801

I think the Flashcard plugins uses block references to do this, as there's a caret (^) in the note ID that is inserted into the .md file. 我认为抽认卡插件使用块引用来做到这一点,因为有 插入到 .md 文件中的注释 ID 中的插入符号 (^)。 On Tue, Apr 16, 2024 at 4:40 PM Enzo Davico @.> wrote: +1, I would also like to see the flashcard link to the block of the created card in the markdown file since I typically put all of my anki cards in the same file. I think the Flashcards plugin has this feature It is an interesting approach, in the pull request I created only the name of the link changes. A better solution would be the one you mention, but I can't think of a way to place you in the question that generated the card, as if it were a link. I know markdown is capable of using the # headers to redirect the cursor to that specific position, but if the question doesn't use them, I don't know what to use to move the cursor to that position. I had thought of using the ID generated by the question but I don't know how feasible it is. — Reply to this email directly, view it on GitHub <#556 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIBNWDGMFUTHZTD5GGZMH3Y5WECLAVCNFSM6AAAAABFDS5ADCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJZHA4DMOJYGY . You are receiving this because you commented.Message ID: @.> My modified version of the plugin accomplishes this. You can check it out by clicking here. I just don't know how to merge it to the main project.

norcx avatar May 22 '24 10:05 norcx