Code Monkey home page Code Monkey logo

sy-docs-fix's Introduction

sy-docs-fix

主要用于修复手动修改了思源文档的创建日期,但又没有同时改变文件名(即.sy 文件内的 ID 和文件名不一致了)导致的问题。

现象:将修改了创建日期的文档的子级块拖拽出来作为一个单独文档时,会出现一个新的untitled文档,并且和原有的文档具有相同 ID。

修复方案:递归遍历指定目录下所有的 .sy 文件,找到文件名和 ID 不一致的项,重新命名文档。

注意事项:

  1. 使用前请注意备份
  2. 指定的目录最好具体到 data 路径下,否则会将历史记录中的文档也处理

使用方法: Releases 中下载压缩包,解压后运行 node ./sy-docs-fix.js -t "D:\我的文档\SiYuan\data"

sy-docs-fix's People

Contributors

vxrain avatar

Watchers

 avatar

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.