Open wshanks opened 1 year ago
I haven't looked into the Zotero 7 update either. I can try to help with the transition, but I'm not sure how much I'll be able to do. Let's see if there's a good way to collaborate.
There are also a few minor (old) commits which I could still add to the Zotero 6 branch of Zutilo. I'll try to create related PRs this weekend.
Just to say that it would be great to have it compatible with v7
Will it be compatible with zotero v7? Zotero 7 beta was released.
I made an attempt at following the plugin transition guide for Zotero 7 in the zotero7 branch. The current status is that it is possible to install the xpi file. However, some of the Zutilo code uses deprecated API's, so besides seeing Zutilo show up in the preferences pane and the Addons Manager all it does is produce errors right now. Definitely do not install it in a profile you care about because it currently makes the Tools menu unusable which then makes it difficult to open the Addons Manager and remove it.
In the best case scenario, there are just some deprecated function calls that be easily migrated to new functions. It is possible though that Zutilo could rely on something that does not have an easy replacement and more work is needed to update it. The next step is to run Zutilo, check the error console, address the error, and repeat until it gets to a usable state or a bigger issue is discovered. I can't make any guarantees about a timeline for getting Zutilo to work with Zotero 7. Others are welcome to try doing more work on the update if they want to.
I played with it some more. I fixed the mangling of the Tools menu, so now it is safer to test because you can access the menu to remove it.
I also updated some other deprecated function usage. Now, the default item menu items (copy tags, paste tags, copy item, relate items) are all working. The preferences pane is not working. The next thing to do is get the preference pane working so that the other menu items / shortcuts can be tested.
Thanks for your hard working.
There was some interesting discussion regarding issues with Zotero7 transition on BetterBibtex repository, migh be useful; Is there any beta release to try and test?
There was some interesting discussion regarding issues with Zotero7 transition on BetterBibtex repository, migh be useful; Is there any beta release to try and test?
No, I made one push of working on it back in June, but I have not come back to it so far. There is a zotero7
branch in the repo that has my latest attempts, but it is not working. I had asked some questions on the zotero-dev mailing list and got some replies, but I hadn't used those replies to get further so far.
Thanks for your hard working.
Thanks for your attempts at the update. As increasing numbers of developers are refusing to work on their addons for zotero 6 because it's near the end of its life, I am beginning to hold hope that those addons I consider core to Zotero usability will be ported to Z7, and a m particularly hopeful Zutilo will make the list.
I certainly appreciate all your hard work on this and also how much more difficult it will be to fix, given that the framework is now very much more restricted. To take the pressure off a little (and I hope this does not come across as unappreciative of your efforts), I have found a workaround for the most important function that Zutilo provided for me: copy item link. This functionality is now also provided by https://github.com/windingwind/zotero-actions-tags and is compatible with Zotero 7. It is a bit finicky to work with the provided Javascript action scripts, and some will be uncomfortable with allowing 3rd party Javascript to interact directly with their machine. But it does work. Thanks again for all your hard work.
hi @topps if you need just (markdown) link, you can try use a markdown zotero translator as a workaround https://github.com/silentdot/zotero-markdown-translator/tree/main
Has there been any progress on this? I'm looking at switching to zotero for reading papers and being able to use proper keyboard navigation would be a huge plus
Zotero 7 has been released. @wshanks: Can I help with upgrading somehow?
Yeah, I tried installing on Z7, but it seems to be disappearing on Z7 restart.
Yes, plugins don't work for z7 by default but need to be explicitly upgraded....
Naturally, I have used the 'addon' content from the 7 branch as advised. The plugin loads OK but then does not reload on Zotero restart.
Thanks for your continued development work. As a heavy user of Zotero, I am eager to have a Z7 compatible Zutilo as soon as possible. (At least in the meantime I can still use Zutilo in Z6)
@bjohas Yes, any help would be appreciated. On the zotero7
branch, I have done enough to get the plugin to load and have some functionality. It is able to add items to the item context menu and some of them work at least. I haven't tested all items, but I noticed at least paste tags did not work because it could not read from the clipboard but copy tags did work. The preferences window/pane is currently not accessible. It would be nice to fix that to make testing and using the plugin easier (but one can edit the preferences directly in the Firefox config editor). In a quick test, keyboard shortcuts did not seem to work but I haven't looked at them much yet (it would be nice to get the preferences UI working first).
https://github.com/windingwind/zotero-plugin-template Using this framework makes development easier?
I don't think that template helps because Zutilo is already written. https://www.zotero.org/support/dev/zotero_7_for_developers has a good guide for updating a plugin from Zotero 6 to Zotero 7. It just takes time to work through the changes.
I just pushed a change that gets the item menu preferences to appear in the Zutilo pane of the preferences window. It doesn't look great but it is functional and should make it easy to test which functions work. The main remaining steps to take for the Zotero 7 update are:
@wshanks - I'll have a look. It won't be fast, but with some colleagues we'll do some testing and see what we can fix.
Thanks, @dcrizz! I used your paste code in d89ad53. I didn't use the copy code since copy was already working. I am not sure if it is safe to rely on Zotero.Utilities.Internal
though -- maybe we need to copy the code into Zutilo.
@bjohas Thanks -- if you want, you can post any progress as PRs like another user did in #270. I will keep chipping away at things as well and pushing to the zotero7
branch.
I made some more changes to the zotero7
branch. Now all of the context menu items work like they did with Zotero 6. There is one issue I am trying to fix still -- some of the strings in the preferences pane always show in English instead of the translation when it is available.
I might make a new release with this functionality for Zotero 7. I haven't looked much at the keyboard shortcuts yet. They might require more work to update. The shortcut code is based on the old KeyConfig Firefox addon. I have used that in other contexts and had to switch to something else in higher versions of Firefox like Zotero is using now.
I would like to mention that there is a pb with zotero 7 branch (besides the fact shortcuts simply doesnt work, isn't it?): when I open a pdf in the pdf reader, i cannot select and copy text within the pdf using ctrl+C shortcut. It still works if the pdf is opened in a separate window (and not tab). It is very boring. If you change it you're my (wo)man! thks
@TommyJazz93 So Zutilo is interfering with pdf shortcuts in Zotero 7? Strange -- something to look into more while working on the Zotero 7 updates.
Thanks, @Dcrizz! I used your paste code in d89ad53. I didn't use the copy code since copy was already working. I am not sure if it is safe to rely on
Zotero.Utilities.Internal
though -- maybe we need to copy the code into Zutilo.@bjohas Thanks -- if you want, you can post any progress as PRs like another user did in #270. I will keep chipping away at things as well and pushing to the
zotero7
branch.
Sorry for the late reply!! No worries, to be honest, I don't know what I am doing really, I just messed around with it the original action tag a bit and got GPT to correct any errors I made!! I am not actually very competent at this stuff!!
Hi, zutilo is indispensable to me :) As it is not - for the moment - compatible with Zotero 7, I've kept version 6.0.36 "under wraps" to continue using it. But this morning the same incompatibility message appeared with 6.0.36, and indeed it doesn't work any more? No doubt linked to the future version for Zotero 7.x? Good luck to the developers for their excelent work...
I deleted the extension and reinstalled it with Zotero 6.0.36..and zutilo works (fine..) again...
I use Zutilo for tag management all the time and It would be great if a version working on Zotero 7 becomes avalaible. Thanks for all the good work.
Best,
Glenn
Hi @wshanks - thanks for Zutilo! If I were you, I'd release a version as it stands, since the following menu items seem to work:
Unsure about the following / might not be working:
Zutilo: showing path of attachment 1 of 2 / storage:index.html
. Is this the intended function? I'm using webdav storage.Zutilo: item selection error
Not tested
I would suggest that you rename the plugin from "Zutilo Utility for Zotero" to simply "Zutilo" in the manifest.json
, because I'm getting an overflow in preferences:
While I wait for the 7.0 compatible version of zutilo... is there a way to get a zotero://select link from a zotero document in any other way? I'm pretty desperate
@AshtoBashto I'm not sure where I found mention of this plugin but this does the trick for me while waiting for a compatible Zutilo release: https://github.com/windingwind/zotero-actions-tags#readme
I just tested QuickCopy items to clipboard (alt 1 and 2) with the current 7er branch. It works fine. If you dont want to wait for release: dowload a zip of the contents of the addon directory of the zotero7 branch, rename as .xpi & install
Link goes to a 3rd party tool that provides downloads of github repo directories as this is not provided by github Instructions based on : https://github.com/wshanks/Zutilo/blob/zotero7/docs/DEVELOPERS.md
EDIT( to avoid notification nosie): I don't deserve to be mentioned in one line with wshanks in the comment below (see commit history)
I just tested QuickCopy items to clipboard (alt 1 and 2) with the current 7er branch. It works fine. If you dont want to wait for release: dowload a zip of the contents of the addon directory of the zotero7 branch, rename as .xpi & install
Link goes to a 3rd party tool that provides downloads of github repo directories as this is not provided by github Instructions based on : https://github.com/wshanks/Zutilo/blob/zotero7/docs/DEVELOPERS.md
Really pleased to find this - thank you. The loss of Zutilo has been the one thing making me sad since the Z7 update, so thanks @wshanks, @qqobb, @jan-glx, and others in this thread who've been working on it. Greatly appreciated.
Interesting @jan-glx. Do you know a way to assign shortcut to, for example, quick copy item link? Currently the Shortcuts section seems to be empty and/or unresponsive...
also... it's been mentioned that
...when I open a pdf in the pdf reader, i cannot select and copy text within the pdf using ctrl+C shortcut. It still works if the pdf is opened in a separate window (and not tab)...
...interfering with pdf shortcuts in Zotero 7...
@wshanks @TommyJazz93 Are these issues still present with the link shared by @jan-glx ?
Because after installing it I don't seem to have any issues with ctrl+c in the pdf reader.
@wshanks any news on:
I haven't looked much at the keyboard shortcuts yet. They might require more work to update. The shortcut code is based on the old KeyConfig Firefox addon
? 😊
I hadn't noticed or read about that copy issue – but it's awesome! It’s a feature, not a bug! Now, you can copy the citekey directly when viewing the paper in a built-in viewer tab, without needing to switch back to the list or manually copy it from the item pane 🚀.
Right-click -> Copy still works if you need it, and you can set another shortcut so that Zutilo doesn't override Ctrl+C.
I had set the shortcuts with the previous version, so I didn’t notice the glitch in the GUI. However, you can go to Zotero -> Edit -> Settings -> Advanced -> Config Editor to set your shortcuts.
The export=
-ids can be discovered from extensions.zotero.export.quickCopy.setting, as explained elsewhere.
From the Zotero developer documentation:
I haven't tried to scope out how much work this requires. Luckily Zutilo is already a bootstrap extension so some of the transition steps have already been done. @qqobb do you have any interest in working on this? Since there has not been much activity in the repo recently, I think it would be simplest just to do a clean transition and not try to support 6 and 7 in the same branch.