# OpenClaw Workspace Aliases
# Source this from ~/.bashrc

export WORKSPACE="/home/wdjones/.openclaw/workspace"

# Navigation
alias ws='cd $WORKSPACE'
alias proj='cd $WORKSPACE/projects'
alias docs='cd $WORKSPACE/docs'

# Quick access
alias tasks='cat $WORKSPACE/TASKS.md'
alias mem='cat $WORKSPACE/MEMORY.md'
alias today='cat $WORKSPACE/memory/$(date +%Y-%m-%d).md 2>/dev/null || echo "No notes for today"'

# Project creation
alias newproj='$WORKSPACE/scripts/new-project.sh'

# Search workspace
wsearch() {
    grep -ri "$1" $WORKSPACE --include="*.md" --include="*.txt" --include="*.sh" | head -30
}

# Quick note to today's log
note() {
    echo "- $(date +%H:%M): $*" >> $WORKSPACE/memory/$(date +%Y-%m-%d).md
}

# Inbox drop
inbox() {
    echo "$*" >> $WORKSPACE/inbox/quick-notes.md
    echo "Added to inbox"
}

# List projects
lsproj() {
    ls -la $WORKSPACE/projects/
}

# Tools
alias search='python3 $WORKSPACE/tools/search.py'
alias inbox='python3 $WORKSPACE/tools/inbox-processor.py'
alias digest='python3 $WORKSPACE/tools/daily-digest.py'
alias qnote='python3 $WORKSPACE/tools/quicknote.py'
alias clip='python3 $WORKSPACE/tools/web-clipper.py'
