← Back to Pull requests

Avoid centering editor in editor #1014

Merged
t9md merged 1 files (12 lines) on Jan 08, 2018 06:54 UTC
View on GitHub
t9md t9md commented on Jan 08, 2018 06:48 UTC
Author

Red highlighted part is text-editor embedded into normal text-editor.
Package [git-diff-details][1] or [inline-git-diff][2](my fork of git-diff-details) embed another text-editor into normal text-editor by using block decoration.

[1]: https://github.com/samu/git-diff-details/
[2]: https://github.com/t9md/atom-inline-git-diff/

Previously when maximizing pane by vim-mode-plus:maximize-pane(cmd-enter), this editor-in-editor was centered again.
This PR avoid this unwanted centering.

  • before

  • <img width="1164" alt="before" src="https://user-images.githubusercontent.com/155205/34661043-39eaa58c-f48a-11e7-9837-fda92a5ac631.png">

  • after

  • <img width="1130" alt="after" src="https://user-images.githubusercontent.com/155205/34661032-2e1df7b8-f48a-11e7-95e7-f02c554fc1f4.png">

    Diff: 12 lines (+11 / -1) across 1 files Reviewer: None requested Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.40) × (1 − Review Confidence (0.38)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 12 lines diff across 1 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 10%
    37%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.153
    No Reviewer Assigned no_reviewer_assigned
    0.120
    Rapid Merge rapid_merge
    0.100
    Real PR Conversation Timeline
    1 item
    "Review active on #1014"
    general weight: 0.35
    Reviewers
    None requested
    Assignees
    t9md t9md
    Labels
    risk: low confidence: 38.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 40.3% (MEDIUM) · Higher = larger blast radius
    40.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 38.0% · Lower = rushed or shallow review
    38.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 25% · Safe to merge
    25%