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

Allow configuring context around folded code #110

Open
epage opened this issue Mar 21, 2024 · 2 comments
Open

Allow configuring context around folded code #110

epage opened this issue Mar 21, 2024 · 2 comments
Labels
C-enhancement Category: enhancement

Comments

@epage
Copy link
Contributor

epage commented Mar 21, 2024

#109 fixed an inconsistency in how we folded code before and after all of the annotations.

Callers would likely want to control how much context is shown around each annotation.

@epage epage added the C-enhancement Category: enhancement label Mar 21, 2024
@epage epage changed the title Allow configuring context around folded code Allow configuring context around folded code Mar 21, 2024
@chengr4
Copy link

chengr4 commented Aug 15, 2024

Hi @epage,

I’m also working on addressing this ticket and would appreciate your guidance again lol.


My imagination is to create a new function eg show_context(num: u8) which works when snippet.fold == false for Snippet.

ps. in the function, counting Max context line for each annotation is needed.

@epage
Copy link
Contributor Author

epage commented Aug 15, 2024

It'd likely be best for us to hold off on an issue like this until we have people who specifically need it so we can gather requirements rather than trying to guess what users need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants