joshmu / periscope

Ripgrep powered peek search in VSCode 🫧
Other
14 stars 5 forks source link

Folder expansion #52

Open Nikolaevmar opened 2 months ago

Nikolaevmar commented 2 months ago

Hello, thank you for the great extension.

Is it possible to prevent the folder expansion that happens on each item that you go through in the search, and only expand a folder when you click enter for a specific file?

joshmu commented 2 months ago

Hey @Nikolaevmar

Could you provide me more context on your request? I'm unclear what you mean by "folder expansion" I'm also unclear on what you mean by "click" as the extension is pretty much keyboard driven.

Happy to hear you enjoy the extension :)

Nikolaevmar commented 2 months ago

Hey, sorry for the poor explanation, by "click" I meant hitting enter when you want to go to the file that you chose from the search.

Regarding the folder expansion, whenever I search for something and I start going through the files, each iteration expands the folder of the file I'm currently looking at. For an example if I iterate through 200 files, each files' folder will get expanded in the file tree of VSCode.

Hope this makes more sense.

joshmu commented 1 month ago

Hey @Nikolaevmar Wasn't able to find any workaround for this via the extension.

This is currently determined by your vscode settings

image

I'll leave this issue open, if vscode provide an api for it in the future then I can update the extension to support it.