N
N
nikolaimed2020-12-24 11:15:51
Google Chrome
nikolaimed, 2020-12-24 11:15:51

Search from browser in windows explorer?

That is, conditionally selected the text in the browser, opened the context menu and selected the item "search in Windows Explorer"? Has anyone seen any extensions? Or knows other ways?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
H
Hemul GM, 2020-12-24
@HemulGM

Yes, I know another way. Win + E -> paste in search box -> Enter

G
GrayHorse, 2020-12-24
@GrayHorse

Most likely, there are no ready-made solutions. But the task is trivial.
You just need to write a simple web server that will be run locally, and, receiving an ordinary HTTP request from the extension, perform a search in the file system and return the response to the extension.
Well, do not forget to add the secret key as an additional parameter when sending a request, because in fact you can make a request to the localhost from any site, i.e. restrict access to the web server, allowing it only to this extension, which also needs to be written.
---
Fixed and browser-friendly QWERTYUIOPas answer:

function searchInFileExplorer(search, location) {
    window.open(`search-ms:displayname=${search}&crumb=System.Generic.String:${search}&crumb=location:${location}`);
}
searchInFileExplorer("Search Text", "C:\\Users\\");

Actually, with this approach, you can write a simple user script, whose task is to get the selected text and run this function.
True, this only works with Latin1 encoding. (only English characters)
And it doesn't work with environment variables either:
"C:%HOMEPATH%\\Downloads"("\\" because escaping)

Q
QWERTYUIOPas, 2020-12-24
@QWERTYUIOPas

Go to URL:

search-ms:displayname=Title&crumb=System.Generic.String%3SHTO_ISKAT&crumb=location:C%3A%5C

Via cmd:
explorer "search-ms:displayname=Title&crumb=System.Generic.String%3SHTO_ISKAT&crumb=location:C%3A%5C"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question