# Feature thought: Search within the current flow

**URL:** <https://discourse.nodered.org/t/feature-thought-search-within-the-current-flow/17387>\
**Category:** Feature Requests\
**Created:** [31 October 2019 20:08 UTC](https://discourse.nodered.org/t/feature-thought-search-within-the-current-flow/17387 "2019-10-31T20:08:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![btsimonh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/btsimonh/32/3318_2.png) [@btsimonh](https://discourse.nodered.org/u/btsimonh)\
**Post date:** [31 October 2019 20:08 UTC](https://discourse.nodered.org/t/feature-thought-search-within-the-current-flow/17387/1 "2019-10-31T20:08:32Z")

</div>

If i'm barking up the wrong tree, then advise..

Strikes me that i have a lot of flows which contain the same text.  
Searching (crtl-f) searches in all flows.

Is there a way to search in the current flow only?  
If not, it's probably not difficult to implement?

s

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [31 October 2019 22:56 UTC](https://discourse.nodered.org/t/feature-thought-search-within-the-current-flow/17387/2 "2019-10-31T22:56:31Z")

</div>

be our guest - PR always welcome.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [1 November 2019 00:03 UTC](https://discourse.nodered.org/t/feature-thought-search-within-the-current-flow/17387/3 "2019-11-01T00:03:15Z")

</div>

> [@btsimonh](#):
>
> Is there a way to search in the current flow only?  
> If not, it's probably not difficult to implement?

There isn't a way to do it currently. It would not be hard to filter the results to the current view, it's just a question of designing how the user does that filtering.

I'll add an item to the backlog for this and you've reminded me we had another suggestion around the search results the other day that I forgot to follow up on....

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 November 2019 01:35 UTC](https://discourse.nodered.org/t/feature-thought-search-within-the-current-flow/17387/4 "2019-11-01T01:35:39Z")

</div>

Hi Nick, I'm certain you already know all of this but on the of chance you were looking for ideas then ...

Maybe something like a keyword in the search text e.g. `@thisflow` or `@scope:this`. Similar to how vscode handles search filters...

![extension-search-filters](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/a/ae8957c0bdb1c1762de2c2f018e588a6e110e3f9.png)

These could also be available via the pallete to quickly populate the search field and can also be hooked up to shortcuts

---

<div class="post-metadata">

**Author:** ![btsimonh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/btsimonh/32/3318_2.png) [@btsimonh](https://discourse.nodered.org/u/btsimonh)\
**Post date:** [1 November 2019 06:04 UTC](https://discourse.nodered.org/t/feature-thought-search-within-the-current-flow/17387/5 "2019-11-01T06:04:56Z")

</div>

As a keyboard shortcut, Ctrl-Shift-F may suit.  
I quite like the @xxx: prefixing for different search types - maybe Ctrl-Shift-F could just bring up the search dialog with @flow: already there....  
s

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [1 November 2019 08:32 UTC](https://discourse.nodered.org/t/feature-thought-search-within-the-current-flow/17387/6 "2019-11-01T08:32:39Z")

</div>

The search bar already has the concept of filters, which you can see in action when you click the 'list flows' button:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/e5cbcaa980a7462cacb9bfb651f5c0bd4e29986d.png)

So yes, the raw method will be to add another filter to the available syntax.

But the question is how to help the user discover that syntax. A keyboard-shortcut makes sense, but still isn't discoverable. The UI will need some sort of option to help the user set the filters without having to type them all out - and the filters could potentially be more than just 'in this flow'.

It's on the backlog now, so we'll look at it in due course.
