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

docs: add recipe for searching and replacing in mini.files #269

Merged
merged 4 commits into from
Sep 20, 2024

Conversation

Frestein
Copy link
Contributor

This PR addresses issue #257 by adding an integration recipe for using grug-far.nvim with mini.files.

Implemented a recipe that allows users to easily search within the current directory using grug-far while navigating files with mini.files. Fixed a couple of minor issues in the original recipe provided in the issue.

@@ -412,6 +412,52 @@ return {
```
</details>

<details>
<summary>MiniFiles explorer lazy plugin setup</summary>
Copy link
Owner

Choose a reason for hiding this comment

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

looks good!
Could you do me a favor though and change the heading of this whole section from
#### Add nvim-tree integration to open search limited to focused directory or file
to something that makes sense 😄 .
ex:

#### Add nvim-tree, oil, mini-files integration to open search limited to focused directory or file

Or ideally, we split it up into 3.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we choose the second option and split the integrations into three sections, do you think it's necessary to add the description of each integration, like this?

#### Add nvim-tree integration to open search limited to focused directory or file

Create a hotkey `z` in `nvim-tree` that will create/open a named instance of grug-far with the current directory of the file or directory in focus. On the second trigger, path of the grug-far instance will be updated, leaving other fields intact.

...

#### Add oil.nvim integration to open search limited to focused directory

Create a hotkey `gs` in `oil.nvim` that will create/open a named instance of grug-far with the current directory in focus. On the second trigger, path of the grug-far instance will be updated, leaving other fields intact.

...

#### Add mini.files integration to open search limited to focused directory

Create a hotkey `gs` in `mini.files` that will create/open an instance of grug-far with the current directory in focus. On the second trigger, the path of the grug-far instance will be updated, leaving other fields intact.

...

Copy link
Owner

Choose a reason for hiding this comment

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

yes, that would be for the best as there are minute differences! (the hotkey)

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.

looks good! Thank you for updating all those! 😄

@MagicDuck MagicDuck merged commit 308e357 into MagicDuck:main Sep 20, 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