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

feat: add previewLocation actions #239

Merged
merged 2 commits into from
Sep 5, 2024
Merged

feat: add previewLocation actions #239

merged 2 commits into from
Sep 5, 2024

Conversation

leisiji
Copy link
Contributor

@leisiji leisiji commented Sep 3, 2024

Add new feature: previewing location in a floating window.
2024-09-03_09-29

Copy link
Owner

@MagicDuck MagicDuck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leisiji Thanks for your contribution! 😄 Looks good apart from some minor things. Also, please add a test for this action.
See: https://github.com/MagicDuck/grug-far.nvim/blob/main/CONTRIBUTING.md#testing
and example for goto action here:

T['can goto given location'] = function()

edit: also please add a note about it to the README, maybe around here: https://github.com/MagicDuck/grug-far.nvim/blob/main/README.md#going-to--opening-result-location

lua/grug-far/actions/previewLocation.lua Outdated Show resolved Hide resolved
lua/grug-far/opts.lua Show resolved Hide resolved
@leisiji
Copy link
Contributor Author

leisiji commented Sep 5, 2024

I have fixed the above and added a test for previewLocation action.

tests/base/test_preview.lua Outdated Show resolved Hide resolved
lua/grug-far/actions/previewLocation.lua Outdated Show resolved Hide resolved
lua/grug-far/opts.lua Outdated Show resolved Hide resolved
@leisiji
Copy link
Contributor Author

leisiji commented Sep 5, 2024

All have been fixed.

@MagicDuck
Copy link
Owner

perfect, thank you! Looks good! 😄

@MagicDuck MagicDuck merged commit 876ba28 into MagicDuck:main Sep 5, 2024
5 checks passed
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