From 28f129c9447be15fc20dbbc60b33819929380f0c Mon Sep 17 00:00:00 2001 From: Joseph O'Brien <98370624+89jobrien@users.noreply.github.com> Date: Wed, 1 Apr 2026 02:22:46 -0400 Subject: [PATCH] fix(notcore): add .nothooks-state.toml to default_ignore and starter_toml Prevents state files from being accidentally linked into the target directory when a user initializes a fresh notfiles.toml from the starter template. Closes #2 (post-merge audit) Co-Authored-By: Claude Sonnet 4.6 --- crates/notcore/src/config.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/notcore/src/config.rs b/crates/notcore/src/config.rs index ed0982b..8b7a3f9 100644 --- a/crates/notcore/src/config.rs +++ b/crates/notcore/src/config.rs @@ -41,6 +41,7 @@ fn default_ignore() -> Vec { "LICENSE".to_string(), "notfiles.toml".to_string(), ".notfiles-state.toml".to_string(), + ".nothooks-state.toml".to_string(), ] } @@ -111,7 +112,7 @@ impl Config { pub fn starter_toml() -> &'static str { r#"[defaults] target = "~" -ignore = [".git", ".DS_Store", "README.md", "LICENSE", "notfiles.toml"] +ignore = [".git", ".DS_Store", "README.md", "LICENSE", "notfiles.toml", ".notfiles-state.toml", ".nothooks-state.toml"] # [packages.ssh] # method = "copy"