Comments (5)
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.
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.
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.
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.
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)
- [bug]: Refresh published and upload new notes ⇒ upload all notes
- [Bug]: Files uploading with empty content HOT 6
- Set a specific options for an entire folder/multiple file
- [Bug]: When "Sluglify anchor in markdown links" is turned on, the Chinese characters of the anchor content will be deleted. HOT 4
- [Bug]: frontmatter repeat HOT 9
- [Bug]: Internal links grayed out / displayed as class=" not found" on GH Pages HOT 15
- [FR]: Make Dataview conversion compatible with Plugin Groups plugin HOT 3
- [Bug]: Couldn't upload Attachments with Obsidian folder structure while using the Folder Path replacer HOT 1
- [Bug]: Compatibility issue with Excalidraw plugin HOT 6
- [FR]: Option to use different github tokens for additional repos HOT 2
- [FR]: Convert Inline Dataview Queries to Markdown HOT 10
- [Bug]: Cannot use repository on Github Enterprise instance with rate limiting disabled. HOT 12
- [Bug]: Folder Path & File Name Replacer doesn't work on dataview content HOT 3
- [Bug]: Broken link HOT 2
- [Bug]: excalidraw is transformed to svg,bug the link path is not changed HOT 2
- [FR]: 'Delete all before publish' option HOT 1
- [Bug]: [[Wikilinks]] to [MDlinks](links) not working with headers links HOT 4
- [FR]: Allow upload of files not natively handled by Obsidian HOT 5
- [Bug]: File name replacement regex applied to attachment file paths HOT 2
- [Bug]: When trying to upload one note all linked notes reuploaded HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-github-publisher.