Giter Site home page Giter Site logo

zotero-attanger's Introduction

Attanger

Attachment Manager

Using Zotero Plugin Template Latest release Release Date License Downloads latest release

📺视频演示

教程

  1. 选择源路径根目录
  2. 根据你的同步方式选择附加类型
  3. 若你在2选择链接,请配置靶路径的根目录
  4. 其它设置中,根据自己使用习惯配置

如何自定义重命名规则以及定义子目录? 见Zotero官方教程,在配置子目录时多层级目录请用/隔开。

image

支持

Here

zotero-attanger's People

Contributors

c-lyu avatar dependabot[bot] avatar ezellohar avatar jiaojiaodubai avatar muisedestiny avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zotero-attanger's Issues

学位论文会被移动到C盘根目录,无法移动到指定目录

子目录设置是 {{publicationTitle}}/{{year}}
移动后学位论文按照以前的zotfile会创建一个学校名字的子文件夹,然后是年份的子文件夹。但是这个插件会移动到根目录而不是指定目录,并且只有年份的子文件夹,怎么解决?
微信截图_20240124223906
微信截图_20240124223826

Can I use the citekey from Better BibTeX to rename the attachment?

I still have the old Wandering File plugin, but I want to move to this newer version. In the Wandering File plugin, I can use the citekey generated by Better BibTeX by putting {%b} like this:
image

But I don't think I can do that yet with Attanger? I believe Attanger relies on Zotero to rename the attachment. Is that correct? Do you have plans to add Better BibTeX support in the future?

Thanks a lot for making so many useful Zotero plugin!

添加新文件时,重命名的Bug

你好,

非常感谢作者开发的插件,对Zotero 7支持非常好。
不过有几个小问题想报告一下:

  1. 当我引入新的条目时,重命名会提示文件已存在并自动添加后缀名,如下图:

Snipaste_2024-01-19_16-51-26
但是我的文件夹中没有重复的文件
2. 另外,当我右键点击重命名文件或移动文件时,若目标文件被占用(比如在其他程序中被打开),该插件会卡住,并不断提示上述 Progress Window,查看日志发现:

Snipaste_2024-01-19_16-52-53

如果不嫌弃我可以尝试修复该bug。

谢谢!

直接进入的 safe mode

我刚装上之后每次打开 Zotero 都是直接进入的 safe mode,然后网上找了教程关闭,之后软件就一直卡死无法运行了
image
现在重装覆盖了软件,解决了卡死的问题,但是依然还是会直接进入 safe mode

Originally posted by @BBuniverse in #30 (comment)

# 快速打开

快速open with本地附件

image

以"标签"重命名附件

image
设置标签存放位置:“archiveLocation存档位置“
image
目的:快速定位打开云盘附件
image

默认存储位置有时不正确

@MuiseDestiny
感谢开发这么好用的插件!
发现小个小问题:默认子目录设置时,当在我的文库等,没有分类的位置添加文献,会被存到”\我的文档\年份“目录下面;设置官方说明文档中的journalAbbreviation参数无效,琢磨着估计是中文文献没有这一项,但又找不到期刊、出版社、大学等通用的子目录设置形式,建议增加,因为分类是会变的,期刊和发表年份等是不会再变化的,这样更有利于分类。
再次感谢!

跨设备同步异常

我有一台 mac 和一台 win,在 mac 上用 attanger 把所有的 pdf 都移到了某个目录,然后用坚果云同步了那个文件夹。路径如下述报错所示。
image

但是在 win 上打开的时候,它似乎无法识别这个同步的目录,即使我改了win上的 attanger 的相关路径如下,也在 win 上的 Zotero 打不开文件
image

请问是我哪里理解有问题吗?

[FR] 为不同的分组设置不同的目标路径

用了zotero7之后, 发现能对html做批注了, 于是开始想把zotero打造成个人的资源管理器, 亦即不止收录pdf, 还想要一起收录网页快照, 音视频文件乃至各种任意类型的文件.
但插件目前只支持把所有文件都搬移到同一个路径下, 所以暂时只能把pdf html jpeg mp4等各种文件都混在一起, 那这样用起来就不太合适.
所以希望能够扩展出不同的目标路径, 比如: 按不同文件后缀, 根据用户的自定义设置, 把pdf搬移到library文件夹, 把html搬移到webpages文件夹, ... , 把其余文件搬移到miscellaneous文件夹.
而更希望的是, 允许用户对不同的分组也能自定义不同的目标路径, 比如: 对名为music的分组自定义一个云盘的目标路径, 然后对该分组右键选择添加新附件, 将会一律把要添加到该分组里的附件搬移到云盘里实现自动同步; 而对另外的分组则可以有另外的目标路径.

