QuickQuestion
QuickQuestion copied to clipboard
Can't get this to work in Alfred
I've tried deleting and reinstalling this multiple times but it never seems to successfully write the question/answer file. I've confirmed that I'm setting the path to my Dropbox Notes folder correctly. Any ideas? The console output doesn't show any errors.
I had the same issue until I noticed that the path to my Dropbox notes folder was missing a slash at the end.
I also had this issue, and noticed the missing slash -- but after fixing that, it still doesn't seem to be working. The files are created, but the "qq" command always comes up empty. Any ideas what I might be doing wrong here?
I guess this has been busted forever. The problem as of today is the QQ_* variables are ignored in the scripts, and they are using a config specific to @ttscoff's Dropbox folder.
I got qq and qa to work by changing the variable section up top to this:
# notes folder, for note creation and limiting searches
NOTESDIR="$QQ_NOTES_DIR"
# extension used for your notes
NOTESEXT="${QQ_NOTES_EXT:-md}"
# the prefix you use to separate "Question" notes
NOTESPRE="${QQ_NOTES_PRE:-??}"
I'd submit a PR, but Alfred workflows are hard to get working with GitHub.
Adding:
That won't handle multiple words. Also set the INPUT variable to INPUT=$(echo {query} | sed 's/\//') because backslashes are sneaking in.
@smarj Is this specifically in the Alfred workflow, or in the main QQ script? I don't see a PR about this at all…
I've tried deleting and reinstalling this multiple times but it never seems to successfully write the question/answer file. I've confirmed that I'm setting the path to my Dropbox Notes folder correctly. Any ideas? The console output doesn't show any errors.
How do I setup a path to store the questions/answers?
@bocciaman in the shell you would use the NOTESDIR variable, but you may have to hardcode it in the script to work with Alfred. Not sure.
@smarj did you manage to get the Alfred workflow to work seamlessly as of Alfred version 5?
@matru I might have. That was a long time ago. It doesn't seem to be working now.