Worktrunk Bot
Worktrunk Bot
Yeah — the alias is cleaner for discoverability but the shell function is the only way to get the `cd` for free. If a pattern emerges from users doing this,...
Thanks for the suggestion. I searched the codebase to confirm: today `[commit.generation]` is part of `UserConfig` only ([`src/config/user/mod.rs`](https://github.com/max-sixty/worktrunk/blob/8fba3f8f/src/config/user/mod.rs#L311) field `commit`), and `ProjectConfig` doesn't include a `commit` section ([`src/config/project.rs`](https://github.com/max-sixty/worktrunk/blob/8fba3f8f/src/config/project.rs#L158)) — so...
### System config path `wt config show` prints the platform default; the lookup is in [`src/config/user/path.rs#L64-L97`](https://github.com/max-sixty/worktrunk/blob/8fba3f8fd8aa5f4b60b6eb4d48fc730ec3154da3/src/config/user/path.rs#L64-L97). | Platform | Default path | |---|---| | Linux | `/etc/xdg/worktrunk/config.toml` | | macOS...
Thanks for the detailed write-up — this is a usage/design question rather than a bug report, so leaving the substantive call to a maintainer. What I could verify from the...
Thanks for reporting this. The analysis matches the code on `main` at [8fba3f8](https://github.com/max-sixty/worktrunk/commit/8fba3f8fd8aa5f4b60b6eb4d48fc730ec3154da3): - [`handle_removed_worktree_output`](https://github.com/max-sixty/worktrunk/blob/8fba3f8fd8aa5f4b60b6eb4d48fc730ec3154da3/src/output/handlers.rs#L1459) calls `prepare_remove_directory_change`, which writes the `cd` directive. - It then calls [`handle_named_removed_worktree_background`](https://github.com/max-sixty/worktrunk/blob/8fba3f8fd8aa5f4b60b6eb4d48fc730ec3154da3/src/output/handlers.rs#L1425) → `spawn_background_removal` →...
I ran `git worktree remove` in both relevant scenarios on git 2.x. From inside the worktree being removed (`cd /worktree && git worktree remove .`): exit 0, no stdout/stderr output,...
You were right that this isn't unique to `wt remove` — but the ordering of operations matters, and that's what the proposed fix changes. Tested with sdkman installed on Linux...
Yes — same outcome, slightly different timing. | | Trigger of `chpwd` | sdkman result | |---|---|---| | `wt remove` (inside) | wt-injected `cd /main` fires immediately after binary exit...
Thanks for reporting this. I traced the panic to [vendor/skim-tuikit/src/input.rs:143](https://github.com/max-sixty/worktrunk/blob/3c04588ccf3f35b4beb0bb49107070fbe4a96103/vendor/skim-tuikit/src/input.rs#L143) — the input reader thread called `next_char_timeout`, `fetch_bytes` returned successfully, but the byte buffer was still empty, so `string.chars().next().expect(...)` panicked...
Update: the code path this panic came from no longer exists. The panic fired inside the vendored `skim-tuikit` input-reader thread (`vendor/skim-tuikit/src/input.rs`, the `string.chars().next().expect(...)` site). That whole vendored fork was removed...