Add remote server support to research template
- Add server and remoteDir fields to research projects configuration - Update project launcher to handle remote server parameters - Enhance research template with remote server window (window 7) - Add dual-pane remote SSH connections with auto-reconnect aliases - Document remote server features in README with configuration examples Features: - Type 'r' in any remote pane to reconnect after network drops - Automatic SSH connection and directory navigation - Parallel remote work with dual panes - Backwards compatible - optional server configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
c3872475b5
commit
5b2d62ffa6
5 changed files with 54 additions and 6 deletions
|
|
@ -64,6 +64,8 @@ SESSION_NAME=$(echo "$PROJECT_CONFIG" | jq -r '.name')
|
|||
CODE_PATH=$(echo "$PROJECT_CONFIG" | jq -r '.codePath')
|
||||
CONTENT_PATH=$(echo "$PROJECT_CONFIG" | jq -r '.contentPath // empty')
|
||||
PAPER_PATH=$(echo "$PROJECT_CONFIG" | jq -r '.paperPath // empty')
|
||||
SERVER=$(echo "$PROJECT_CONFIG" | jq -r '.server // empty')
|
||||
REMOTE_DIR=$(echo "$PROJECT_CONFIG" | jq -r '.remoteDir // empty')
|
||||
|
||||
# Launch appropriate template
|
||||
case "$TEMPLATE" in
|
||||
|
|
@ -82,7 +84,11 @@ case "$TEMPLATE" in
|
|||
echo "Error: Research template requires paperPath"
|
||||
exit 1
|
||||
fi
|
||||
exec "$TEMPLATES_DIR/research.sh" "$SESSION_NAME" "$CODE_PATH" "$PAPER_PATH"
|
||||
if [ -n "$SERVER" ] && [ -n "$REMOTE_DIR" ]; then
|
||||
exec "$TEMPLATES_DIR/research.sh" "$SESSION_NAME" "$CODE_PATH" "$PAPER_PATH" "$SERVER" "$REMOTE_DIR"
|
||||
else
|
||||
exec "$TEMPLATES_DIR/research.sh" "$SESSION_NAME" "$CODE_PATH" "$PAPER_PATH"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Error: Unknown template '$TEMPLATE'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue