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
Keyboard shortcut does not work #71
Comments
Confirmed. Some of the Zotero internals must have changed. |
Tnx. Does your finding make it a Zotero or a Zutilo issue? |
Zutilo. There isn't API for Zotero plugins. It just runs in the same context as Zotero's internals and hopes they don't change much. It looks like the new tag method was renamed from |
Okay, this was fixed by 61c7d81. I am attaching a fixed version as a zip file if you want to try it before I can make a release. Rename .zip to .xpi and then install it normally. |
indeed fixed! thank you |
Sorry, same issue returns: Paste Tags (shift+V in my settings) does not function anymore in Zotero 5 |
ps. Paste Tags does work if it's only one item. If multiple items separated by a hard return are copied, none of them get pasted as tags using Paste Tags. This used to work in Zutillo/Zotero4 |
Hmm, sorry, maybe I don't undestand. I just tried using Zutilo's copy tags function on an item with three tags and then using Zutilo's paste tags function on a second item. All three tags were added to the second item. Is that different from the case you are describing? |
That's strange: using Zutilo's copy (Zc) /paste (Zp) function everything is fine. But using copy (ctrl+c) in Word (Wc) - which is my standard procedure - Zp fails (if > 1 item). And, if I do this on >1 item: Zc, than Wp, the items appear in Word. If I use Zp, the items appear in Zotero. But if I subsequently Wc these same items, Zp fails... So they both use the Windows clipboard memory (Zc + Wp is ok), but in a different manner (Wc + Zp is not ok) Does this clarify? |
Yes, that does. Could you start Zotero with the https://www.zotero.org/support/reporting_problems#reporting_startup_errors Best practice would be to select the item you want, clear the console, try to paste, and see if anything new appears in the error console. My guess is that it is having trouble splitting the lists of tags. Windows uses different line endings than macOS/Linux. Zutilo should still split the list for any type of line ending but maybe something changed that affects the splitting. The copy tags function uses the macOS/Linux line ending to separate the items. |
I tried adding the -jsconsole. But system says 'Windows cannot find' followed by path. I used removing "-jsconsole" does run Zotero, so the path is correct |
I think you don't want |
1&2 directly after starting Zotero, 3&4 after trying to paste 3 items Timestamp: 26-09-2017 19:29:16 Timestamp: 26-09-2017 19:29:16 Timestamp: 26-09-2017 19:29:57 Timestamp: 26-09-2017 19:29:57 |
It seems like it is not splitting on the newlines properly and is ending up with empty entries in the list of tags to add. The code is modeled on the code used for handling lists of tags pasted into a tag entry textbox. The Zotero code for that was updated since Zutilo's paste function was updated. I tried adopting those changes in the attached zip (rename to xpi as before) |
I'm sorry, it works worse: 1 item tags as well as >1 item tags do not past anymore into my tag list. Thank you though |
Yeah, sorry, there was a syntax error in that version. I had a chance to test it on a Windows system today and figured out what the issue was. I should be able to fix it soon. |
Here is a new xpi. I think it should fix the problem now. |
Issue seems to be fixed. thank you |
Hello! I seems that "rename attachments" (under shortcuts) doesn't work... maybe another internal has changed there? |
Hmm, it works for me when I have an attachment item selected. If I have a regular item or a comment selected, then I get an error. Is that what you see? I suppose Zutilo could filter out the non-attachment items or at least stop rather than generate an error. |
AH! My keyboard shortcut conflicted with "toggleAllRead". Though weirdly (on OS X) not only shift-cmd R, but also shift-alt-cmd R, shif-alt-ctrl-cmd R all trigger toggleAllRead. But avoiding R altogether made it work. Do you have an explanation for this weird capture of R, or should I post to the forum? |
Zutilo uses the method built-in to Firefox for registering global keyboard shortcuts/commands ( One downside of Zotero using key press handlers is that Zutilo's code to check for conflicting |
Thanks for investigating, that's really helpful! |
In Zutilo in Zotero 4 I dedicated "shift+T" to open a tag, so I can immediately type my tag text in there. After upgrading to Zotero 5 my "shift+T" only jumps to the tag tab. So I still need my mouse for tag entries. That does not work for me since I hate my mouse.
The text was updated successfully, but these errors were encountered: