| Summary: | [Search]Add context preview in the search result page. | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Client | Assignee: | libing wang <libingw> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ken_walker, Silenio_Quarti |
| Version: | 0.4 | ||
| Target Milestone: | 0.4 M2 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
libing wang
I think for 0.4 we can add this context view but for the horizontal splitter, I am not sure. We can probably add an action in the tool bar to toggle the context and compare view. bug 369852 opened for the context view toggling. It would be cool if you could use a orion textview (with syntax highlight) the same way it is used to show the tooltips for the comment folding. (In reply to comment #3) > It would be cool if you could use a orion textview (with syntax highlight) the > same way it is used to show the tooltips for the comment folding. Good idea. I was about to ask you about how the pop up overlays was implemented. I never thought about using orion textview in a pop up. Good stuff. Is the whole thing a reusable component? Could you point me where the code is? The code is in "orion/textview/tooltip.js" (line#115), but it is not reusable and it has some TODOs. For example, it relies on the fact that setup.js is setting up the text stylers. fixed with http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=ffd738d76db11babba1c1c8dc1666f4dd532f729. For now it is a simple solution: Wen you iterate on matches, you cab use right arrow key bring up a 5-line code with the middle line highlighted . You can use left arrow key to hide it. Similar to google search. For M2, it is just a handy tool for context preview.I will improve it in RC1. http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=74a5ed78515239ed37ec504da65fcf76dc575cd2 Added another important fix: Remove key listeners on the result page parent div otherwise there will be multiple listeners on one div when hash value changes. Close the context tip popup smartly. Will be looking at putting textView as the context tip contents post M2. |