Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate column widths in the error panel #1541

Merged
merged 1 commit into from
Feb 1, 2019

Conversation

kaste
Copy link
Contributor

@kaste kaste commented Jan 29, 2019

Current state is that e.g. the linter name column is 12 chars wide etc.

With this patch we compute the max length we need per column and use these values.

@SublimeLinter SublimeLinter deleted a comment from codecov bot Jan 29, 2019
@kaste
Copy link
Contributor Author

kaste commented Jan 29, 2019

Before:

image

After:

image

Before:

image

After:

image

@kaste kaste force-pushed the auto-columns-for-panel-view branch from 819945a to 102e9b8 Compare January 29, 2019 12:20
@codecov
Copy link

codecov bot commented Jan 29, 2019

Codecov Report

Merging #1541 into master will decrease coverage by 0.26%.
The diff coverage is 28.57%.

Impacted Files Coverage Δ
panel_view.py 28.62% <28.57%> (+0.05%) ⬆️
active_linters_view.py 41.17% <0%> (-3.93%) ⬇️
sublime_linter.py 38.69% <0%> (-1.92%) ⬇️
highlight_view.py 25.07% <0%> (ø) ⬆️

@kaste kaste force-pushed the auto-columns-for-panel-view branch from 102e9b8 to 77a193f Compare January 30, 2019 20:08
@kaste kaste force-pushed the auto-columns-for-panel-view branch from 77a193f to d959b2f Compare January 30, 2019 20:09
@SublimeLinter SublimeLinter deleted a comment from codecov bot Jan 30, 2019
@braver
Copy link
Member

braver commented Jan 31, 2019

This is really smart and nice! Awesome. ⛵️ it!

@kaste kaste merged commit caaa24e into master Feb 1, 2019
@kaste kaste deleted the auto-columns-for-panel-view branch February 1, 2019 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants