diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-02 12:16:38 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-02 12:16:38 -0500 |
| commit | b10cba594db836c0747066addad48bda4d30cd02 (patch) | |
| tree | 063119a623fa3f7139feda4ef302896d8f5f934c /dotfiles/common/.zsh/lib/-ftb-generate-query | |
| parent | 49c2ba9c4510bf6e1acd306687473bc8ba9ad8dd (diff) | |
| download | archsetup-b10cba594db836c0747066addad48bda4d30cd02.tar.gz archsetup-b10cba594db836c0747066addad48bda4d30cd02.zip | |
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.
Diffstat (limited to 'dotfiles/common/.zsh/lib/-ftb-generate-query')
| -rw-r--r-- | dotfiles/common/.zsh/lib/-ftb-generate-query | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/dotfiles/common/.zsh/lib/-ftb-generate-query b/dotfiles/common/.zsh/lib/-ftb-generate-query deleted file mode 100644 index 87ebb75..0000000 --- a/dotfiles/common/.zsh/lib/-ftb-generate-query +++ /dev/null @@ -1,36 +0,0 @@ -#!/hint/zsh - -local key qtype tmp query_string -typeset -g _ftb_query= --ftb-zstyle -a query-string query_string || query_string=(prefix input first) -for qtype in $query_string; do - if [[ $qtype == prefix ]]; then - # find the longest common prefix among descriptions - local -a keys=(${_ftb_compcap%$'\2'*}) - tmp=$keys[1] - local MATCH match mbegin mend prefix=(${(s::)tmp}) - for key in ${keys:1}; do - (( $#tmp )) || break - [[ $key == $tmp* ]] && continue - # interpose characters from the current common prefix and $key and see how - # many pairs of equal characters we get at the start of the resulting string - [[ ${(j::)${${(s::)key[1,$#tmp]}:^prefix}} =~ '^(((.)\3)*)' ]] - # truncate common prefix and maintain loop invariant: ${(s::)tmp} == $prefix - tmp[$#MATCH/2+1,-1]="" - prefix[$#MATCH/2+1,-1]=() - done - elif [[ $qtype == input ]]; then - local fv=${_ftb_compcap[1]#*$'\2'} - local -A v=("${(@0)fv}") - tmp=$v[PREFIX] - if (( $RBUFFER[(i)$v[SUFFIX]] != 1 )); then - tmp=${tmp/%$v[SUFFIX]} - fi - tmp=${${tmp#$v[hpre]}#$v[apre]} - fi - if (( $query_string[(I)longest] )); then - (( $#tmp > $#_ftb_query )) && _ftb_query=$tmp - elif [[ -n $tmp ]]; then - _ftb_query=$tmp && break - fi -done |
