Skip to content

Instantly share code, notes, and snippets.

View fangwangme's full-sized avatar

Fang Wang fangwangme

View GitHub Profile
@fangwangme
fangwangme / tmw.sh
Last active January 24, 2026 09:09
Tmux Worktree & Layout Manager: Automates session creation with a 3-column layout (AI/Shell, Neovim/Shell, LF), Git Worktree support, and Lazygit integration.
#!/usr/bin/env bash
# ==============================================================================
# Script Name: tmw (Tmux Worktree Manager)
# Layout:
# - Col 1 (Left 100%): Opencode (Manual Start)
# - Col 2 (Mid) : Neovim (Top) / Worktree Shell (Bot)
# - Col 3 (Right) : LF File Manager
#
# Arguments:
# -o Override (Recreate session)
@fangwangme
fangwangme / obsidian-static-backup.md
Last active December 31, 2025 19:04
Obsidian Templater Script: Convert Daily/Weekly notes to static Markdown for AI/RAG (Supports Tasks & Dataview)

<%* // 🛡️ v28:Weekly 语境重构版 (引入 Time-Window Scoping 引擎) try { // ================= 1. 配置区域 ================= const EXTERNAL_BACKUP_ROOT = "/Users/fangwang/project/life/ObsidianStaticBackup/PeriodicNotes";

// ================= 2. 交互模式 =================
const modes = [

"📅 备份【本周】 (Current Week)",