hiiro 0.1.327 → 0.1.328
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/docs/README.md +64 -37
- data/docs/h-app.md +85 -0
- data/docs/h-bg.md +33 -0
- data/docs/h-bin.md +23 -0
- data/docs/h-branch.md +253 -0
- data/docs/h-buffer.md +53 -41
- data/docs/h-claude.md +100 -0
- data/docs/h-commit.md +17 -0
- data/docs/h-config.md +43 -0
- data/docs/h-cpr.md +22 -0
- data/docs/h-db.md +58 -0
- data/docs/h-img.md +27 -0
- data/docs/h-jumplist.md +47 -0
- data/docs/h-link.md +91 -0
- data/docs/h-misc.md +22 -0
- data/docs/h-notify.md +79 -0
- data/docs/h-pane.md +123 -79
- data/docs/h-plugin.md +16 -37
- data/docs/h-pm.md +85 -0
- data/docs/h-pr-monitor.md +25 -0
- data/docs/h-pr.md +299 -0
- data/docs/h-project.md +51 -0
- data/docs/h-registry.md +63 -0
- data/docs/h-session.md +69 -54
- data/docs/h-sha.md +35 -0
- data/docs/h-sparse.md +39 -0
- data/docs/h-tags.md +19 -0
- data/docs/h-title.md +19 -0
- data/docs/h-todo.md +90 -0
- data/docs/h-window.md +95 -61
- data/docs/h-wtree.md +83 -0
- data/docs/h.md +91 -0
- data/lib/hiiro/version.rb +1 -1
- metadata +27 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5679acf6319a905ff51f797d7eaf1468a54d1ddf2f888b6c54d290c1a00320ac
|
|
4
|
+
data.tar.gz: 4da3a5fc611b5904d22ba3d1233185ed133d985583422d85a5846827a333c346
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec87bdeeb6697c9e82d938219dccccb035575e1903ab2760d8e72fd8467b4779186ca9747cf1eeeee2e172facb796240a451f0c8a7ada6d6dfc51d3a30e72b23
|
|
7
|
+
data.tar.gz: 5afcff09237311bcf77570dcfde910a57504edddd93fbbd493b70fcb9e647227e986e554e0e5fc3527ee3dceeb5e270e1d7cdfea2f3aa77679fc02600cba848d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.328] - 2026-04-02
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- Update command documentation
|
|
7
|
+
|
|
3
8
|
## [0.1.327] - 2026-04-02
|
|
4
9
|
|
|
5
10
|
### Added
|
|
@@ -314,4 +319,4 @@
|
|
|
314
319
|
## [0.1.295]
|
|
315
320
|
|
|
316
321
|
### Changed
|
|
317
|
-
- Filter logic changes for PR management
|
|
322
|
+
- Filter logic changes for PR management
|
data/docs/README.md
CHANGED
|
@@ -1,52 +1,78 @@
|
|
|
1
|
-
# Hiiro
|
|
1
|
+
# Hiiro Bin Reference
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Quick-reference index of all `h-*` executables and the main `h` entry point.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Main entry point
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
| Command | Description |
|
|
8
|
+
|---------|-------------|
|
|
9
|
+
| [h](h.md) | Install, update, setup, and dispatch to all subcommands |
|
|
10
|
+
|
|
11
|
+
## Git
|
|
12
|
+
|
|
13
|
+
| Command | Description |
|
|
14
|
+
|---------|-------------|
|
|
15
|
+
| [h-branch](h-branch.md) | Manage, tag, search, and inspect git branches with task and PR associations |
|
|
16
|
+
| [h-commit](h-commit.md) | Fuzzy-select a git commit SHA from the recent log |
|
|
17
|
+
| [h-sha](h-sha.md) | Fuzzy-select, show, and copy git commit SHAs |
|
|
18
|
+
| [h-sparse](h-sparse.md) | Manage named git sparse-checkout path groups |
|
|
19
|
+
| [h-wtree](h-wtree.md) | Manage git worktrees with fuzzy selection and tmux session switching |
|
|
20
|
+
|
|
21
|
+
## GitHub
|
|
22
|
+
|
|
23
|
+
| Command | Description |
|
|
24
|
+
|---------|-------------|
|
|
25
|
+
| [h-cpr](h-cpr.md) | Proxy `h pr` subcommands to the PR for the current branch |
|
|
26
|
+
| [h-pr](h-pr.md) | Track, update, view, and act on GitHub pull requests |
|
|
27
|
+
| [h-pr-monitor](h-pr-monitor.md) | Poll `gh pr status` and send notifications on status changes |
|
|
28
|
+
|
|
29
|
+
## Tmux
|
|
30
|
+
|
|
31
|
+
| Command | Description |
|
|
32
|
+
|---------|-------------|
|
|
33
|
+
| [h-buffer](h-buffer.md) | Manage tmux paste buffers |
|
|
34
|
+
| [h-jumplist](h-jumplist.md) | Vim-style tmux navigation history (back/forward through pane focus) |
|
|
35
|
+
| [h-notify](h-notify.md) | Push and manage in-pane notifications with tmux menu |
|
|
36
|
+
| [h-pane](h-pane.md) | Manage tmux panes — split, kill, zoom, resize, home panes |
|
|
37
|
+
| [h-session](h-session.md) | Manage tmux sessions — create, kill, attach, rename, orphan detection |
|
|
38
|
+
| [h-title](h-title.md) | Update terminal tab title from the current hiiro task name |
|
|
39
|
+
| [h-window](h-window.md) | Manage tmux windows — list, create, kill, navigate, layout |
|
|
40
|
+
|
|
41
|
+
## Claude / AI
|
|
8
42
|
|
|
9
43
|
| Command | Description |
|
|
10
44
|
|---------|-------------|
|
|
11
|
-
| h-
|
|
12
|
-
| h-
|
|
13
|
-
| [h-buffer](h-buffer.md) | Tmux paste buffer management |
|
|
14
|
-
| h-claude | Claude CLI wrapper with tmux split support |
|
|
15
|
-
| h-commit | Select commits using fuzzy finder |
|
|
16
|
-
| h-config | Open config files (vim, git, tmux, zsh, starship, claude) |
|
|
17
|
-
| h-link | Manage saved links with URL, description, and shorthand |
|
|
18
|
-
| [h-pane](h-pane.md) | Tmux pane management |
|
|
19
|
-
| [h-plugin](h-plugin.md) | Manage hiiro plugins (list, edit, search) |
|
|
20
|
-
| h-pr | GitHub PR management via gh CLI |
|
|
21
|
-
| h-project | Project navigation with tmux session management |
|
|
22
|
-
| [h-session](h-session.md) | Tmux session management |
|
|
23
|
-
| h-sha | Extract short SHA from git log |
|
|
24
|
-
| h-todo | Todo list management with tags and task association |
|
|
25
|
-
| [h-window](h-window.md) | Tmux window management |
|
|
26
|
-
| h-wtree | Git worktree management |
|
|
45
|
+
| [h-claude](h-claude.md) | Launch Claude sessions in tmux splits, search `.claude` dirs, run inline prompts |
|
|
46
|
+
| [h-pm](h-pm.md) | Queue `/project-manager` skill prompts via `h queue add` |
|
|
27
47
|
|
|
28
|
-
##
|
|
48
|
+
## App / Project Management
|
|
29
49
|
|
|
30
|
-
|
|
50
|
+
| Command | Description |
|
|
51
|
+
|---------|-------------|
|
|
52
|
+
| [h-app](h-app.md) | Manage named application subdirectories within a git repo |
|
|
53
|
+
| [h-project](h-project.md) | Manage project directories and start tmux sessions |
|
|
54
|
+
|
|
55
|
+
## Data / Config
|
|
31
56
|
|
|
32
57
|
| Command | Description |
|
|
33
58
|
|---------|-------------|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
|
|
|
40
|
-
|
|
|
59
|
+
| [h-bin](h-bin.md) | List and edit hiiro bin scripts in PATH |
|
|
60
|
+
| [h-config](h-config.md) | Open common configuration files in your editor |
|
|
61
|
+
| [h-db](h-db.md) | Inspect and manage the hiiro SQLite database |
|
|
62
|
+
| [h-link](h-link.md) | Store, search, tag, and open saved URLs |
|
|
63
|
+
| [h-plugin](h-plugin.md) | List, edit, and search hiiro plugin files |
|
|
64
|
+
| [h-registry](h-registry.md) | Store and look up named resources by type with short aliases |
|
|
65
|
+
| [h-tags](h-tags.md) | Query tags grouped by taggable type |
|
|
66
|
+
| [h-todo](h-todo.md) | Manage a personal todo list with statuses, tags, and task associations |
|
|
41
67
|
|
|
42
|
-
##
|
|
68
|
+
## Utilities
|
|
43
69
|
|
|
44
|
-
|
|
|
45
|
-
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
70
|
+
| Command | Description |
|
|
71
|
+
|---------|-------------|
|
|
72
|
+
| [h-bg](h-bg.md) | Run commands in background tmux windows with history tracking |
|
|
73
|
+
| [h-img](h-img.md) | Save or base64-encode images from clipboard or file |
|
|
74
|
+
| [h-misc](h-misc.md) | Miscellaneous utilities (symlink destination reporting) |
|
|
75
|
+
| [h-sha](h-sha.md) | Fuzzy-select, show, and copy git commit SHAs |
|
|
50
76
|
|
|
51
77
|
## Abbreviations
|
|
52
78
|
|
|
@@ -55,5 +81,6 @@ All commands support prefix abbreviation:
|
|
|
55
81
|
```sh
|
|
56
82
|
h buf ls # h buffer ls
|
|
57
83
|
h ses ls # h session ls
|
|
58
|
-
h win
|
|
84
|
+
h win new # h window new
|
|
85
|
+
h br save # h branch save
|
|
59
86
|
```
|
data/docs/h-app.md
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# h-app
|
|
2
|
+
|
|
3
|
+
Manage named application subdirectories within a git repo, with shortcuts to cd, search, and run tools scoped to each app.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
h app <subcommand> [args]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Subcommands
|
|
12
|
+
|
|
13
|
+
### `config`
|
|
14
|
+
|
|
15
|
+
Open `~/.config/hiiro/apps.yml` in your editor.
|
|
16
|
+
|
|
17
|
+
### `cd` [alias: none]
|
|
18
|
+
|
|
19
|
+
Send a `cd` command to the current tmux pane to switch into an app directory (or the repo root if no name given).
|
|
20
|
+
|
|
21
|
+
**Args:** `[app_name]`
|
|
22
|
+
|
|
23
|
+
### `ls`
|
|
24
|
+
|
|
25
|
+
List all configured apps and their relative paths from the repo root.
|
|
26
|
+
|
|
27
|
+
### `path`
|
|
28
|
+
|
|
29
|
+
Print the relative path from the current directory to the app (or repo root).
|
|
30
|
+
|
|
31
|
+
**Args:** `[app_name]`
|
|
32
|
+
|
|
33
|
+
### `abspath`
|
|
34
|
+
|
|
35
|
+
Print the absolute filesystem path of the app directory (or repo root).
|
|
36
|
+
|
|
37
|
+
**Args:** `[app_name]`
|
|
38
|
+
|
|
39
|
+
### `add`
|
|
40
|
+
|
|
41
|
+
Register a new app name with a path relative to the repo root.
|
|
42
|
+
|
|
43
|
+
**Args:** `<app_name>` `<relative_path>`
|
|
44
|
+
|
|
45
|
+
### `rm` [alias: `remove`]
|
|
46
|
+
|
|
47
|
+
Remove a registered app by name.
|
|
48
|
+
|
|
49
|
+
**Args:** `<app_name>`
|
|
50
|
+
|
|
51
|
+
### `fd`
|
|
52
|
+
|
|
53
|
+
Run `fd` inside the named app's directory, passing all extra arguments to `fd`.
|
|
54
|
+
|
|
55
|
+
**Args:** `<app_name>` `[fd_args...]`
|
|
56
|
+
|
|
57
|
+
### `rg`
|
|
58
|
+
|
|
59
|
+
Run `rg` (ripgrep) inside the named app's directory.
|
|
60
|
+
|
|
61
|
+
**Args:** `<app_name>` `[rg_args...]`
|
|
62
|
+
|
|
63
|
+
### `vim`
|
|
64
|
+
|
|
65
|
+
Open vim inside the named app's directory.
|
|
66
|
+
|
|
67
|
+
**Args:** `<app_name>` `[vim_args...]`
|
|
68
|
+
|
|
69
|
+
### `sh`
|
|
70
|
+
|
|
71
|
+
Open a shell (or run a command) inside the named app's directory.
|
|
72
|
+
|
|
73
|
+
**Args:** `<app_name>` `[cmd...]`
|
|
74
|
+
|
|
75
|
+
### `service`
|
|
76
|
+
|
|
77
|
+
Delegate to `Hiiro::ServiceManager` subcommands scoped to the current app context. See `h service` for subcommand details.
|
|
78
|
+
|
|
79
|
+
### `run`
|
|
80
|
+
|
|
81
|
+
Delegate to `Hiiro::RunnerTool` subcommands. See `h run` for subcommand details.
|
|
82
|
+
|
|
83
|
+
### `file`
|
|
84
|
+
|
|
85
|
+
Delegate to `Hiiro::AppFiles` subcommands. See `h file` for subcommand details.
|
data/docs/h-bg.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# h-bg
|
|
2
|
+
|
|
3
|
+
Run commands in background tmux windows with history tracking.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
h bg <subcommand> [args]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Subcommands
|
|
12
|
+
|
|
13
|
+
### `popup`
|
|
14
|
+
|
|
15
|
+
Open your `$EDITOR` with recent command history as comments, then run whatever you type in a background tmux window. History is stored in `~/.config/hiiro/bg-history.txt` (max 50 entries).
|
|
16
|
+
|
|
17
|
+
### `run`
|
|
18
|
+
|
|
19
|
+
Run a command immediately in a new background tmux window.
|
|
20
|
+
|
|
21
|
+
**Args:** `<cmd...>`
|
|
22
|
+
|
|
23
|
+
### `attach` [alias: `a`]
|
|
24
|
+
|
|
25
|
+
Switch the current tmux client to the background session.
|
|
26
|
+
|
|
27
|
+
### `history` [alias: `hist`]
|
|
28
|
+
|
|
29
|
+
Print the recent background command history (up to 50 entries), newest last.
|
|
30
|
+
|
|
31
|
+
### `setup`
|
|
32
|
+
|
|
33
|
+
Print the tmux.conf line needed to bind `prefix + b` to open the popup. Does not modify any config files automatically.
|
data/docs/h-bin.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# h-bin
|
|
2
|
+
|
|
3
|
+
List and edit hiiro bin scripts (`h-*` executables found in PATH).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
h bin <subcommand> [filters...]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Subcommands
|
|
12
|
+
|
|
13
|
+
### `list`
|
|
14
|
+
|
|
15
|
+
Print the paths of all `h-*` executables found in PATH. Optionally filter by name patterns; each pattern is matched as `h-<pattern>` or `<pattern>`.
|
|
16
|
+
|
|
17
|
+
**Args:** `[subcmd_name...]`
|
|
18
|
+
|
|
19
|
+
### `edit`
|
|
20
|
+
|
|
21
|
+
Open matching `h-*` executables in your editor. Patterns work the same as `list`.
|
|
22
|
+
|
|
23
|
+
**Args:** `[subcmd_name...]`
|
data/docs/h-branch.md
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# h-branch
|
|
2
|
+
|
|
3
|
+
Manage, tag, search, and inspect git branches with task and PR associations stored in SQLite.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
h branch <subcommand> [options] [args]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Subcommands
|
|
12
|
+
|
|
13
|
+
### `save`
|
|
14
|
+
|
|
15
|
+
Save the current (or named) branch to the branch store with current task, worktree, and tmux context.
|
|
16
|
+
|
|
17
|
+
**Args:** `[branch_name]`
|
|
18
|
+
|
|
19
|
+
**Options:**
|
|
20
|
+
| Flag | Short | Description | Default |
|
|
21
|
+
|---|---|---|---|
|
|
22
|
+
| `--tag` | `-t` | Tag to apply (repeatable) | — |
|
|
23
|
+
|
|
24
|
+
### `saved`
|
|
25
|
+
|
|
26
|
+
List saved branches, with optional filter string.
|
|
27
|
+
|
|
28
|
+
**Args:** `[filter]`
|
|
29
|
+
|
|
30
|
+
### `current`
|
|
31
|
+
|
|
32
|
+
Print the current git branch name.
|
|
33
|
+
|
|
34
|
+
### `info`
|
|
35
|
+
|
|
36
|
+
Show detailed info about the current branch: SHA, task, worktree, tmux context, ahead/behind vs main, associated PR, and note.
|
|
37
|
+
|
|
38
|
+
### `ls`
|
|
39
|
+
|
|
40
|
+
List branches (saved by default, or all local with `-a`).
|
|
41
|
+
|
|
42
|
+
**Options:**
|
|
43
|
+
| Flag | Short | Description | Default |
|
|
44
|
+
|---|---|---|---|
|
|
45
|
+
| `--tag` | `-t` | Filter by tag (OR when multiple, repeatable) | — |
|
|
46
|
+
| `--all` | `-a` | Show all local branches instead of just saved | false |
|
|
47
|
+
|
|
48
|
+
### `search`
|
|
49
|
+
|
|
50
|
+
Search saved (or all) branches by name or tag substring.
|
|
51
|
+
|
|
52
|
+
**Args:** `<term> [term2...]`
|
|
53
|
+
|
|
54
|
+
**Options:**
|
|
55
|
+
| Flag | Short | Description | Default |
|
|
56
|
+
|---|---|---|---|
|
|
57
|
+
| `--all` | `-a` | Search all local branches | false |
|
|
58
|
+
|
|
59
|
+
### `tag`
|
|
60
|
+
|
|
61
|
+
Add tags to a branch. With `-e`, opens a YAML editor for bulk tagging.
|
|
62
|
+
|
|
63
|
+
**Args:** `[branch] <tag> [tag2...]`
|
|
64
|
+
|
|
65
|
+
**Options:**
|
|
66
|
+
| Flag | Short | Description | Default |
|
|
67
|
+
|---|---|---|---|
|
|
68
|
+
| `--edit` | `-e` | Open YAML editor for bulk tagging | false |
|
|
69
|
+
|
|
70
|
+
### `untag`
|
|
71
|
+
|
|
72
|
+
Remove one or more tags from a branch, or clear all tags if none specified.
|
|
73
|
+
|
|
74
|
+
**Args:** `[branch] [tag...]`
|
|
75
|
+
|
|
76
|
+
### `tags`
|
|
77
|
+
|
|
78
|
+
Show all tagged branches grouped by tag.
|
|
79
|
+
|
|
80
|
+
### `select`
|
|
81
|
+
|
|
82
|
+
Fuzzy-select a branch name from saved (or all) branches and print it.
|
|
83
|
+
|
|
84
|
+
**Options:**
|
|
85
|
+
| Flag | Short | Description | Default |
|
|
86
|
+
|---|---|---|---|
|
|
87
|
+
| `--all` | `-a` | Select from all local branches | false |
|
|
88
|
+
|
|
89
|
+
### `copy`
|
|
90
|
+
|
|
91
|
+
Fuzzy-select a branch and copy its name to clipboard.
|
|
92
|
+
|
|
93
|
+
**Options:**
|
|
94
|
+
| Flag | Short | Description | Default |
|
|
95
|
+
|---|---|---|---|
|
|
96
|
+
| `--all` | `-a` | Select from all local branches | false |
|
|
97
|
+
|
|
98
|
+
### `co` [alias: `checkout`]
|
|
99
|
+
|
|
100
|
+
Checkout a branch, fuzzy-selecting if no name given.
|
|
101
|
+
|
|
102
|
+
**Args:** `[branch]`
|
|
103
|
+
|
|
104
|
+
**Options:**
|
|
105
|
+
| Flag | Short | Description | Default |
|
|
106
|
+
|---|---|---|---|
|
|
107
|
+
| `--all` | `-a` | Select from all local branches | false |
|
|
108
|
+
|
|
109
|
+
### `rm` [alias: `remove`]
|
|
110
|
+
|
|
111
|
+
Delete a branch (`git branch -d`), fuzzy-selecting if no name given.
|
|
112
|
+
|
|
113
|
+
**Args:** `[branch]`
|
|
114
|
+
|
|
115
|
+
**Options:**
|
|
116
|
+
| Flag | Short | Description | Default |
|
|
117
|
+
|---|---|---|---|
|
|
118
|
+
| `--all` | `-a` | Select from all local branches | false |
|
|
119
|
+
|
|
120
|
+
### `rename`
|
|
121
|
+
|
|
122
|
+
Rename a branch locally and on the remote, then update the saved record.
|
|
123
|
+
|
|
124
|
+
**Args:** `<new_name> [old_name]`
|
|
125
|
+
|
|
126
|
+
### `status`
|
|
127
|
+
|
|
128
|
+
Show ahead/behind counts and associated PR state for each branch.
|
|
129
|
+
|
|
130
|
+
**Options:**
|
|
131
|
+
| Flag | Short | Description | Default |
|
|
132
|
+
|---|---|---|---|
|
|
133
|
+
| `--all` | `-a` | Show all local branches | false |
|
|
134
|
+
|
|
135
|
+
### `merged`
|
|
136
|
+
|
|
137
|
+
List branches that have been merged into main/master.
|
|
138
|
+
|
|
139
|
+
**Options:**
|
|
140
|
+
| Flag | Short | Description | Default |
|
|
141
|
+
|---|---|---|---|
|
|
142
|
+
| `--all` | `-a` | Show all merged branches, not just saved | false |
|
|
143
|
+
|
|
144
|
+
### `clean`
|
|
145
|
+
|
|
146
|
+
Interactively delete merged branches. With `-f`, delete all without prompting.
|
|
147
|
+
|
|
148
|
+
**Options:**
|
|
149
|
+
| Flag | Short | Description | Default |
|
|
150
|
+
|---|---|---|---|
|
|
151
|
+
| `--all` | `-a` | Include all merged branches | false |
|
|
152
|
+
| `--force` | `-f` | Delete all without confirmation | false |
|
|
153
|
+
|
|
154
|
+
### `recent`
|
|
155
|
+
|
|
156
|
+
Show the N most recently visited branches from reflog.
|
|
157
|
+
|
|
158
|
+
**Args:** `[n]` (default: 10)
|
|
159
|
+
|
|
160
|
+
### `note`
|
|
161
|
+
|
|
162
|
+
Get or set a freeform note on a branch.
|
|
163
|
+
|
|
164
|
+
**Args:** `[text...]`
|
|
165
|
+
|
|
166
|
+
**Options:**
|
|
167
|
+
| Flag | Short | Description | Default |
|
|
168
|
+
|---|---|---|---|
|
|
169
|
+
| `--clear` | — | Clear the note | false |
|
|
170
|
+
|
|
171
|
+
### `for-task`
|
|
172
|
+
|
|
173
|
+
List saved branches associated with a given task name (or current task).
|
|
174
|
+
|
|
175
|
+
**Args:** `[task_name]`
|
|
176
|
+
|
|
177
|
+
### `for-pr` [alias: `pr`]
|
|
178
|
+
|
|
179
|
+
Print the head branch name for a tracked PR (fuzzy-select if no arg).
|
|
180
|
+
|
|
181
|
+
**Args:** `[pr_number_or_url]`
|
|
182
|
+
|
|
183
|
+
### `duplicate`
|
|
184
|
+
|
|
185
|
+
Create a new branch as a copy of the current (or specified) branch.
|
|
186
|
+
|
|
187
|
+
**Args:** `<new_name> [source_branch]`
|
|
188
|
+
|
|
189
|
+
### `push`
|
|
190
|
+
|
|
191
|
+
Push a branch to a remote with optional force and upstream tracking.
|
|
192
|
+
|
|
193
|
+
**Options:**
|
|
194
|
+
| Flag | Short | Description | Default |
|
|
195
|
+
|---|---|---|---|
|
|
196
|
+
| `--remote` | `-r` | Remote name | `origin` |
|
|
197
|
+
| `--from` | `-f` | Local branch or commit | current branch |
|
|
198
|
+
| `--to` | `-t` | Remote branch name | same as from |
|
|
199
|
+
| `--force` | `-F` | Force push | false |
|
|
200
|
+
| `--set-upstream` | `-u` | Set upstream tracking | false |
|
|
201
|
+
|
|
202
|
+
### `diff`
|
|
203
|
+
|
|
204
|
+
Show commit log between two refs (defaults to `main..HEAD`).
|
|
205
|
+
|
|
206
|
+
**Args:** `[from] [to]`
|
|
207
|
+
|
|
208
|
+
### `changed`
|
|
209
|
+
|
|
210
|
+
List files changed between the current branch and its upstream fork point.
|
|
211
|
+
|
|
212
|
+
**Args:** `[upstream]`
|
|
213
|
+
|
|
214
|
+
### `ahead`
|
|
215
|
+
|
|
216
|
+
Show how many commits the branch is ahead of a base.
|
|
217
|
+
|
|
218
|
+
**Args:** `[base] [branch]`
|
|
219
|
+
|
|
220
|
+
### `behind`
|
|
221
|
+
|
|
222
|
+
Show how many commits the branch is behind a base.
|
|
223
|
+
|
|
224
|
+
**Args:** `[base] [branch]`
|
|
225
|
+
|
|
226
|
+
### `log`
|
|
227
|
+
|
|
228
|
+
Show the commit log for changes since the upstream fork point.
|
|
229
|
+
|
|
230
|
+
**Args:** `[upstream]`
|
|
231
|
+
|
|
232
|
+
### `q` [alias: `query`]
|
|
233
|
+
|
|
234
|
+
Query the branches SQLite table directly. Pass a table name, `key=value` filters, or raw SQL.
|
|
235
|
+
|
|
236
|
+
**Args:** `[table|sql|key=value...]`
|
|
237
|
+
|
|
238
|
+
**Options:**
|
|
239
|
+
| Flag | Short | Description | Default |
|
|
240
|
+
|---|---|---|---|
|
|
241
|
+
| `--all` | `-a` | Show all rows (no 50-row limit) | false |
|
|
242
|
+
|
|
243
|
+
### `forkpoint`
|
|
244
|
+
|
|
245
|
+
Print the merge-base SHA between the current branch and an upstream.
|
|
246
|
+
|
|
247
|
+
**Args:** `[upstream] [branch]`
|
|
248
|
+
|
|
249
|
+
### `ancestor`
|
|
250
|
+
|
|
251
|
+
Check whether one ref is an ancestor of another.
|
|
252
|
+
|
|
253
|
+
**Args:** `[ancestor] [descendant]`
|
data/docs/h-buffer.md
CHANGED
|
@@ -1,61 +1,73 @@
|
|
|
1
1
|
# h-buffer
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
[← Back to docs](README.md) | [← Back to main README](../README.md)
|
|
3
|
+
Manage tmux paste buffers — list, show, copy to clipboard, save, load, paste, and delete.
|
|
6
4
|
|
|
7
5
|
## Usage
|
|
8
6
|
|
|
9
|
-
```
|
|
10
|
-
h buffer <subcommand> [args
|
|
7
|
+
```
|
|
8
|
+
h buffer <subcommand> [args]
|
|
11
9
|
```
|
|
12
10
|
|
|
13
11
|
## Subcommands
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|---------|-------------|-----------------|
|
|
17
|
-
| `ls` | List all paste buffers | `tmux list-buffers` |
|
|
18
|
-
| `show` | Display buffer contents | `tmux show-buffer` |
|
|
19
|
-
| `save` | Save buffer to file | `tmux save-buffer` |
|
|
20
|
-
| `load` | Load buffer from file | `tmux load-buffer` |
|
|
21
|
-
| `set` | Set buffer contents | `tmux set-buffer` |
|
|
22
|
-
| `paste` | Paste buffer into pane | `tmux paste-buffer` |
|
|
23
|
-
| `delete` | Delete a buffer | `tmux delete-buffer` |
|
|
24
|
-
| `choose` | Interactive buffer selection | `tmux choose-buffer` |
|
|
25
|
-
| `clear` | Delete all buffers | (loops through all buffers) |
|
|
26
|
-
| `select` | Select a buffer with fuzzy finder | - |
|
|
27
|
-
| `copy` | Copy buffer contents to clipboard | `pbcopy` |
|
|
13
|
+
### `ls`
|
|
28
14
|
|
|
29
|
-
|
|
15
|
+
List all tmux buffers. Extra args are passed directly to `tmux list-buffers`.
|
|
30
16
|
|
|
31
|
-
|
|
32
|
-
# List all buffers
|
|
33
|
-
h buffer ls
|
|
17
|
+
**Args:** `[tmux_args...]`
|
|
34
18
|
|
|
35
|
-
|
|
36
|
-
h buffer show
|
|
19
|
+
### `show`
|
|
37
20
|
|
|
38
|
-
|
|
39
|
-
h buffer copy
|
|
21
|
+
Print the contents of a buffer (fuzzy-select if no name given).
|
|
40
22
|
|
|
41
|
-
|
|
42
|
-
h buffer save ~/clipboard.txt
|
|
23
|
+
**Args:** `[buffer_name] [tmux_args...]`
|
|
43
24
|
|
|
44
|
-
|
|
45
|
-
h buffer load ~/mytext.txt
|
|
25
|
+
### `copy`
|
|
46
26
|
|
|
47
|
-
|
|
48
|
-
h buffer paste
|
|
27
|
+
Copy a buffer's contents to the macOS clipboard via `pbcopy` (fuzzy-select if no name).
|
|
49
28
|
|
|
50
|
-
|
|
51
|
-
h buffer select
|
|
29
|
+
**Args:** `[buffer_name]`
|
|
52
30
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
31
|
+
### `save`
|
|
32
|
+
|
|
33
|
+
Save a buffer's contents to a file (fuzzy-select buffer if name not given).
|
|
34
|
+
|
|
35
|
+
**Args:** `<path> [buffer_name] [tmux_args...]`
|
|
36
|
+
|
|
37
|
+
### `load`
|
|
38
|
+
|
|
39
|
+
Load a file into the tmux buffer stack.
|
|
40
|
+
|
|
41
|
+
**Args:** `<path> [tmux_args...]`
|
|
42
|
+
|
|
43
|
+
### `set`
|
|
44
|
+
|
|
45
|
+
Set buffer contents; all args passed directly to `tmux set-buffer`.
|
|
46
|
+
|
|
47
|
+
**Args:** `[tmux_args...]`
|
|
48
|
+
|
|
49
|
+
### `paste`
|
|
50
|
+
|
|
51
|
+
Paste a buffer into the current pane.
|
|
52
|
+
|
|
53
|
+
**Args:** `[buffer_name] [tmux_args...]`
|
|
54
|
+
|
|
55
|
+
### `delete`
|
|
56
|
+
|
|
57
|
+
Delete a buffer (fuzzy-select if no name given).
|
|
58
|
+
|
|
59
|
+
**Args:** `[buffer_name]`
|
|
60
|
+
|
|
61
|
+
### `choose`
|
|
62
|
+
|
|
63
|
+
Open the tmux buffer chooser UI.
|
|
64
|
+
|
|
65
|
+
**Args:** `[tmux_args...]`
|
|
66
|
+
|
|
67
|
+
### `clear`
|
|
68
|
+
|
|
69
|
+
Delete all tmux buffers.
|
|
56
70
|
|
|
57
|
-
|
|
71
|
+
### `select`
|
|
58
72
|
|
|
59
|
-
-
|
|
60
|
-
- The `select` and `copy` commands use fuzzy finding (`sk` or `fzf`) when no buffer is specified
|
|
61
|
-
- Use `tmux list-buffers -F '#{buffer_name}: #{buffer_sample}'` for more detailed output
|
|
73
|
+
Fuzzy-select a buffer name and print it.
|