Open maw opened 2 years ago
I'm aware that this might require seven functions in zetteldeft.org to be rewritten -- not to mention its impact on an unknown amount of third party code that depends on zetteldeft--check
. So, I wouldn't change zetteldeft--check
just yet.
There's probably a good way to keep zetteldeft--check
's behavior, create an unexceptional function that does basically the same thing, and not duplicate much code, but I haven't worked it out yet.
Context: I want to have a menu of personal zetteldeft related functions that changes depending on whether I'm in zetteldeft territory or not.
I created my own version; it's just a rewrite of your version but it returns
nil
if we're outside of deft:Here is how I'm using it: