Helix save cursor position workaround
27. 6. 2026Script that we call from helix and it stores the current line (hxsaveline):
https://raw.githubusercontent.com/brontosaurusrex/bucentaur/refs/heads/master/.experiments/bin/hxsaveline
Entry in your config.toml that binds ctrl+w to save current line via hxsaveline script (under [keys.normal]):
"C-w" = ":sh hxsaveline %{buffer_name} %{cursor_line}"
Wrapper that will read the stored line and open helix (hxw):
https://raw.githubusercontent.com/brontosaurusrex/bucentaur/refs/heads/master/.experiments/bin/hxw
so you open your file as
hxw yourfile
and it should open with cursor on stored line.
How about just reading and displaying stored line inside helix, this script (hxloadline):
https://raw.githubusercontent.com/brontosaurusrex/bucentaur/refs/heads/master/.experiments/bin/hxloadline
and in your config.toml (under [keys.normal])
"C-g" = ":sh hxloadline %{buffer_name}"
will just print stored line number and do nothing else, but one can 18gg.
This is experimental workaround that will not work in all conditions and ‘should’ really be a core editor feature imho.