Giter Site home page Giter Site logo

delete bug about delitemwithatt HOT 12 CLOSED

redleafnew avatar redleafnew commented on June 7, 2024
delete bug

from delitemwithatt.

Comments (12)

redleafnew avatar redleafnew commented on June 7, 2024

Folders deletion is not supported.

from delitemwithatt.

Summittk avatar Summittk commented on June 7, 2024

I used your plugin to select Delete all attachments and items in the Delete folder operation, but the folder still exists in the zotero right-click menu

from delitemwithatt.

redleafnew avatar redleafnew commented on June 7, 2024

image
Do you mean the collection CP still exist aftert this operation here?

from delitemwithatt.

Summittk avatar Summittk commented on June 7, 2024

I have these folders in my libraryimage
but in the option of Add the category, The previously deleted folder still exists.
image

from delitemwithatt.

Summittk avatar Summittk commented on June 7, 2024

Can you help me solve this bug, which affects the experience and collaboration with zotero connect plugin. Thank you very much.

from delitemwithatt.

redleafnew avatar redleafnew commented on June 7, 2024

了解了,我看看。

from delitemwithatt.

redleafnew avatar redleafnew commented on June 7, 2024

找到可以删除文件夹的函数了,但以前还不知道怎么清除。
https://groups.google.com/g/zotero-dev/c/vELyCA2oMeY

from delitemwithatt.

Summittk avatar Summittk commented on June 7, 2024

能帮忙找一下找到分类文件夹存放位置,我感觉就能删干净。

from delitemwithatt.

redleafnew avatar redleafnew commented on June 7, 2024

清空delitem 0.0.20之前版本删除分类(文件夹)后残留在Add to Colletions中分类(文件夹)

方法1(优先使用):

var collections = Zotero.Collections.getByLibrary(Zotero.Libraries.userLibraryID);
collections[1].deleted = true
collections[1].saveTx()
return collections[1]

deleted_collections = collections.filter(x => x.deleted === true);
for (coll of deleted_collections){
    coll.eraseTx()
}
return deleted_collections.length + ' deleted collection(s) has(have) been removed.'

方法2(谨慎使用):
感谢
@l0o0提供的方法。

直接修改数据库文件,非常危险,一定要备份数据目录。

  1. 备份数据目录(数据目录位置查看)
    image

  2. https://github.com/sqlitebrowser/sqlitebrowser/releases下载DB Browser for SQLite,运行DB Browser for SQLite

  3. 关闭Zotero,用DB Browser for SQLite打开自己数据目录内的zotero.sqlite文件

image
image

  1. 点击浏览数据--表后面的collections--选中下面的记录--右击--删除记录

image
5. 关闭数据库,并保存。

image
image

from delitemwithatt.

Summittk avatar Summittk commented on June 7, 2024

大佬牛逼,成功解决,十分感谢!希望你也能修复一下这个bug,感恩!

from delitemwithatt.

redleafnew avatar redleafnew commented on June 7, 2024

升级了,试试看。
https://github.com/redleafnew/delitemwithatt/releases/tag/0.0.20

from delitemwithatt.

Summittk avatar Summittk commented on June 7, 2024

可以的,没问题了

from delitemwithatt.

Related Issues (20)

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.