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

Disable cards on a page #247

Closed
thomask-gh opened this issue Jan 9, 2024 · 3 comments
Closed

Disable cards on a page #247

thomask-gh opened this issue Jan 9, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@thomask-gh
Copy link

Hi and firstly thanks a lot for the amazing work that you do with this plugin, it’s helped me a lot!

Describe the solution you'd like
I have a page in logseq in which I have a bunch of cards that I don’t really care about anymore, but I still want to keep the page in logseq, and I don’t want to have to go through the hassle of removing every single #card or :-> from this page. I would like to be able to specify something like deck:: none or deck: null or cards:: disabled in the page or block properties, that cause all the children cards to stop being synced to anki.

Describe how it will help your workflow
It would mean that I can delete the cards from anki, keep them in logseq and they won’t be brought back to anki every time I sync.

Describe alternatives you've considered
Manually deleting every single #card or :-> from the page. But 1) it’s annoying 2) I might need to bring them back in the future, so it will be even more annoying to re-add the cards markers…

@thomask-gh thomask-gh added the enhancement New feature or request label Jan 9, 2024
@debanjandhar12 debanjandhar12 self-assigned this Feb 11, 2024
@jaker-dotcom
Copy link

I think this has been solved by now? At least there is a property "disable-anki-sync:: true" which works on blocks but I never tested on pages.
Workaround: If it's the entire page you could just search and replace within the file. To open in external program hit ctrl+d -> ctrl-a or ctrl+d -> ctrl+i to open file browser.

E.g. using vim it's a matter of seconds to replace all occurences of "#card" with "#card" and "->" with "-.>". I like to keep placeholders so that I can reactivate them easily.

@thomask-gh
Copy link
Author

I have tried disable-anki-sync:: true on a page and it indeed works, so this issue is solved, thanks a lot!

@jaker-dotcom
Copy link

Happy to help :)

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

No branches or pull requests

3 participants