objdiff icon indicating copy to clipboard operation
objdiff copied to clipboard

objdiff-cli diff: Wishlist

Open ribbanya opened this issue 1 year ago • 0 comments

Some things I think are missing from the diff workflow. Mostly here for discussion and so I don't forget to implement them. Can be broken up into separate issues as necessary (feel free to edit this post).

asm-differ flags

  • [x] --make (requires some restructuring of config structs like BuildConfig)
  • [x] --watch
  • [ ] --width
  • [ ] --threeway=prev
  • [ ] --threeway=base
  • [ ] --diff_mode=single
  • [ ] --compress-matching
  • [ ] --no-pager
  • [ ] --format {color,plain,json} (not sure about HTML)

Pager features

  • [ ] Center the view on the first change at startup
  • [ ] Navigate between changes with ] and [
  • [ ] Vim-like search (/ or ? to enter a string, Enter to confirm, n and b to navigate results)
  • [x] Something to go to the top or bottom of the entire diff. In Vim this is G and gg but I'm not sure if we want multi-character keystrokes.

UI

  • [ ] Help page with scroll and search features, maybe h to activate?
  • [ ] Show number of changes in a status bar somewhere ("1 of 5"). When the view changes, update to the first change in the view (from top to bottom).
  • [ ] Show delta in percentage since the last change (red "▼x.xx%" or green "▲x.xx%")
  • [ ] Show difference in bytes (raw bytes or as KB, not sure). asm-differ shows score from max_score down to 0 but I don't find that very useful personally.
  • [x] Toggle relaxed relocations with a hotkey
    • #50

ribbanya avatar Mar 01 '24 05:03 ribbanya