Add VS Code open option to wizard
- New prompt: "Open project in VS Code after creation?" - Opens project folder in VS Code using `code` command - Shown in summary alongside other integrations Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -240,6 +240,17 @@ OBSIDIAN_NOTE=$(gum choose \
|
|||||||
"No" \
|
"No" \
|
||||||
--header "Obsidian integration")
|
--header "Obsidian integration")
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# Open in VS Code
|
||||||
|
#######################################
|
||||||
|
echo ""
|
||||||
|
gum style --foreground 245 "Open project in VS Code after creation?"
|
||||||
|
|
||||||
|
OPEN_VSCODE=$(gum choose \
|
||||||
|
"Yes" \
|
||||||
|
"No" \
|
||||||
|
--header "Open in VS Code")
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Confirm
|
# Confirm
|
||||||
#######################################
|
#######################################
|
||||||
@@ -259,7 +270,7 @@ Syncthing: $SYNCTHING_OPT
|
|||||||
Claude-mem: $CLAUDE_MEM
|
Claude-mem: $CLAUDE_MEM
|
||||||
Database: $DATABASE
|
Database: $DATABASE
|
||||||
License: $LICENSE
|
License: $LICENSE
|
||||||
TickTick: $TICKTICK_TASKS | Obsidian: $OBSIDIAN_NOTE"
|
TickTick: $TICKTICK_TASKS | Obsidian: $OBSIDIAN_NOTE | VS Code: $OPEN_VSCODE"
|
||||||
|
|
||||||
if [ -n "$SUBDOMAIN" ]; then
|
if [ -n "$SUBDOMAIN" ]; then
|
||||||
SUMMARY="$SUMMARY
|
SUMMARY="$SUMMARY
|
||||||
@@ -1117,6 +1128,14 @@ OBSIDIAN_EOF2
|
|||||||
open "obsidian://open?vault=Notes&file=Projects/$PROJECT_NAME" 2>/dev/null || true
|
open "obsidian://open?vault=Notes&file=Projects/$PROJECT_NAME" 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#######################################
|
||||||
|
# Open in VS Code
|
||||||
|
#######################################
|
||||||
|
if [ "$OPEN_VSCODE" = "Yes" ]; then
|
||||||
|
gum spin --spinner dot --title "Opening in VS Code..." -- sleep 0.3
|
||||||
|
code "$PROJECT_PATH" 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# Success!
|
# Success!
|
||||||
#######################################
|
#######################################
|
||||||
|
|||||||
Reference in New Issue
Block a user