BUG:移动附件会导致附件丢失 功能建议:重命名并移动附件

BUG:移动附件会导致附件丢失

操作:
第一步:右键条目>附件管理>重命名附件(出现下图)
image
第二步:右键条目>附件管理>移动附件
附件丢失(因为上图中两个附件的名称是一样的)

功能建议:重命名并移动附件

现在只能手动去操作,希望抓取条目后能自动 重命名并移动附件 到指定文件夹

重命名附件+移动附件===>重命名并移动附件

已经链接的pdf重新选择移动会让文件名加上_1

感谢大神提供的改名插件让我的zotero顺利升级到了7。
已经链接的pdf重新选择移动会让文件名加上 _1,如果是移动到同名文件应该是跳过操作。
例如:
Wu 等 - 2023 - Unlocking my heart fostering hotel brand love with service robots.pdf
变为
Wu 等 - 2023 - Unlocking my heart fostering hotel brand love with service robots_1.pdf

个人感觉应该是在创建同名那里加上一个 sourcePath !== destPath 才需要重命名。

1.0.8 文章高亮记录,阅读记录全部消失

我全部重新用插件移动一遍文档位置后,就不会再出现重复创建同名文件夹的情况了。但是我现在所有移动之前的文章高亮标注全部丢失,Chartero 的阅读时长也全部归零。

本地对应记录应该还是有的吧,有什么方法全部找回对应的阅读记录吗?

并且操作次数多了之后,选择按日期排序会出现顺序错误,其他列也有类似的情况。

The attachments I added cannot be moved.

If the attachments come from zotero connect, the attachments can be moved automatically. But when I add attachments by copying or linking, they cannot be moved to destination files.

移动附件bug

感谢作者开发的插件,能够在zotero7中更好的管理文件,我在使用时发现了如下问题:
当我选中一个文件目录中所有的文献并进行移动文件时不会发生问题,
当我选中所有的文献进行移动时就会发生bug,文献移动后的windows目录位置不是其在zotero目录中的位置。

重复创建同名文件夹

选择 move attachment 移动 PDF 的时候,还是没有检查本地是否已经存在同名文件夹。之前为了解决这个问题,我全部重新移动了一次,就导致丢失了所有的标注记录和阅读时长记录。
image

文献库的PDF附件被插件删除

我的zotero已经使用了坚果云webdav同步了文献库,在安装该插件后(没进行任何设置的默认情况下)多次右下角弹窗,当我查看文献时发现很多个(目测1/4库)词条的PDF附件被它删除了。
我理解这个插件可能是帮助去重或者管理附件,但它为啥在未经设置的情况下私自删除PDF附件??(或者未经设置就擅自挪动,挪动到哪里去了?)
image

Feature Request: Default Attachment Option to Prevent Overwriting in 'Rename Attachment' Functionality

Dear @MuiseDestiny,

Consider the possibility of incorporating a default attachment option into your extensions. Currently, when using the Attachment Manager > Rename Attachment feature, all attachments are renamed to the same name, leading to overwriting of PDFs. For example, I attach the original PDF to an article, take notes on paper, create a new PDF, and attach it to Zotero. With your extension, marking the original PDF as the default would prevent unintended overwriting when renaming attachments.

Thank you for your efforts in continually refining and optimizing this valuable extension for the Zotero community.

增加设置, 允许对自动提取元数据失败的附件自动创建父条目并移动原文件及添加附件链接

目前是这样的, 若添加的附件无法被自动识别, 那么插件的整个工作流就会卡住, 而且没有任何提示, 给人感觉插件似乎并不好使, 此时必须手动给它创建一个父条目, 然后才能继续触发后续的移动原文件及添加附件链接功能.

建议对此进行优化, 因为导入附件时候, 用户往往都不会特意去关心该附件到底有没有被自动识别成功, 所以应该允许插件在自动识别失败的时候自动创建哪怕是一个空的父条目出来, 以确保导入任何附件时都可以把操作走到底, 百分百将之转为链接附件.

annotation注释在移动并重命名附件之后消失

image

因为之前没用这个插件用链接PDF的方式管理附件,所以在做注释(annotations)之后进行的移动并重命名。

而当我移动之后,再打开这个item的PDF,所有的注释消失不见了。

image

请问这个问题如何解决和防范呢??

