profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/l3kn/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Leon l3kn Siegen, Germany leonrische.me Information Professional

l3kn/org-fc 140

Spaced Repetition System for Emacs org-mode

l3kn/org-zettelkasten 82

An opinionated setup for managing large collections of interlinked org files.

l3kn/raytracer 46

CPU Raytracer written in the crystal language

l3kn/lisp-compiler-llvm 14

A Self-Hosting LISP to LLVM-IR Compiler

l3kn/org-el-cache 10

Persistent cache for data derived from org-elements

l3kn/iso_snowflakes 9

Isometric Snowflake Generator

l3kn/EulerLisp 6

Lisp compiler & bytecode VM

l3kn/generative_cfg 3

Generative Art with Context-Free Grammars

issue commentl3kn/org-fc

Error when attempting to review cards: "org-fc-index: Symbol’s function definition is void: org-fc-awk-index"

Can you do a C-h f (describe-function) and check if any of the org-fc-awk-... functions show up?

MattHood

comment created time in 24 days

issue commentl3kn/org-fc

Font size during review

Don't worry about not having read the code, that shoudn't be neccessary for a feature like this (that's what the hook system is for).

Looks like I wrote a bit of documentation for it at https://www.leonrische.me/fc/customizing_org-fc.html but it doesn't really show how to use the hooks.

Let me know if you come up with an implementation, then I can add it to the page as an example.

lcabrini

comment created time in 2 months

issue commentl3kn/org-fc

Keybinding to repeat audio

I think we can come up with an implementation that doesn't rely on custom card types and instead adds replay functionality to all kinds of cards that use org-fc-audio.

org-fc-audio-play or org-fc-audio-play-file could store the property / file that was most recently played and there could be replay functions that play this property / file again (potentially at a slower speed).

Are you fine with using mpv as a audio player or should we look into supporting different players aswell?

lcabrini

comment created time in 2 months

issue commentl3kn/org-fc

"Hidden" fields

I just checked and due to how org-fc sets up cards for review, all child headings (not just the "Back") heading will be hidden.

The org manual describes drawers as a way to have information associated with a entry but not always shown, so their use isn't limited to metadata.

As long as you use a consistent format, you can just start with whatever seems like the best solution for now, then automatically change your cards later, e.g. in combination with a custom card type that doesn't hide the "Story" child heading.

lcabrini

comment created time in 2 months

issue commentl3kn/org-fc

Font size during review

org-fc has two hooks that are run before and after the review session, org-fc-before-review-hook and org-fc-after-review-hook.

In the before-review-hook, you could save the old font size and set a new larger one, then use the after-review-hook to reset it.

lcabrini

comment created time in 2 months

issue commentl3kn/org-fc

"Hidden" fields

There are two ways I can think of:

If you have a card with a "Back" heading, any additional heading will be displayed but not expanded after flipping the card, so after reviewing a kanji, you read the "story" by expanding that heading:

* Word 1                                                                 :fc:
Foo
** Back
Bar
** Story
Baz

By default any drawers inside a flashcards will be hidden. If you add the name of the drawer to the org-fc-drawer-whitelist, it will only be collapsed and you could expand it to view the "story":

* Word 2                                                                 :fc:
Foo
** Back
Bar

:STORY:
Baz
:END:
lcabrini

comment created time in 2 months

issue commentl3kn/org-fc

Keybinding to repeat audio

I'm using the vocab card type for learning languages and it has two functions to replay the audio at normal & slower speed:

(defun org-fc-type-vocab-play ()
  "Play vocab audio file at normal speed."
  (interactive)
  (org-fc-audio-play org-fc-type-vocab-audio-property))

(defun org-fc-type-vocab-play-slow ()
  "Play vocab audio file at slow speed."
  (interactive)
  (org-fc-audio-play org-fc-type-vocab-audio-property org-fc-type-vocab-slow-speed))

I've bound these to "r" and "R" in my org-fc key bindings. Depending on which card type you're using, similar functions & key bindings could be added for that type.

A general "replay audio" function would be even better, but that would have to track which audio file was the last one played (and correctly reset it after the card was reviewed). org-fc already has a few hooks that are used by org-fc-audio, a new org-fc-after-rating-hook would be ideal for this kind of reset.

At the moment I don't have the time to implement it myself but if you'd like to give it a try, I'd be happy to help.

lcabrini

comment created time in 2 months

push eventl3kn/org-fc

Denis Smirnov

commit sha f6a0c5de9331e3a3b92ca806d9c301d5a7891b8d

Add require to subr-x for if-let macro (fixed compiling without preloaded subr-x)

view details

Leon

commit sha 64e238c40ee166f49f6d79b271b25b902e1f0f1d

Merge pull request #63 from mithraen/main Add require to subr-x for if-let macro (fixed compiling without preloaded subr-x)

view details

push time in 2 months