jjui icon indicating copy to clipboard operation
jjui copied to clipboard

FR: search for and highlight matching revset patterns

Open jefft opened this issue 4 months ago • 1 comments

Is your feature request related to a problem? Please describe.

Jujutsu and jjui are awesome, as are revsets, but it's hard for newcomers to visualize what a particular revset means in a particular tree.

For example, I maintain a set of patches (bookmarked push-*) on top of an open source project, in the pattern described in Steve's Jujutsu Tutorial:

Image

This is all beautiful, until upstream merges some of my patches:

Image

I now need to rebase push-* branches onto the new upstream (master@tom), but only those that aren't already merged.

After a lot of thought, I figure out a revset expression that identifies unmerged branches: [email protected]_bookmarks(glob:"push-*"):

Image

and I wrangle that into a rebase expression: jj rebase -s 'all:roots([email protected]_bookmarks(glob:"push-*"))' -d master@tom

Describe the solution you'd like

It would be amazing if jjui allowed one to search for a revset, like [email protected]_bookmarks(glob:"push-*"), and highlighted matched commits, e.g. here in a different colour:

Image

Describe alternatives you've considered

I don't know any other "visualize this revset in this tree" utility.

Why current features fail to cover this request

While -L can limit revsets shown, it doesn't let one visualize a revset's matches within a tree.

jefft avatar Aug 19 '25 02:08 jefft

Hey, thanks for the detailed explanation.

This is an interesting feature request. I cannot guarantee anything, but I will play with the idea to see if it is even feasible to do.

idursun avatar Aug 21 '25 10:08 idursun