Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get this to work in Alfred #13

Open
neilio opened this issue May 14, 2015 · 8 comments
Open

Can't get this to work in Alfred #13

neilio opened this issue May 14, 2015 · 8 comments

Comments

@neilio
Copy link

neilio commented May 14, 2015

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.

@dericco
Copy link

dericco commented Apr 3, 2016

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

@marlowe310
Copy link

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?

@smarj
Copy link

smarj commented Oct 7, 2021

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.

@ttscoff
Copy link
Owner

ttscoff commented Oct 8, 2021

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

@bocciaman
Copy link

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?

@ttscoff
Copy link
Owner

ttscoff commented May 1, 2023

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

@matru
Copy link

matru commented Jul 29, 2024

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

@smarj
Copy link

smarj commented Jul 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants