I can edit posts using my Mac “WeblAdmin” app, but I can’t create a new post. Instead, I have to use the web app to start one, save it, then go back to the Mac app, refresh, and then I can edit (which is what I’m doing right now). Hopefully, refactoring my “source editor” for the “new” case will be pretty easy. Just insert a new Post into the list of posts, then select and edit. Maybe that’s all!
Right now, the app presents a list of posts with a viewer (a split view). To edit, I hit a toolbar button and then I get a modal with the source editor (plain text for markdown), and an optional preview (HTML presented in an embedded WKWebKit view). The modal isn’t the greatest thing. Except it’s not bad. I can just create a new app window to look at other posts if I want. Seems to work despite a few issues. If I save this post, another editor of the same post doesn’t get the update. And it’s possible for one editor to clobber the work of the other. I’d add a check-out system or lock system … but it’s just me.
Right now, the editor recalculates character/word-count on every keystroke. I think I need to implement some sort of delay thing so that the word/char count only updates on pauses. My Work Manager project has an example of that.
As I write this, Ukraine is still holding out against the Russian invasion. There’s a notion of a peace negotiation, but Zelensky has said that while he doubts it will amount to much, he will do anything it takes to stop the fighting short of surrendering independence.