A very simple question: is it possible to search with regex in current file?

A very simple question:
is it possible to search with regex in current file?

or is there a plugin for this

You can always query that regex with the path: option, using the path of your current file, but that’s a bit hacky.

You could also automate this using the Templater plugin to take the regex as an input and build a query block at the end of the file, computing automatically the current file path I guess ?

1 Like

The regex plugins I know of are focused on replacing; the one I have installed doesn’t have a way to just find. You can search appropriate terms in Community Plugins — the list of relevant ones should be short.

The path is awkward but not difficult to find.

I wish there was something like in dataview …

path:this.file.path

Check out GitHub - mrjackphil/obsidian-jump-to-link: Quick jump between links using hotkeys

Activate Obsidian Vim key bindings from Settings → Editor → Advanced, and search with / in Normal Mode?

1 Like