From d029d7e6a27e65b3d1a0157fd8016f9f7976c384 Mon Sep 17 00:00:00 2001 From: Max Amundsen Date: Thu, 14 Aug 2025 15:16:13 -0400 Subject: [PATCH] update for focus --- .../focus-editor/global.focus-config | 0 sync.sh | 16 +++++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) rename global.focus-config => .config/focus-editor/global.focus-config (100%) diff --git a/global.focus-config b/.config/focus-editor/global.focus-config similarity index 100% rename from global.focus-config rename to .config/focus-editor/global.focus-config diff --git a/sync.sh b/sync.sh index e8b1185..9182b8a 100755 --- a/sync.sh +++ b/sync.sh @@ -36,13 +36,6 @@ get_system_path() { # Special case mappings for specific files case "$rel_path" in - "global.focus-config") - if [[ "$OSTYPE" == "darwin"* ]]; then - echo "/Users/${USER}/Library/Application Support/dev.focus-editor/global.focus-config" - else - echo "$HOME_DIR/$rel_path" - fi - ;; .config/Code/User/*) if [[ "$OSTYPE" == "darwin"* ]]; then # Map .config/Code/User/* to ~/Library/Application Support/Code/User/* @@ -52,6 +45,15 @@ get_system_path() { echo "$HOME_DIR/$rel_path" fi ;; + .config/focus-editor/*) + if [[ "$OSTYPE" == "darwin"* ]]; then + # Map .config/focus-editor/* to ~/Library/Application Support/dev.focus-editor/* + local focus_path="${rel_path#.config/focus-editor/}" + echo "/Users/${USER}/Library/Application Support/dev.focus-editor/${focus_path}" + else + echo "$HOME_DIR/$rel_path" + fi + ;; *) echo "$HOME_DIR/$rel_path" ;;