Find in files -> but narrow to current file with hotkey

I really like the preview that "Find in files" give when searching for something. And I would like to use the same functionality when searching in the current file, which is possible by changing the scope to the current file. But that's very cumbersome, so I wondered if it's possible to bind using the "Find in files" menu and automatically scope it to current file, to a single keybinding?

1 comment
Comment actions Permalink

Recording a macro and assigning a shortcut to it is the only option I can think of....

0

Please sign in to leave a comment.