joshmu / periscope

Ripgrep powered peek search in VSCode 🫧
https://marketplace.visualstudio.com/items?itemName=joshmu.periscope
Other
14 stars 5 forks source link

feat: Add periscope.searchWithSelection command #60

Closed fiddler closed 2 months ago

fiddler commented 2 months ago

This PR adds another command, "periscope.searchWithSelection," that uses the current selection to perform the search immediately.

PS. Thanks for the extensions, it's quite handy! :)

joshmu commented 2 months ago

Hey @fiddler

Awesome to hear you are liking the extension :)

Your PR may be a duplicate of a feature that I have already built in to the extension.

Currently when any text is highlighted and you invoke periscope:search the highlighted text will be injected in as the initial query.

Let me know if this is what you were looking for? I probably missed putting this in the documentation

fiddler commented 2 months ago

Woops, you're right! Did not notice it works like that already. 👍 Very nice.