Repository navigation
Should next/prev session skip sessions hidden by a folded repo group? #2419
maciej-lech
started this conversation in
Ideas
Replies: 1 comment 1 reply
|
Good catch, and fair question. That was a call made along the way, not one I'd defend now. The cycle keys should go where the rail shows. A folded group is the person saying "not these right now", so If you'd like to take it, a PR is very welcome. The comment from #1299 can go with it. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi! I noticed that
next_session/prev_session(alt+shift+n/alt+shift+p, prefix)/() still step through worktree sessions after their repo group is folded in the rail. This happens both when the main checkout's session is the group row and when the group is a header with no main session.For example, with
plainplus a foldedrepogroup holdingf/oneandf/two, the rail shows onlyplainandrepo ▸, but repeatednext_sessiongoesrepo-f-one,repo-f-two,plain, ... The experience is a little odd: the cycle lands on sessions the rail no longer shows, and the rail cursor (j/k) skips them.Commit c711ef6 (#1299) says folded sessions stay in the order "so a cycle key still reaches them", so this looks intentional. Was that the preferred behaviour, or something an agent decided along the way?
Thanks!
All reactions