Emacs to Pagecord
My Emacs to Pagecord module progress
Is it done? That's funny. Is software every really done?
No.
However, it is definitely usable. At least on "my computer". Ha.
One of these days I might even ask myself, perhaps even answer, the question of "why"? Though I suppose it was a learning experience, more than anything. An itch, I guess.
There are still a couple of things that I would like to get back to and finalize, though I just need a short mental break for a bit.
Currently implemented:
- Create and update posts
- Create and update pages
- Embed images into pages and posts from org file (a note here being that images are uploaded via cURL, while posts/pages are uploaded via the standard Emacs URL functions - I could not get multipart uploads to work for the life of me.)
- Pull master list of pages and posts, published or draft, to have easy access to token ids. (The idea here being for future filtering/editing of entries. It does a "best guess" at file source location as well. Best guess, seeing as posts can be made outside of Emacs. This can be either an orgmode table file, or an elisp file.)
- Maintain a master list of attached images, including the token id.
- Org file properties are used as frontmatter: title, token, kind, status, slug, locale, filetags, etc. The token is updated/inserted on initial posting.
Posts and Pages each have their own home directory's within the blog main directory.
The only home_page stuff that it currently does, besides fetching the token id of the homepage (or returning nil) is deleting/unlinking the current home page. That's kind of where I ran out of steam. I have the intention of using the Emacs completing-read interface alongside some of the utility functions I've got to provide a basic list of page's for the user to choose from as a home page. I just haven't gotten there yet.
Another thing that I should probably work on is an easier way to toggle the status of entries.
I'll probably work on getting this thing put on codeberg, just for giggles more than anything else. I can't say that I'd expect people to use this, it's a pretty niche crowd - especially seeing as the Pagecord Obsidian Community Plugin finally became publicly (and easily installable) available today. Which is pretty cool!
Hey, here's a pic of my almost current editing session!