Use 'Search current file' in Preview mode [IMPLEMENTED]

What would distinguish “global search operator for the active note” from Search current file? I would have assumed “global” meant searching everywhere, but what did you mean?

If by “global” you mean it should work both in Edit or Preview mode, or any future modes that might exist, I agree.

I mean using the Search in all files global search pane. Using global search would offer using the new advanced search syntax whereas Search current file is just a basic fuzzy search I believe.

So an example might be: active-note:("this thing" OR "that thing")

1 Like
  1. If I am not mistaken we already have that option with the hotkey Search in all files.
  2. That does not address the issue I raised in the feature request.

Maybe I misunderstand your point, @sam.baron, and if I do please set me right.

Ah yes, I see what you mean. That could be especially powerful, searching in all active panes, for example.

But yes, this does sound like a completely different feature, worth another thread. This thread is simply about the fact that Search current file does not work in Preview Mode.

I came here to make this exact feature request and found this thread at the top. Yes, please! When I am reading, reviewing, and using my notes they are always in preview mode because they look nice that way! :slight_smile: And this is when I need search the most! The only time I am in edit mode is when I am… editing!

Thank you!

5 Likes

Absolutely, this is a different request :+1:t3:

@rigmarole Thank you for your help! Actually, feeling a bit embarrassed here. I do understand the Ctrl OR Cmd function but for some reason I must have experienced a brain freeze. Now, after reading your comment I have found the in-document search function. Thank you!

And I also confirmed that using Ctrl + Cmd + F will take you to full screen viewing.

Now I wonder when/if this search function will evolve into a find and replace feature!

@dlordmills It exists already. Cmd-H or the command pallete “Search & replace in current file”.

You can also do it with command mode : if you use Vim Mode. %s/searchPattern/replacePattern/g

Yes, I often try to find something in a note and wonder why [ctrl] + [f] doesn’t work. Oh yeah, change to edit mode, find (or find+replace), change back to preview mode and hopefully I find the thing I was looking for.

I’m really hoping for a “Find in current preview” function :smile:

I am unable to find a keyword in preview mode. I have to go to editor mode and search for it.

8 Likes

when in preview mode, I’d also like Ctrl+F to be able to launch a search, it only works in edit mode as far as I can tell. (I’m on v0.8.0)

And by the way congratulations to the dev team. You’re the only KB on the market that doesn’t lag. (only trying the desktop version for now)

5 Likes

+1.
Not having this feature feels like an oversight.

2 Likes

If you have this, then it would also be possible to go to a specific search hit in preview mode from global search (which is something that already works perfectly in edit mode).

2 Likes

Searching in the preview mode will be very convenient.

I’ve been wanting for this as well.

+1 for this feature please. I agree that switching back to Edit mode just to use the Search current file function takes extra time, especially if working with multiple panes.

I second this, tis is a really important feature!!

+1 support for this new feature:
searching text in the preview mode.

Available in 0.9.7