Skip to content

[Feature] Sticky headers #35

@quark-zju

Description

@quark-zju

Just log the idea while I encounter it (again). When running git log -p I sometimes find the change I want and wanted to get back to the commit hash. It would be nice to have some sort of "sticky header" so it looks like:

commit deadbeef (sticky header level 1)
diff --git a/filename... (sticky header level 2)
(scroll-able text)

I don't know how to express it exactly. Potentially we can use some kind of ANSI sequences to define "header 1", "header 2" etc that are otherwise no-ops? I'm no expert on ANSI sequences. But if we define it here, I'm interested in implementing it except others beat me on it.

EDIT: Probably should try the new "discussions" GitHub feature for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions