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

Show context #110

Open
danielo515 opened this issue Mar 1, 2023 · 12 comments · May be fixed by #210
Open

Show context #110

danielo515 opened this issue Mar 1, 2023 · 12 comments · May be fixed by #210
Labels

Comments

@danielo515
Copy link

Hello.
I think it will be lovely if spectre could show some context in the search results. A lot of times I want to have a panel where I can easily see, for example, all function calls with some name, and it often span across multiple lines. Having the option to set some context up or down grep style will be awesome.

Thanks for this extension by the way

@stale
Copy link

stale bot commented Apr 30, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Apr 30, 2023
@danielo515
Copy link
Author

This is not stalled, just not worked on

@stale stale bot removed the wontfix This will not be worked on label Apr 30, 2023
@EpsilonKu
Copy link
Member

Do u mean to have preview result? I think better to make float preview.

@danielo515
Copy link
Author

No, I mean the same thing as grep -C. I mean lines of context above and or below. So if you set the context to 1 you will see something like

Line before
Matching line
Like after

@stale
Copy link

stale bot commented Jul 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Jul 16, 2023
@danielo515
Copy link
Author

danielo515 commented Jul 17, 2023 via email

@stale stale bot removed the wontfix This will not be worked on label Jul 17, 2023
@EpsilonKu
Copy link
Member

Yeah, I have free time will do.

@EpsilonKu EpsilonKu pinned this issue Aug 17, 2023
@EpsilonKu EpsilonKu unpinned this issue Aug 17, 2023
@EpsilonKu
Copy link
Member

@danielo515 It's seems hard than I thought. Need to rewrite a lot of render code. I guess better to make pop-up. What do you think about it?

@danielo515
Copy link
Author

danielo515 commented Aug 20, 2023 via email

@EpsilonKu
Copy link
Member

@danielo515 it will show pop-up context when you hover on line. Will try to make it automatically. Or it will be with keybinding.

@danielo515
Copy link
Author

danielo515 commented Aug 20, 2023 via email

@00sapo
Copy link

00sapo commented Jan 12, 2024

IMHO, a popup would be both simple and effective. Opening the file in another buffer for further modification is already possible...

@EpsilonKu EpsilonKu linked a pull request Mar 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants