-
Notifications
You must be signed in to change notification settings - Fork 5
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
Run on particular note or tag #8
Comments
That would be pretty easy to limit the script to a given note if the user provides the note's UUID yes. For the tags I guess you mean restrict the script to operate on notes that include a given tag? |
Yes, that’s what I meant. I’d find that useful for certain tags, at least. Thanks for considering it! |
I'll add these two options very soon as it will only take a few lines of code :). |
I've updated the code in the notes-whitelist branch so we can try it out. Here is how it can be used. If you want to try it out, you'll have to switch to the test branch in your local copy of this repository (the install script will always install the master branch): # depending on where you installed it, this should be the default:
cd ~/.github/bear/back-references
git fetch
git checkout -t remotes/origin/notes-whitelist Then you can run the python script directly using the options I mentioned in the README, for example: BEAR_NOTES_WHITELIST=some-note-ID,some-other-note-ID \
BEAR_TAGS_WHITELIST="tag1#tag two" \
BEAR_INCLUDE_SUBTAGS=true \
python insert_backreferences.py Let me know if you have problems with this (it's very likely that the UUID filtering will work, not so certain about the tag selection). Once again, I recommend to run this in test mode first, just in case. |
@mjknght I haven't been working on this project for a while, did you have the opportunity to test this feature? |
Hi @cglacet – apologies for a late reply. I haven't had much luck with this I'm afraid. I have just tried again and still have the following when attempting to switch to the test branch and test things out:
I'm not the most confident with such things, so it may be that I am making a simple mistake – any ideas? Thanks in advance. |
This is great! A feature request for the particular: would it be possible to run the script just for a particular note or a particular tag? This comes to mind when thinking about how that might work.
The text was updated successfully, but these errors were encountered: