jjui icon indicating copy to clipboard operation
jjui copied to clipboard

WIP: `/` search navigation and ace jump in rebase/squash/etc

Open baggiiiie opened this issue 4 weeks ago • 2 comments

What are you planning to implement?

Here are two features that I have been using lately and enjoying a lot in my local jjui build:

NOTE:

  • implementation are not finalized, just putting it out here to see if these are features people want
  • im, at the same time, getting some mileage on them to see if there's any bugs

Proposed Approach

Briefly describe your planned feature approach:

search navigation

  • search navigation (n/N), n for jumping forward and N backward
  • highlighting on matched terms

ace jump

User workflow:

  1. Press 'r' to enter rebase mode (or 'S' for squash mode)
  2. Press 'f' to activate ace jump while staying in rebase/squash mode
  3. Type matching keys to jump to a revision
  4. After jump completes, return to rebase/squash mode
  5. Use existing rebase/squash keys to complete the operation

Testing Strategy

How do you plan to test this implementation?

  • Unit tests needed
  • Manual testing approach

Breaking Changes

Would this implementation introduce any breaking changes? If so, describe them and any migration strategy.

  • No breaking changes

Questions for Discussion

  • any ideas/suggestions/feedback are welcome!

Additional Context

Add any other context, mockups, or references that would help reviewers understand your proposal.

search with highlighting and navigation

any text on the screen is search-able!

Image

rebase/squash with ace jump

asciicast

baggiiiie avatar Nov 27 '25 14:11 baggiiiie

search navigation (n/N), n for jumping forward and N backward

There's already ' for jumping to the next match, is your implementation going to different from what it does?

idursun avatar Nov 29 '25 11:11 idursun

@idursun what n is doing is basically ' (i.e., n could be a replacement for '), thought it's more conventional to have n/N since it follows vim's default (and N allows going backwards)

baggiiiie avatar Nov 29 '25 15:11 baggiiiie