jasonwilliams / anki

Anki VSCode Plugin
MIT License
278 stars 32 forks source link

Send to DirName just creates a deck called 'deck/subdeck' #80

Closed raffraffraff closed 2 years ago

raffraffraff commented 2 years ago

My directory tree is:

anki-decks/
└── python
    └── argparse
        └── note.md

If I cd to anki-decks, type code ., open the note and use the command 'Anki: Send to DirName deck', it just creates a new deck called 'python/argparse'. It does not create a subdeck.

Edit: I can rename the deck in Anki, replacing the / with :: and it fixes the nesting. But the feature doesn't work as documented.

OS/Software versions

OpenSUSE Tumbleweed, (KDE/Plasma) Anki Desktop: ⁨2.1.54, Qt6 Vs Code: 1.69

jasonwilliams commented 2 years ago

CC @duguosheng

duguosheng commented 2 years ago

I only tested this command on Windows that file path separated by \(return value of relative), this bug will be fixed soon.

raffraffraff commented 2 years ago

The linked PR was merged almost a month ago. When / how do new versions of the plugin get released? Since this issue appears to break DirName on all non-Windows system, I think this deserves a bug fix release.

jasonwilliams commented 2 years ago

@raffraffraff i will try to release this week, if there isn’t a release feel free to remind me

jasonwilliams commented 2 years ago

1.2.7 has been released