update for focus

This commit is contained in:
2025-08-14 15:16:13 -04:00
parent f29f4e28e1
commit d029d7e6a2
2 changed files with 9 additions and 7 deletions

16
sync.sh
View File

@@ -36,13 +36,6 @@ get_system_path() {
# Special case mappings for specific files # Special case mappings for specific files
case "$rel_path" in 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/*) .config/Code/User/*)
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then
# Map .config/Code/User/* to ~/Library/Application Support/Code/User/* # Map .config/Code/User/* to ~/Library/Application Support/Code/User/*
@@ -52,6 +45,15 @@ get_system_path() {
echo "$HOME_DIR/$rel_path" echo "$HOME_DIR/$rel_path"
fi 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" echo "$HOME_DIR/$rel_path"
;; ;;