Skip to content

Helix jump list - #46467

Merged
kubkon merged 3 commits into
zed-industries:mainfrom
prayanshchh:helix_jumplist
Apr 24, 2026
Merged

Helix jump list#46467
kubkon merged 3 commits into
zed-industries:mainfrom
prayanshchh:helix_jumplist

Conversation

@prayanshchh

Copy link
Copy Markdown
Contributor

Closes #41580

This implements Helix's jump list, Zed already supports jumplists, so all that is done is re-binding ctrl-s to to that instead. In another PR we can extend this by adding space+j functionility to see all selections in jumplist.

after this change:
Pressing Ctrl+S saves the current cursor position to the jumplist, allowing the user to navigate back to this position using Ctrl+O (backward) and Ctrl+I (forward), consistent with regular Helix's behavior.

Release Notes:

  • N/A or Added/Fixed/Improved ...

@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Jan 9, 2026
@prayanshchh

Copy link
Copy Markdown
Contributor Author

any updates on this?

@jasonwilliams

jasonwilliams commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

What's the difference between your PR and this? #44661
Looks like there's overlap, but the other one is adding more functionality, what functionality is missing from what you've added here?

@prayanshchh

Copy link
Copy Markdown
Contributor Author

Your reference points to a Tailwind CSS format issue (not a PR). This PR tries to introduce a jump list in Zed in Helix mode.

I am sorry I am not able to understand how this is an overlap with your reference.

@jasonwilliams

Copy link
Copy Markdown
Contributor

Sorry @prayanshchh i missed off a "1" from that, i meant this issue: #44661

@prayanshchh

Copy link
Copy Markdown
Contributor Author

np, I think both PR's essentially achieve the same goal..I had a look at that PR before starting my implementation, it seemed a bit unnecessary as zed already supports jump lists, it made more sense to reuse that.

also that PR became inactive hence I created this one

@ShaiKKO

ShaiKKO commented Jan 30, 2026

Copy link
Copy Markdown

@prayanshchh

The point was to make jump-lists operate 1:1 for helix, not use zeds jump list.

Zeds does not operate anything like helix primarily as it still only stores a single cursor position, among many other differences you can see in the comments

#44661

@prayanshchh

Copy link
Copy Markdown
Contributor Author

cool! I didn't knew about this, thanks for the info!..lots to learn from ur PR.

@jmevel

jmevel commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

What's blocking this PR from being merged? Could we merge it please?

@prayanshchh

Copy link
Copy Markdown
Contributor Author

lmk if any suggestions on this

@kubkon kubkon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! I cleaned up actions a tad - there was no need for an explicit unit struct. Anyhow, this PR seems like a great first step for navigation list support in helix mode in Zed.

@kubkon
kubkon enabled auto-merge April 24, 2026 06:07
@kubkon
kubkon added this pull request to the merge queue Apr 24, 2026
Merged via the queue into zed-industries:main with commit 485181a Apr 24, 2026
31 checks passed
@jmevel

jmevel commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Wanted to try this new feature today and was confused it wasn't included in the latest release even though the commit was created on main a few hours before the v0.233.10 bump was made.

Turns out, main contains many more commits than the release branches.
Commits are actually little by little cherry-picked.

I have no idea how are those commits prioritized but would love to see this one soon.

kathbigra pushed a commit to kathbigra/zed that referenced this pull request May 10, 2026
Closes zed-industries#41580

This implements Helix's jump list, Zed already supports jumplists, so
all that is done is re-binding ctrl-s to to that instead. In another PR
we can extend this by adding space+j functionility to see all selections
in jumplist.

after this change:
Pressing Ctrl+S saves the current cursor position to the jumplist,
allowing the user to navigate back to this position using Ctrl+O
(backward) and Ctrl+I (forward), consistent with regular Helix's
behavior.

Release Notes:

- N/A *or* Added/Fixed/Improved ...

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
@jasonwilliams

Copy link
Copy Markdown
Contributor

This doesn't fully match Helix's implementation right? @kubkon I've noticed this doesn't take into account selections, it just jumps back to the end of the word, where as Helix shows the selections when going back/forth on the jump list.

I'm just clarifying if this is intentional or not

jonx pushed a commit to jonx/zed-aros that referenced this pull request Jul 17, 2026
Closes zed-industries#41580

This implements Helix's jump list, Zed already supports jumplists, so
all that is done is re-binding ctrl-s to to that instead. In another PR
we can extend this by adding space+j functionility to see all selections
in jumplist.

after this change:
Pressing Ctrl+S saves the current cursor position to the jumplist,
allowing the user to navigate back to this position using Ctrl+O
(backward) and Ctrl+I (forward), consistent with regular Helix's
behavior.

Release Notes:

- N/A *or* Added/Fixed/Improved ...

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
jolutz pushed a commit to jolutz/zed that referenced this pull request Aug 8, 2026
Closes zed-industries#41580

This implements Helix's jump list, Zed already supports jumplists, so
all that is done is re-binding ctrl-s to to that instead. In another PR
we can extend this by adding space+j functionility to see all selections
in jumplist.

after this change:
Pressing Ctrl+S saves the current cursor position to the jumplist,
allowing the user to navigate back to this position using Ctrl+O
(backward) and Ctrl+I (forward), consistent with regular Helix's
behavior.

Release Notes:

- N/A *or* Added/Fixed/Improved ...

---------

Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In helix mode, on zed, Ctrl-s saves the file instead of saving selection to a jumplist as it should

6 participants