Skip to content

Sliding window api #98

@peso

Description

@peso

I'm working on integrating git-graph into gitui. One of the issues I'm trying to deal with is that git-graph wants to load the full repository. This conflicts with gitui's goal to be always responsive. Gitui has a crate asyncgit to allow gradual loading of commits while the user is using the application.

My current workaround is to limit the number of commits to those visible and reload when the user scrolls. This does not have a good performance.

It would be nice if git-graph could have an api that allowed a small range of commits in memory, a window that could be moved back and forth across the repository. In other words, the possibility to gradually add more commits to either end of the window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions