Repository navigation
What's coming in jjui v0.11 #781
Replies: 5 comments 10 replies
|
Wow! That's a huge overhaul! I can see how this would ultimately be better than what we have.
However, this gives me considerable concern, because I very much like the various panes. You then showed how we would do similar things - for example, How would we do something like:
|
|
This looks great! A couple of things that popped up:
Again, awesome work on the best |
|
This looks really awesome! One reflection on my personal use of jjui is that I like to see everything at once (usually with A possible solution to this may be to have a (purely optional) mode where filtered views like the bookmarks view do not actually hide the otherwise visible revisions, but simply grey them out and make them not focusable. Of course, if bookmarked revisions were not visible before, they'd need to be made visible, and far back bookmarks may be off-screen. However, keyboard navigation would skip over inactive revisions, so it would still be easy to navigate. This would reduce the disorientation experienced by constantly changing the visible revset, which some users (like myself) may value. One other comment about the removal of menus and panels is the reduced opportunity to explain in detail what operations do. For example, in the old remotes panel, commands have helpful descriptions like Before I forget to mention, though, I use jjui every day and am a huge fan - thanks for putting so much care into the design! |
|
Hi, thank you so much for jjui. I use it every day, all day (both for work and hobby projects). I switched to this branch today, and muscle memory is adapting. The structure is quite logical, and so far I like this even more than regular One thing I can't find is a "copy [thing] at point". E.g. I go to the commit ID with If the whole revision is selected ( |
|
This way of editing/navigating is very cool. Clicking on the "wrong" part of a commit switches from displaying the commit message + diff to just the commit message or it expands the file list. Thanks for making this tool! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is merged to main now.
Hey folks! I wanted to share what the v0.11 of
jjuiis going to look like.Until now, every action in the log worked on a whole revision. To act on a bookmark, a tag or a workspace, you opened a menu or a separate pane and picked it from a list, even though it was already on screen in the log.
v0.11 lets the cursor move inside a revision and land on anything jjui draws: bookmarks, tags, workspaces, authors, descriptions, conflicts, divergent copies and the
~ (elided revisions)marker. You point at the thing you mean, and the keys, the preview, the diff and the revset all follow it. If you know vim's text objects, it is the same idea.That one idea replaces the git menu, the bookmarks menu and the bookmark pane, so the release removes more code than it adds while adding features that were not possible before. jjui also no longer injects its own log template: whatever you see in
jj logis what you see in jjui.Pointing at things
h/lwalk across the parts of the selected revision, and0goes back to the revision itself.iand a letter jumps straight to a kind, like vim'sf{char}:ibfor a bookmark,iafor the author,idfor the description. You can also just click on it.Once something is focused, its kind sticks. Move up and down and the focus stays on bookmarks; press
J/Kand you jump to the next revision that has one. Before, there was no way to go from one bookmarked revision to the next, or from one commit by an author to their next.Everything follows the focus
The keys change with what you point at, and they run the jj command you would otherwise type yourself:
Gon a change id pushes it,ron an author resets it,eon a description edits it. The same letters mean the same thing across kinds:xremoves the focused thing,rrenames or resets it, andsshows or switches to it.The preview changes too; before, it could only show the revision. Now a revision shows its diff, a bookmark shows everything its branch changed, a description shows the full message, a conflict lists the conflicted files and a remote shows its bookmarks and whether they are in sync.
And
*narrows the log to the focused thing: an author's commits, a bookmark's branch, the history of a tag or a workspace, the conflicted or divergent changes. Before,*only worked on a file in details. It does this by writing the revset for you, so you can see it and keep editing it. Each*builds on the last, so*on an author and then*on a bookmark givesauthor(exact:"grace@example.com") & fork_point(trunk() | docs)..docs: that author's commits on that branch.Bookmarks
bopens the new bookmarks view, which replaces the bookmarks menu and the bookmark pane. It is not a separate list: it sets the revset tobookmarks() | remote_bookmarks(), so the log shows every revision with a bookmark on it.tabnarrows it to one remote (remote_bookmarks(remote=exact:"origin")) and/filters by name, so you can do everything the old menu and pane did, the jj way, with the revset in plain sight.It is still the revisions view, with the cursor already on the bookmark. Everything you can do with a bookmark works from there: rename it in place, move it, advance it, track or untrack it, push it, fetch just that bookmark, or delete or forget it. When a move goes backwards or sideways, the target says so.
What is new is
d: it opens the diff of the whole branch since it forked, which you can then review in the annotation view.Remotes (replaces the git menu)
The git menu was a list of
jj gitcommands for whatever was selected: push this bookmark, push this change, fetch from that remote. Now each of those lives on the thing it acts on.Gon a bookmark pushes it andFfetches it, from the log or from the bookmarks view.Gon a change id pushes the change. What is left acts on a whole remote, and that goes on the remotes line.gputs the cursor on the remotes line of the bookmarks view, and each remote becomes something you can point at like any other object. Move between remotes and the revset follows (remote_bookmarks(remote=exact:"origin")), while the preview shows that remote's bookmarks and whether they are in sync. From there you fetch, push, push only tracked bookmarks, push deleted bookmarks, rename or remove the focused remote.Workspaces, divergent changes, conflicts and elided revisions
~ (elided revisions)and*widens the revset to bring the hidden revisions into the log.Checking several at once
spacechecks whatever is focused, not just the revision, and moves on to the next one of the same kind. A key then acts on all checked objects. Before, only revisions could be checked in the log, so resetting the author on a handful of commits meant doing them one by one. Checked objects are highlighted in place instead of with a checkmark.These changes are in
mainnow.All reactions