Skip to content
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

search panel #43833

Merged
merged 9 commits into from
Feb 22, 2018
Merged

search panel #43833

merged 9 commits into from
Feb 22, 2018

Conversation

isidorn
Copy link
Contributor

@isidorn isidorn commented Feb 16, 2018

Moves search viewlet into panel area.
This is work in progress, created a PR just so people can easily try it out.

After trying out sublime and my prototype I suggest the following:

  • to go into this mode we have a setting (to start), alternative is to enable DnD between viewlet and panel area, but users do not want it for other viewlets and allowing only for search feels weird
  • we move the X action from the right to the left so it is not so disconnected (Open Editors already has it on left)
  • we show 5 full line snippets for each result (like sublime), a snippet can contain multiple hits. - We can start with just showing 1 full line at least. The issue with 5 full ines is how to visually seperate them nicely in a tree

The last point is key to make sense of using all this horizontal space.
An alternative is to do a brand new design when search is horizontal.

fixes #9435

@isidorn isidorn added this to the February 2018 milestone Feb 16, 2018
@isidorn isidorn self-assigned this Feb 16, 2018
@isidorn isidorn changed the title search into panel search panel Feb 16, 2018
@isidorn
Copy link
Contributor Author

isidorn commented Feb 16, 2018

From slack discussions some things to consider:

  • Layouting now to save on vertical not horizontal space, put labels and input fields each on a single line
  • show a lot more of the line in the snippet
  • Show results in the same font / display as the editor
  • Can we with this also tackle the issue of users wanting search results in editor area. I believe yes

@isidorn
Copy link
Contributor Author

isidorn commented Feb 22, 2018

fyi @bpasero feedback very welcome. You can ignore changes inside the search world

@isidorn
Copy link
Contributor Author

isidorn commented Feb 22, 2018

This PR does the following:

  • Removes the assumption from search land that SearchViewlet is a Viewlet, it can now be a panel as well
  • Adds a configuration search.location
  • Adds listeners in PanelPart and ActivityBar on the changes of this configurations, so they add / remove search from their compositeBar
  • Adds an API in compositeBar to add and remove composites

What still needs to be done (probably march milestone):

  • Improve search ux in horizontal case such that the layouting uses the additional horizontal space (we have nice ideas already what to do)

What would be nice to do as debt:

  • Refactor search that searchService has more functionality and not that every action needs to get a hold of the SearchView. Idealy every action would go to the Service and the SearchView would update based on events coming from the Service or the model

fyi @roblourens

@isidorn isidorn merged commit f4cc838 into master Feb 22, 2018
@isidorn isidorn deleted the isidorn/searchPanel branch February 22, 2018 15:31
@bpasero
Copy link
Member

bpasero commented Feb 22, 2018

@isidorn not a big fan of encoding the knowledge of search settings into core workbench parts, imho this should somehow be provided by the composite (search viewlet) and not the activity bar or side bar.

I am fine to leave this for debt week, but it would be good to address this, even if we are not expanding this feature to other parts if possible.

@isidorn
Copy link
Contributor Author

isidorn commented Feb 23, 2018

@bpasero you are right. Will look into fixing that today

@bpasero
Copy link
Member

bpasero commented Feb 23, 2018

@isidorn cool thanks

@isidorn
Copy link
Contributor Author

isidorn commented Mar 5, 2018

@bpasero fyi created #45063 for improving horizontal search in march. I think I captured all your ideas but feel free to chime in

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Search results need more space than the side bar allows
2 participants