The user runs a custom Helix build in /Users/david/repos/helix (a jj repo). The stack:
- A merge commit, "merge in search position PR", whose parents are:
search_position(remoteuseche): adds a match counter limitsteel-event-system(remotesteel, mattwparas/helix): Steel scripting, itself based on helix-editor/master
- Their own commits on top of the merge, currently the
auto-reloadbookmark (poll for external file changes and reload buffers).
Remotes: origin is helix-editor/helix, mine is the user's fork (david-crespo/helix), steel is mattwparas, useche is useche.
Steps
- Fetch:
jj git fetch --remote origin --remote steel --remote useche --remote mine(needsgithub.cominallowed_domains). Report what moved, e.g.jj log -r '<old steel tip>..steel-event-system', and check the old tip is still an ancestor (a force-push changes how to rebase). - Push upstream master to the fork:
jj git push --remote mine --bookmark master. If it errors about a non-trackingmaster@mine, runjj bookmark track master@minefirst. - Find the merge commit (
jj logshows it under the user's commits) and rebase it with everything on top:jj rebase --ignore-immutable -s <merge-change-id> -d search_position -d steel-event-system--ignore-immutableis needed because the user's commits are authored under their work email, whichmine()doesn't match, so jj treats them as immutable. Rebasing them is what the user asked for. - If there are conflicts:
jj resolve --tool mergiraf, inspect withjj diff, and confirm with the user before squashing the resolution into the conflicted commit. If mergiraf can't resolve everything, stop and show the user the conflicted files rather than guessing. - Build and install.
steelis not a default feature ofhelix-term, so pass it explicitly or the build has no Steel:
The plain release profile is enough. Thekillall hx; cargo install --path helix-term --locked --features steeloptprofile (fat LTO,target-cpu=native) builds much slower for no noticeable speedup in an editor. Run it in the background with the sandbox disabled (it installs into~/.cargo/bin).killall hxcloses the user's open editors; they expect that. - Verify:
hx --versionshows the new commit hash. Starthxwith no file argument in a hidden Rex session (see thehelix-interactskill) and check the status line shows no Steel error and the custom statusline frominit.scmrenders. Check~/.cache/helix/helix.logfor Steel errors. cargo clean(the target dir is about 1 GiB).- Push the user's bookmark:
jj git push --remote mine --bookmark auto-reload.
jj git push needs the sandbox disabled: the gh credential helper reads ~/.config/gh, which the sandbox denies.
Steel version
The Steel embedded in hx is the steel-core git rev pinned in Cargo.lock on steel-event-system, and --locked keeps it. Getting newer Steel into hx means cargo update -p steel-core, which moves past the rev mattwparas tested and adds a Cargo.lock change to the stack; only do it if asked.
cargo xtask steel does not change the embedded Steel. It installs the standalone steel CLI, steel-language-server, cargo-steel-lib and forge from Steel's git HEAD, runs forge pkg refresh, writes helix/*.scm API stubs into $STEEL_HOME/cogs/helix for the language server, and reinstalls hx. Skip it unless the user asks; it only matters for the steel LSP and CLI.