Skip to content

feat(POLISH-004): add .editorconfig + .inputrc cross-OS polish (#133)#178

Merged
mlorentedev merged 3 commits into
mainfrom
feat/polish-004-editorconfig-inputrc
May 30, 2026
Merged

feat(POLISH-004): add .editorconfig + .inputrc cross-OS polish (#133)#178
mlorentedev merged 3 commits into
mainfrom
feat/polish-004-editorconfig-inputrc

Conversation

@mlorentedev
Copy link
Copy Markdown
Owner

Why

Two small, universally-applicable cross-OS polish items (mathiasbynens-style) from the fresh-eyes audit. Spec: specs/POLISH-004-cross-os-polish-bundle/.

What

  • .editorconfig (repo root, root=true): UTF-8 + LF, trim trailing whitespace + final newline, 4-space default; markdown keeps trailing whitespace; *.{ps1,psm1,psd1,bat,cmd} → CRLF; yaml/json → 2-space; Makefile/go → tab. Anti-scope: existing files are NOT reformatted; governs new work.
  • .inputrc: completion-ignore-case, show-all-if-ambiguous, show-all-if-unmodified, colored-stats, arrow-key prefix history-search; $include /etc/inputrc. Deployed to $HOME/.inputrc by setup-linux.sh (deploy_file).

AC status (#133)

  • .editorconfig exists (editorconfig-checker CI enforcement is out-of-scope per the issue).
  • .inputrc exists; setup-linux.sh deploys to $HOME/.inputrc.
  • tests/inputrc.bats asserts deployment wiring + content (4 tests).
  • README "Features" mentions both.

Verification

  • bats tests/inputrc.bats → 4/4
  • bash -n setup-linux.sh OK; shellcheck clean on the new line
  • spec-gate: 69 LOC, spec folder touched → OK

Closes #133.

- .editorconfig (root): UTF-8+LF, trim+final-newline, 4-space; markdown no-trim;
  ps1/bat CRLF; yaml/json 2-space; Makefile/go tab. Existing files not
  reformatted (anti-scope).
- .inputrc: case-insensitive completion, show-all-if-ambiguous/unmodified,
  colored-stats, arrow-key history-search; includes /etc/inputrc.
- setup-linux.sh deploys .inputrc -> $HOME/.inputrc via deploy_file.
- tests/inputrc.bats (4): files exist + content + deploy wiring.
- README Features + spec tasks.md updated.

Closes #133.
The integration container (setup run from ~/dotfiles-repo != ~/.dotfiles) takes
setup-linux.sh's copy-branch, which curates which repo files land in
$DOTFILES_DIR before deploy_file reads them. .inputrc was added to the deploy
list but not the copy list -> 'deploy_file: source missing' -> integration
build failed. Add both new root dotfiles to the copy-branch (incomplete-migration
class: new file, stale curated caller). The integration test itself caught it.
@mlorentedev mlorentedev merged commit 679126e into main May 30, 2026
6 checks passed
@mlorentedev mlorentedev deleted the feat/polish-004-editorconfig-inputrc branch May 30, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

POLISH-004: Add .editorconfig + .inputrc (mathiasbynens-style cross-OS polish)

1 participant