-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display search results in a tab instead of the side bar #23931
Comments
I prefer the functionality of VS Code over sublimes implementation. I don't use sublime much, so maybe this is configurable; however, these are the limitations.
A wider display however could be useful. For example displaying in bottom panel instead of side panel. |
I know this has had some discussion before but can't find the issue right now. I've been toying with the idea of a button to dump the results from the viewlet into a sublime-style editor view, which would solve a few problems at once. Not sure how great that experience would be. |
@roblourens I can imagine lots of people have different ideas of how the contents of the dump should look. Would it be difficult to provide an API so that we could write extensions to do something with the results? |
Those are all valid points @dakaraphi :) My only reasoning for this was the wider display to show the results. Currently it's cumbersome to go through the results (especially when there are many of them) because the sidebar, as a component, is narrow by default. |
@rfgamaral Thanks for clarifying. In this case, you might be interested following this item #2806 |
I would love to have the search results shown on the bottom tabs where there's also "terminal" "output" and so on. is it possible? |
IMO, all three options would be nice to have; in the sidebar, as a tab/buffer or in the console area. |
Is this feature supported yet? |
Isn't duplicated of #9435? |
+1 I really love the way Sublime displays the search results so you get a the overview without opening each file. I'll switch to VS Code once it has this. |
I recently moved to VSCode. As a sublime user, while I feel at home, but Search UX is just not very good. I would love to see search results in wider bottom panel, which I can expand to full tab whenever I wish. |
A huge 👍 to this issue. As a long time Sublime Text user, this is the deal breaker functionality. I often find myself resizing the search pane back and forth. Also lack of context in the VSCode search is another big thing. It makes very hard to find what you are looking for if you search something common in the codebase. Assume that you are new to the codebase, this is real pain in the ass. Another fun fact is, Sublime or Atom version of displaying search results also allows you to search in the search results which is really handy. Hope this feature lands in the VSCode sooner than later. |
likewise, I prefer to have more horizontal space to view search results 🙏 |
Drop the search icon from the sidebar and just follow Atom's search UI. |
This. Another thing that is very important. I hope whenever the search's re-layout work done, this |
I'm so glad I'm not the only one. I'd really like to switch to vs code, as Atom is getting way too slow. But when I first tried to search in files and saw how the results were cramped inside the SIDE bar, I didn't know how fast to switch back after discovering that my only option was to make the sidebar wider manually, which also made it wider for the file explorer. If vs code could copy a thing or two from Atom's UX it'd be a great editor, this is one of those things. |
Display search results in a tab instead of the side bar please, like Sublime text |
This is the one reason I have yet to switch to vscode. I've tried to make the switch multiple times but I need to see more context about the search results without having to continuously resize the LHS panel. Would be very greatful if this was user configurable at some point in the future. |
At the very least, the sidebar with search results should expand. I find myself resizing it to view the results, then resizing it back down. |
After using VSCode for a week, this is the only thing which is pulling me back to sublime. Really the search should be improved. |
The VSCode search panel really need to be improved. It can't config the position and result displaying is too narrow. |
Not being able to view search results and the explorer at the same time drives me crazy. |
Extension for making changes in a search editor and applying those changes to the workspace at large. Helpful for multicursor-enhanced refactoring across many files: Edit: note this currently has some issues when working with large lines. |
I'm really liking how this is coming along 👏 A few refinements I'd love to have:
|
@lucascosti thanks for the feedback, please file separate issues for feature requests so the community can vote on them, as per our specification for handling feature requests. |
Is there a way to open files from search editor not in the current editor group, but in the previously active one? I want to be able to see list of search results + edit files at the same time. |
@dmi-dmi-dmi does |
Hi! First, thank you for this feature! I now have totally abandoned Sublime Text now! Second. For some reason Thanks! |
@cafesanu first, are you on Insiders or Stable? Search editors have been heavily polished this iteration. Note that the action is not "Select All Occurrences of Find Match" but rather "selectAllSearchEditorMatches". This is because in the search editor you may still have a local in-editor find open that you want to select all occurrences of. |
@JacksonKearl Nice. Yeah I am in Stable. I do see it in Insiders via the shortcut. Will use it! Any way to see it in |
I can't seem to get the search to appear in a tab when right clicking a folder in the sidebar and selecting Find in Folder. I have enableSearchEditorPreview enabled. It seems to take the setting into account only when I start a new blank search. I have enableSearchEditorPreview enabled, am I missing another setting somewhere? |
@cpascu I have not yet made a setting to prefer the editor for the “find in folder” context menu action. If you submit a new issue I will look into it. |
Can I set hotkeys on |
@igolskyi I'm not sure what you mean. You can configure keybindings using the Keybindings Editor |
@JacksonKearl Yes, I want to configure keybinding for command "goToLocation" but I don't know how does it (command by double click) names. |
@igolskyi the command run on double click will either be 'editor.action.goToDeclaration' or 'editor.action.openDeclarationToTheSide' depending on |
@JacksonKearl yes it's |
I almost get this feature set up perfectly but I am unable to figure out how to always reuse the search tab I don't need new one for every search I make any ideas? Btw this keybindings greatly improved my search experience. You open search editor with whatever shortcut you have it mapped to, start typing your search query press
|
Is there any way to default the original search to this? or a shortcut to bring it up the search editor? looks like we can only do it via the command pallet |
@andyd0 You can assign a keyboard shortcut for the You can also assign it to Ctrl + Shift + F, then remove the default shortcut on |
No way to do this currently. If you open a feature request for this I will look into adding it.
F4 and Shift+F4 already do this for both search editors and the search viewlet, just btw.
Neat. |
Can |
@dwelle It uses the existing |
@JacksonKearl Great work! Thank you! |
Is it only me or did this feature break the My steps are same as before:
I must go through every file in the list of occurrences and apply the changes with the "Replace all" next to the file name. Do you have the same issue? |
@PJUllrich yes; that’s tracked in #92443 and fixed in Insiders. |
I got this new feature today with an update. But search results in a separate tab?. I mean, in a recent update from the vscode there was an option to shift the search result anywhere you like. I've moved mine right next to the terminal. This is quite handy than the search result in a separate tab. In fact, with the search results at the bottom, it's very much similar to the IntelliJ. Check it out here: https://code.visualstudio.com/updates/v1_42#_moving-views-from-the-sidebar-to-the-panel |
I was talking to a colleague the other day and the only reason he's not using VS Code is because of how the search is implemented in VS Code and I have to agree with his opinion.
Both Sublime Text (which I'm used to) and Atom (the editor my colleague is using) feature a search tab. A search tab displays the results much more clearly given that there's much more space available to display them. Instead, VS Code displays them in a "small" side bar.
Yes, we can resize back and forth the side bar, but that's a bit annoying. It would be nice to have the search results displayed in a new tab similar to Sublime Text and Atom.
The text was updated successfully, but these errors were encountered: