Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338061 - Search > Text > in Scope doesn't support multi-line selections
Summary: Search > Text > in Scope doesn't support multi-line selections
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Search (show other bugs)
Version: 3.6.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Search-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 26780
Blocks:
  Show dependency tree
 
Reported: 2011-02-24 05:26 EST by Martin Oberhuber CLA
Modified: 2020-01-03 07:52 EST (History)
16 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Oberhuber CLA 2011-02-24 05:26:21 EST
+++ This bug was initially created as a clone of Bug #26780 +++

The Eclipse Search > Text > in Scope functionality starts a search for the active selection (eg Ctrl+Alt+G for "Search in Workspace"). Btu when the selection spans multiple lines, only the first line is searched. This is very unintuitive.

As a Workaround, the following works in Eclipse 3.6.1:

  1. Search > File... , enable the "Regular Expression" checkbox, cancel
  2. In an editor, make a multi-line selection
  3. Press Ctrl+H, Search
  --> Multi-line selection is searched (and may be replaced).

This proves that the multi-line search functionality is available in the Platform/Search framework. I cannot think of any logical reason why the same functionality shouldn't also be available for the immediate "Search Selection" action (Ctrl+Alt+G and related).

CQ:WIND00254322
Comment 1 Dani Megert CLA 2011-02-24 08:02:01 EST
I quickly looked into this: while it is pretty clear and simple how to fix it in 'RetrieverAction', the solution is a bit more time consuming because the currently used methods from 'TextSearchQueryProvider' can no longer be used and need to replaced with the variant that takes a 'TextSearchInput'. 

Martin, let me know how important this is for you and whether you might have resources at your hand that could do this. I might have time during 3.7 but I can't guarantee it.
Comment 2 Dani Megert CLA 2011-08-22 09:09:01 EDT
Ping.
Comment 3 Lars Vogel CLA 2019-11-27 07:39:02 EST
This bug hasn't had any activity in quite some time. Maybe the problem got
resolved, was a duplicate of something else, or became less pressing for some
reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it.
The information can be, for example, that the problem still occurs, that you
still want the feature, that more information is needed, or that the bug is
(for whatever reason) no longer relevant.

If the bug is still relevant, please remove the stalebug whiteboard tag.
Comment 4 Dani Megert CLA 2020-01-03 07:52:40 EST
No plans to work on this. If someone wants to fix this, please reopen.