Git Product home page Git Product logo

contrast's Introduction

Contrast

Contrast is a simple diff viewer for Git.

Installation

Use cargo install contrast-diff-viewer to install the latest version.

Usage

Use the Open button to select the folder in which your git repository is.

Supply a path directly: contrast-diff-viewer <path>

Profiling

The application can be started with a profiler. To enable it, set the environment variable PROFILING to any value.

contrast's People

Contributors

m4tthewde avatar

Stargazers

Juan avatar  avatar

Watchers

 avatar

Forkers

notnotquinn

contrast's Issues

Additional line numbers

Currently only line numbers for additions/deletions are available.
It might be possible to calculate the surrounding line numbers from the existing ones.

Make text copyable

Diff view consists of lables, which don't support highlighting and copying text. (Selectin across different labels would probably not work anyways).

Either rewrite the diffview and use a different component or make a popup view that displays raw text for copying.

Improve CPU usage

Reduce calculations done in ui creation, since it's rendered 60 times per second.

  • indices can be calculated on app_data creation

Remove widget implementations

A lot of the ui is currently divided into widgets. This requires structs to be created. A lot of the current widgets don't need to keep state.
It would be enough to just provide a function that takes the necessary arguments.

Automatic refresh

I want to be able to run Contrast permanently, and then either refresh manually or automatically refresh the diff.

Line numbers

I want to be able to see line numbers inside the diff

Syntax highlighting

Code syntax highlighting, indicate insertions/deletions by background color and origin character.

Update yanked dependency version

warning: package ahash v0.8.3 in Cargo.lock is yanked in registry crates-io, consider updating to a version that is not yanked

Improve git log performance

All commits are displayed at once.
Larger repositories become unresponsive, do samae behaviour as for code,
lazy loading

Diff parsing

Current behaviour

The diff is returned as a primitive string.

Wanted behaviour

The diff should be returned as a proper data structure to enable more complex features.

CLI argument to open folder

opens the current folder, same as if I selected Open and found the current folder.

contrast-diff-viewer .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.