Open
Conversation
# git worktree
## Setup
git clone git@github.com:USER/REPO.git master
cd master
## Add worktree (new branch)
git worktree add ~/Git/USER/REPO/BRANCH-NAME
## Add worktree (existing remote branch)
git branch -r | sed 's/origin\///' | xargs -n1 | fzf --select-1 --exit-0 | xargs -I @ git worktree add ~/Git/USER/REPO/@ @
## List
git worktree list
## Navigate (fzf)
pushd "$(git worktree list | fzf --select-1 --exit-0 | awk '{ print $1 }')"
## Remove
git worktree remove "$(git worktree list | fzf --select-1 --exit-0 | awk '{ print $1 }')"
Trimmed to essential commands with placeholders (USER/REPO/BRANCH-NAME) for easy adaptation. Omitted popd, git branch, and direct cd as they're standard shell knowledge.
ghostty-theme-preview ~/.config/ghostty/themes/smoooooth Output shows a color block, hex code, and label for each entry. Works with any Ghostty theme file.
color "#ffffff" color c13f47
1. Created document/snippet/ directory
2. Moved git-worktree.md into it
3. Created tmux-pane-layouts.md with:
- The ASCII layout diagram
- Split commands (horizontal/vertical)
- Pane navigation
- Resize commands
- Preset layouts (even-horizontal, tiled, etc.)
- Close pane
- Light lines (─ │ ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼) - Heavy lines (━ ┃ ┏ ┓ ┗ ┛ ┣ ┫ ┳ ┻ ╋) - Double lines (═ ║ ╔ ╗ ╚ ╝ ╠ ╣ ╦ ╩ ╬) - Rounded corners (╭ ╮ ╰ ╯) - Dashed lines (┄ ┆ ┈ ┊ ╌ ╎)
- Templates - Copy-paste ready grids for each line style (all same width) - Characters - Condensed single-line references for quick lookup
- Description under h1 - Markdown tables with character descriptions for each style
…d lines don't have their own corners).
…s (┬, ┳, ╦) in the first row. Now all characters are available for copy-paste.
…iddle of the diagram, not just at edges: ├──────┴──────┤ ← columns merge (┴ in middle row) │ │ ├──────┬──────┤ ← columns split (┬ in middle row) The second template only uses: - ┬ at the top edge - ┴ at the bottom edge This is a limited pattern. The first template demonstrates: 1. Column merging - two columns → one (common in complex layouts) 2. Column splitting - one → two columns 3. All 11 characters in realistic positions It's a better "cookbook" showing how to construct layouts like: - tmux pane arrangements - Tables with merged cells - UI wireframes with varying column counts ⏺ Done. Both Heavy and Double now follow the same pattern: - Same width as Light - Column merge (┻/╩) in middle - Column split (┳/╦) in middle - Cross (╋/╬) included - All 11 characters in realistic positions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.