QuickQuestion icon indicating copy to clipboard operation
QuickQuestion copied to clipboard

Can't get this to work in Alfred

Open neilio opened this issue 10 years ago • 8 comments
trafficstars

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.

neilio avatar May 14 '15 16:05 neilio

I had the same issue until I noticed that the path to my Dropbox notes folder was missing a slash at the end.

dericco avatar Apr 03 '16 14:04 dericco

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?

marlowe310 avatar Aug 30 '16 05:08 marlowe310

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 avatar Oct 07 '21 16:10 smarj

@smarj Is this specifically in the Alfred workflow, or in the main QQ script? I don't see a PR about this at all…

ttscoff avatar Oct 08 '21 15:10 ttscoff

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 avatar Apr 29 '23 14:04 bocciaman

@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.

ttscoff avatar May 01 '23 15:05 ttscoff

@smarj did you manage to get the Alfred workflow to work seamlessly as of Alfred version 5?

matru avatar Jul 29 '24 14:07 matru

@matru I might have. That was a long time ago. It doesn't seem to be working now.

smarj avatar Jul 29 '24 15:07 smarj