Skip to content

Conversation

@eth-p
Copy link
Collaborator

@eth-p eth-p commented May 25, 2019

My solution to my own issue, #569.

Reasoning

When specifying multiple line ranges with --line-range=... --line-range=..., the printed lines tend to blend together and make it difficult to determine the scope of each range.

Example which makes parts of three functions look as though they're a single function:

image

Implementation

The "snip" separator is implemented as another style component much like header and grid. I chose to include it in the full style by default, since doing otherwise would no longer make it "full".

When not using the full style, it can be added as snip.

Preview

image

@sharkdp
Copy link
Owner

sharkdp commented Jul 24, 2019

I'm sorry. I completely forgot about this PR. This looks really cool and I would like to merge this, but I didn't have time to look into the changes in detail.

@eth-p
Copy link
Collaborator Author

eth-p commented Jul 24, 2019

No worries! Take your time, the PR isn't going to disappear anywhere.

@sharkdp
Copy link
Owner

sharkdp commented Aug 31, 2019

(rebased to fix the merge conflicts)

I finally had a closer look at this. This is awesome 👍

@sharkdp sharkdp merged commit f3824ba into sharkdp:master Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants