Git Product home page Git Product logo

Comments (11)

strawlink avatar strawlink commented on August 12, 2024 6

+1 for being able to hide certain elements.

You can customize the margin and colors in a sublime theme to alleviate the issue. Go to your packages folder and update the theme file (not sure if the file exists by default, mine is located at AppData\Roaming\Sublime Merge\Packages\User\Merge Dark.sublime-theme on Windows).

{
    "variables":
    {
        "author_label": "rgb(70, 70, 70)",
        "time_label": "rgb(80, 80, 80)",
    },
    "rules":
    [
        {
            "class": "author_label",
            "fg": "var(author_label)"
        },
        {
            "class": "time_label",
            "fg": "var(time_label)"
        },
        {
            "class": "commit_summary_control",
            "content_margin" : [2,1,0,1]
        }
    ]
}

image

Full theme documentation is available here.

You could add a negative margin and get it to one-line that way, but unfortunately it also hides the annotations.

{
    "class": "commit_summary_control",
    "content_margin" : [2,0,0,-16]
},

image

from sublime_merge.

chrisjbillington avatar chrisjbillington commented on August 12, 2024 1

Yes! This and the density of the diffs (#624, #386) are the biggest pain points for me. There is a lot going on in even medium sized projects, and so being able to see more at once is important. Date and commit author being (optionally) hidden unless there is enough horizontal space for them, but shown on a tooltip, would be ideal. I can see literally twice as many commits in tortoisehg:

(this is a simple mostly linear example but our project is yet to convert our more collaborative branchy repos to git - it will be much more important for them!)

image

from sublime_merge.

Herteby avatar Herteby commented on August 12, 2024

Besides compactness, it also makes it faster to read.

If the view is wide enough, the author/date could be displayed on the right, and they could also be show as a tooltip on hover.

from sublime_merge.

tomngo avatar tomngo commented on August 12, 2024

Adding my support for this. Showing more commits by reducing vertical space would produce quantum leaps in benefit. Spotting patterns synoptically is everything.

from sublime_merge.

pzac avatar pzac commented on August 12, 2024

This is the biggest problem I have with SM. GitX commit graph was/is far more efficient and easier on the eyes.

from sublime_merge.

CrazyTim avatar CrazyTim commented on August 12, 2024

Let me say it's currently not bad, but it would be better if we could configure it to be more compact if required. For example, hiding certain elements such as Committer, or Date.

Some might like it displayed as a table with columns (see #567), but I haven't had a pressing need for that yet.

from sublime_merge.

pzac avatar pzac commented on August 12, 2024

If you're on a mac you need to add that file to ~/Library/Application Support/Sublime Merge/Packages/User.
If you use the light theme the file name should be Merge.sublime-theme

from sublime_merge.

chrisjbillington avatar chrisjbillington commented on August 12, 2024

Thanks so much @strawlink, I can see ~50% more commits now!

image

This is with the following (font face and colours obviously to taste, but shrinking the annotations was important to increasing the density since they determine the space between the commit message and author/time lines of each row):

{
    "variables":
    {
        "author_label": "rgb(120, 120, 120)",
        "time_label": "rgb(120, 120, 120)",
        "commit_list_bg": "rgb(15, 15, 15)",
        "side_bar_container_bg": "rgb(20, 20, 20)"
    },
    "rules":
    [
        {
            "class": "commit_summary_control",
            "layer0.tint": "rgb(30, 30, 30)"
        },
        {
            "class": "message_label",
            "font.face": "Ubuntu",
            "fg": "white",
            "font.size": 13,
        },
        {
            "class": "author_label",
            "fg": "var(author_label)",
            "font.size": 11,
            "font.face": "Ubuntu"
        },
        {
            "class": "time_label",
            "fg": "var(time_label)",
            "font.size": 11,
            "font.face": "Ubuntu"
        },
        {
            "class": "commit_summary_control",
            "content_margin" : [2,3,0,0],
        },
        {
            "class": "tag_annotation",
            "font.size": 11,
            "font.face": "Ubuntu"
        },
        {
            "class": "branch_annotation",
            "font.size": 11,
            "font.face": "Ubuntu"
        },
        {
            "class": "remote_annotation",
            "font.size": 11,
            "font.face": "Ubuntu"
        },
        {
            "class": "head_annotation",
            "font.size": 11,
            "font.face": "Ubuntu"
        },
        {
            "class": "stash_annotation",
            "font.size": 11,
            "font.face": "Ubuntu"
        },
        {
            "class": "file_annotation",
            "font.size": 11,
            "font.face": "Ubuntu",
            "fg": "rgb(255,255,0)"
        }

    ]
}

from sublime_merge.

kaala avatar kaala commented on August 12, 2024

I need a one line layout for commit graph
Is the theme solution only available after buy licenses? seems not work

from sublime_merge.

dspasicevs avatar dspasicevs commented on August 12, 2024

Bump. It would be great if there was toggle setting - which will show comits in one-line fashion. or drop-down in preferences with scale presets from which the user can quickly choose: 25% 50% 75% of normal size

from sublime_merge.

Adarma avatar Adarma commented on August 12, 2024

Just saw the new preference commit_graph_author_date added in Build 2077.
Was hoping it would close this, but unfortunately it is unrelated 😢

from sublime_merge.

Related Issues (20)

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.