From 82104b959e4eae754d6b2590556c4278329d8354 Mon Sep 17 00:00:00 2001 From: sasaki takeru Date: Thu, 18 Dec 2025 03:24:17 +0000 Subject: [PATCH] fix: Encode underscores as dashes in project path lookup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Claude Code encodes underscores (_) as dashes (-) in project directory names, but cclog was only converting slashes and dots. This caused "No Claude logs found" errors for paths containing underscores. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- cclog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cclog.sh b/cclog.sh index a816294..523e159 100755 --- a/cclog.sh +++ b/cclog.sh @@ -112,8 +112,8 @@ __cclog_browse() { # If directory argument provided, use it; otherwise use current directory local target_dir="${1:-$(pwd)}" - # Convert "/" to "-" and "." to "-" for project directory name - local project_dir=$(echo "$target_dir" | sed 's/\//-/g; s/\./-/g') + # Convert "/" to "-", "." to "-", and "_" to "-" for project directory name + local project_dir=$(echo "$target_dir" | sed 's/\//-/g; s/\./-/g; s/_/-/g') local claude_projects_dir="$HOME/.claude/projects/$project_dir"