Sorting drafts with w-shingling 0 ▲ with words, wonder 1 hour ago · Tech · hide · 0 comments A few weeks ago, I started to re-think how I organise my writing. Previously, I kept my writing in three folders:Drafts, where I intended to keep all my drafts;Writing, where all my writing, including my drafts, ended up, and;My website, which contains the final, published versions of my writing.When I went to save a piece of writing, I would save it in the “Writing” folder. When I was ready to publish a piece, I would copy it from “Writing” to my site, make any edits (i.e. add images, add alt text, fix typos, re-work some of the post) and publish the edited piece. While this system worked for published writing, it meant there was no easy way for me to find my drafts: they were all in the Writing folder, alongside the rest of my writing.I set out to write a script that would look at all my files in Writing and move any pieces that were unpublished to the Drafts folder. Of note, my script could not compare files verbatim. This is because when I prepare a post for publishing, I add… No comments yet. Log in to reply on the Fediverse. Comments will appear here.