From a816122f49d2c7e43e41308e251e133197a486bc Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 2 Jun 2026 12:16:38 -0500 Subject: refactor: drop in-repo dotfiles/, move stow tooling to the dotfiles repo Since the installer clones DOTFILES_REPO into ~/.dotfiles and stows from there, the in-repo dotfiles/ tree was dead weight. Nothing reads it at install time. I removed it (831 files) now that both machines are migrated. The Makefile's stow / restow / reset / unstow / import targets and the dotfile-script unit suites moved to the dotfiles repo. They sit alongside the scripts they manage and run standalone (cd ~/.dotfiles && make ...). This Makefile keeps the VM-integration targets and the installer-helper suite (safe-rm-rf). I updated CLAUDE.md and README.md so stow operations run from ~/.dotfiles, and the dotfile-management, theme, and unit-test sections point at the standalone repo. The README was already describing the old in-repo model from before the installer switched to cloning. This brings it in line. --- dotfiles/common/.local/bin/org-capture.sh | 159 ------------------------------ 1 file changed, 159 deletions(-) delete mode 100755 dotfiles/common/.local/bin/org-capture.sh (limited to 'dotfiles/common/.local/bin/org-capture.sh') diff --git a/dotfiles/common/.local/bin/org-capture.sh b/dotfiles/common/.local/bin/org-capture.sh deleted file mode 100755 index 1e63177..0000000 --- a/dotfiles/common/.local/bin/org-capture.sh +++ /dev/null @@ -1,159 +0,0 @@ -#!/bin/bash - -# * Defaults - -heading=" " -protocol="capture-html" -template="w" - -# * Functions - -function debug { - if [[ -n $debug ]] - then - function debug { - echo "DEBUG: $@" >&2 - } - debug "$@" - else - function debug { - true - } - fi -} -function die { - echo "$@" >&2 - exit 1 -} -function usage { - cat </{s|.*([^<]+).*|\1|i;p;q};' <<<"$html") || heading="A web page with no name" - - debug "Using heading: $heading" - -elif [[ -n $readability ]] -then - debug "Using readability" - -else - usage - echo - die "I need somethin' ta go on, Cap'n!" -fi - -# ** Check URL -# The URL shouldn't be empty - -[[ -n $url ]] || url="http://example.com" - -# ** URL-encode html - -heading=$(urlencode <<<"$heading") || die "Unable to urlencode heading." -url=$(urlencode <<<"$url") || die "Unable to urlencode URL." -html=$(urlencode <<<"$html") || die "Unable to urlencode HTML." - -# ** Send to Emacs - -emacsclient "org-protocol://$protocol?template=$template&url=$url&title=$heading&body=$html" -- cgit v1.2.3