supermemo / SuperMemoAssistant

A companion app for SuperMemo 17-18 which extends its functionalities through plugins.
https://www.supermemo.wiki/sma/
MIT License
198 stars 21 forks source link

Request: Better way to get recorded audio clips into SM #148

Open Svennerin opened 4 years ago

Svennerin commented 4 years ago

When pasting an image, SM will automatically create an image component. It makes adding screenshots to items a painless process.

I would like some sort of equivalent for audio and sound components.

The utility ShareX can record an audio file and save the URL's filepath to the clipboard. Currently there is no way to take advantage of this or things like it in Supermemo.

https://streamable.com/e80pl

bjsi commented 4 years ago

I think I have an idea for this:

  1. Create a special directory for screenshots / audio files etc that you want in SM.
  2. Create a set of hotkeys in Sharex for importing into SM which save files to that directory.
  3. Have an SMA plugin that uses FileSystemWatcher to watch the directory for new files.
  4. When the 'new file added to directory' event fires, open a window in SM with some options so you can decide what to do with it, eg. create new extract containing this file, or add to existing element etc.
bjsi commented 4 years ago

Tested this with a simple prototype. I was able to get it working, though not on the latest version of SMA. I'll continue to work on this some more.