Skip to content

objdiff-cli diff: Wishlist #47

Open
@ribbanya

Description

@ribbanya

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

  • --make (requires some restructuring of config structs like BuildConfig)
  • --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)
  • 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.
  • Toggle relaxed relocations with a hotkey

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions