# Grep Plug: alternate search implementation

**URL:** <https://community.silverbullet.md/t/grep-plug-alternate-search-implementation/709>\
**Category:** Plugs and Libraries\
**Created:** [July 24, 2024, 9:02pm UTC](https://community.silverbullet.md/t/grep-plug-alternate-search-implementation/709 "2024-07-24T21:02:46Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![paletochen](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@paletochen](https://community.silverbullet.md/u/paletochen)\
**Post date:** [November 18, 2024, 8:50am UTC](https://community.silverbullet.md/t/grep-plug-alternate-search-implementation/709/21 "2024-11-18T08:50:47Z")

</div>

> [@nickb](#):
>
> Still not quite sure what the `saveResults` setting does though. What’s a “virtual page”?

A virtual page will disappear, it won’t create a markdown file in your instance.  
Normal search behaves the same way, or when you click on hashtags.

Save, would change that and create a file with the results in your instance

---

<div class="post-metadata">

**Author:** ![CaffeineFueled](https://community.silverbullet.md/user_avatar/community.silverbullet.md/caffeinefueled/32/802_2.png) [@CaffeineFueled](https://community.silverbullet.md/u/CaffeineFueled)\
**Post date:** [January 3, 2025, 6:10pm UTC](https://community.silverbullet.md/t/grep-plug-alternate-search-implementation/709/22 "2025-01-03T18:10:58Z")

</div>

First of all, thanks for this great plugin - I’m fairly new to it, but it’s been a great addition to my Silverbullet instances.

In addition: after the installation I ran into the following **error** after running the `Grep` command in Silverbullet:

`Error running 'git' command, make sure Git is in PATH`

Been running everything with Podman / Docker. SB Version 0.10.1.

**Solution** : initially disabled `SB_SHELL_BACKEND` on all containers as it was not needed and part of the hardening. Removed the configuration as the default is `on` and it worked again.

Just thought it might be helpful in the future.

---

<div class="post-metadata">

**Author:** ![Maarrk](https://community.silverbullet.md/user_avatar/community.silverbullet.md/maarrk/32/56_2.png) [@Maarrk](https://community.silverbullet.md/u/Maarrk)\
**Post date:** [January 4, 2025, 5:42pm UTC](https://community.silverbullet.md/t/grep-plug-alternate-search-implementation/709/23 "2025-01-04T17:42:52Z")

</div>

Thanks for the feedback, I released **2.3.1** with updated notification and README suggesting possible reasons why the command may fail. I tried to detect if it’s just git or all commands failing (see [`command-test`](https://github.com/Maarrk/silverbullet-grep/blob/168117cc8adb4dabbbbdb0d69e79ac2ba901fad7/grep.ts#L283-L303) branch), but couldn’t think of any reliable incantation for PowerShell.

* * *

Let’s see if the “virtual page” is clear now 😅

```yaml
# by default shows results in a virtual page, like the built-in search
# when set to true, the results will be saved to a regular markdown file
saveResults: false

```

---

<div class="post-metadata">

**Author:** ![Maarrk](https://community.silverbullet.md/user_avatar/community.silverbullet.md/maarrk/32/56_2.png) [@Maarrk](https://community.silverbullet.md/u/Maarrk)\
**Post date:** [September 15, 2025, 12:56pm UTC](https://community.silverbullet.md/t/grep-plug-alternate-search-implementation/709/24 "2025-09-15T12:56:53Z")

</div>

Just posted deprecation notice in the repository, consider using @MrMugame’s excellent [Silversearch - Fulltext search for Silverbullet](https://community.silverbullet.md/t/silversearch-fulltext-search-for-silverbullet/2528) instead

[Previous page](https://community.silverbullet.md/t/grep-plug-alternate-search-implementation/709.md?page=1)