Name suggestion to avoid trademark conflicts

Hello o/

I've seen on the forums that you were asked to change the name of an earlier plugin "zotero-file" because of the word zotero in the name.

If this plugin is the intended successor to zotfile, it would make sense to name it similarly and avoid conflicts.

For example: zot-attanger or zot-file-2 or zot-file-7 or zot-file-neo, and so on.

Best of luck. Looking forward to a full English localization (docs, ...) 😄

使用“查找可用的pdf”获得的附件以及网页抓取均无法自动重命名

首先感谢作者花时间阅读,我下面会详细描述

我已勾选自动重命名设置,如图(所有插件和zotero均为最新版本;已安装插件为:awesomeGPT;reference;茉莉花;style;magic;pdf translate;attanger)

image

这个不需要特定的文章来复现,我从使用这个插件至今,凡是“查找可用的pdf”功能获得的附件,均无法重命名,如下图(比如例图中显示的是全文.pdf)

image

此外,我个人在使用时,凡是网页抓取的文章,附件也均无法重命名,如下图(期刊例子:https://link.springer.com/article/10.1007/s40864-019-00110-6)

image
image

更具体的说,是插件无法实现软件内部显示的附件标题的重命名,但文件本身是有重命名的,不过我卸载插件测试过,文件本身的重命名过程是zotero7自带重命名功能实现的。

还有一个疑问顺便请教,无论我勾选自动移动添加的附件与否,貌似对网页抓取或者“查找可用的pdf”功能获得的附件位置没有任何影响,我不太理解这个功能到底要实现什么效果。我也看过作者您在b站的教学,也没有提及相关内容。

pdf这个文件名未被识别

在指定目录,最新PDF名为“0022-3514.90.1.179.pdf”,可是却没有被检测到进行移动,反而移动了一个xlsx的文件,而设置里xlsx文件是不设置监测的,很奇怪
image

打开方式操作会修改默认设置?

现在打开方式采用的是 viewAttachment 方式,这个要修改默认配置,关闭的时候再改回来。容易造成打开阻塞。
await ZoteroPane.viewAttachment(ids);

是不是可以考虑采用
Zotero.launchFileWithApplication(path, exePath);

或者采用
let args = ['-p', filePath]; Zotero.Utilities.Internal.exec(applicationPath, args);

多设备靶路径不同,能否实现同步

attanger的作用是自动为附件替换一个文件链接,指向OneDrive下指定的文件夹。但是当多个设备的OneDrive路径不同时,是否还能实现顺畅的同步呢?
感觉可以在attanger的打开功能里,设置为从该设备设置好的靶路径打开相应的文件,不知作者有没有兴趣实现。

『Feature Request』【网页快照】依然保存在Zotero默认【ITEM】文件夹中/Web page snapshots are still saved in Zotero's default ITEM folder

如下图配置,以【Link】方式保存附件
Configure as shown in the figure below and save the attachment in [Link] mode
image

网页剪存时,自动保存【网页快照】,并添加为【附件】
Automatically save [Web Page Snapshot] and add it as [Attachment] when cutting and saving web pages.
image

目前插件似乎会自动将【网页快照】以【LINK】方式移动至【目标路径】。不知能否保持【ZotFile】的特性,【网页快照】依然以【Stored Copy】方式保存在【ITEM】文件夹中,谢谢!
At present, the plugin seems to automatically move the webpage snapshot to the target path in a LINK manner. If it's possible to maintain the characteristics of ZotFile. The webpage snapshot will still be saved in the ITEM folder as a Stored Copy. Thank you!

Rename Issue - Suffix Reset

Hello!
Simple issue: when I "Move PDF", if a file is already in the folder, the extension adds a suffix.
What I'd like to happen: in case one of the file is removed, if I "Rename PDF" the suffix is removed.
Amazing extension, thank you for your work!

链接类型的pdf文件无法恢复为本地类型的pdf导致ipad端无法下载pdf

您好,这插件使用体验很不错,但是存在一个问题,通过attanger云备份pdf后,pdf变为链接状态,如下图所示:
微信截图_20240221155518

但在此之后,ipad端的zotero无法下载pdf文件了,ipad段报错显示如下:
微信截图_20240221155959

于是我想将链接类型的pdf文件恢复为本地类型的pdf,即让它(pdf)回到zo初始位置,但无法成功实现。相关设置如下图所示:
微信截图_20240221155418
微信截图_20240221155403

我想询问一下,是我的设置有问题,还是插件存在相关问题呢?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.