Giter Club home page Giter Club logo

Comments (5)

Mara-Li avatar Mara-Li commented on July 22, 2024 2

I didn't recreate the modal because it was a lot complicated !

Also, some function aren't possible with this plugin because :

  • For the deletion I choose to rely on my Github Actions and a simple list of the published files. The deletion are done by the github action with this list. I can check but I will be likely long and I dont think it's relevant.
  • Same for edited files.

To do some function i need to check every files in your vault, adress One by One the request to github with the category. Also some configuration will be tricky to do, specially for folder note.
For me, the idea around Publisher is to provide a simple Sharing way.

→ File are published, or not.
→ You know when you edit the files.

Also, i think it can be explode the API if included...

I understand why this kind of menu can be good, that's why i dont exclude it from future update, from pull request for example.

from obsidian-github-publisher.

oleeskild avatar oleeskild commented on July 22, 2024 2

I'm sorry to say that I don't think I'll find the time in the near future, but I'll add it to my todolist to take a look at it if I find the time.

If someone else is interested in implementing this, the code is available in my obsidian-digital-garden repo in the PublishStatusManager.ts.

In short what it does is using the GitHub API to retrieve the "tree" for the main branch. This contains the hashes for all files in your repo. Then I'm generating the hash locally for each file marked with a publish attribute in the frontmatter. Then I compare the two hashes. If they are equal the note is published. If they are unequal, the note is changed. If it's not present in the hashes from github it is unpublished. Lastly the deleted files are the ones that are present in the hashes from github, but not present in your vault. You are then left with 4 lists which you could render in a modal or similar.

from obsidian-github-publisher.

andrey-jef avatar andrey-jef commented on July 22, 2024 1

aha. Thanks for explaining. At least for now, with the plugin, the workflow is already much better than using the obs2mk in terminal.

from obsidian-github-publisher.

Mara-Li avatar Mara-Li commented on July 22, 2024 1

Okay, I tried to create the menu, but I really don't have the level for this ;;
Maybe @oleeskild can give some hands/help on this ;
;

from obsidian-github-publisher.

Mara-Li avatar Mara-Li commented on July 22, 2024

Maybe in some time I will maybe code this, but it's not my priority !
I'm happy that this plugin help your worflow :D

from obsidian-github-publisher.

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.