Bug 113485 - Find and Replace dialog: "current selection only" option should be enabled by default if a part of the text is marked
Summary: Find and Replace dialog: "current selection only" option should be enabled by...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0 all versions
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Find&Replace-Dialog
  Show dependency treegraph
 
Reported: 2017-10-27 16:54 UTC by Christian Lehmann
Modified: 2024-01-04 18:09 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Lehmann 2017-10-27 16:54:13 UTC
Description:
If I select (mark) some stretch of text in the document and then call 'Find and replace' (CTRL-ALT f), I still need to click 'Further options' and 'Only in selection'. Could Writer please do this for me?

Steps to Reproduce:
1. Select/mark some paragraph of your text.
2. CTRL-ALT f.


Actual Results:  
No reaction.

Expected Results:
'Further options' should be opened, and 'Only in selection' should be marked.


Reproducible: Always


User Profile Reset: No



Additional Info:
If the user did not mean it (this could only be by error), he can always unmark the cell 'Only in selection' before starting the operation.

This has been a desideratum since earlier versions, and still is in the current version.


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0
Comment 1 Dieter 2017-10-28 07:40:00 UTC
I confirm the described behaviour => set to NEW.

But I'd like to propose that if the enhancement is done like Christian proposes, the "current selection only" option is placed beneath "whole words only". So an unexperienced user can see, that "the current selection only" option is enabled by default.
Comment 2 Christian Lehmann 2019-06-07 08:47:11 UTC
Close to two years later, I checked with LO 6.2.4.2 whether anything has been done about the above. It appears that, instead of implementing the enhancement proposed, a deterioration has been implemented:

- Select (mark) a stretch of text, e.g. a paragraph, in a document.
- Call 'Find & Replace'.
- The entire string that you had marked appears inserted in the 'Find' field.
- The checkbox 'Current selection only' is unchecked.

I find this to be a step back. The user can always copy and paste a string of text into the 'Find' field if he feels like it. However, he is not going to search for an entire paragraph of text or even more. Thus, this new functionality only obstructs my work.
Comment 3 Christian Lehmann 2020-10-09 14:15:42 UTC
In LO 7, nothing has been done about the above, neither concerning the initial request for enhancement nor the more recent bug. It would be just a small amendment ...
Comment 4 Safeer Pasha 2021-03-01 07:20:42 UTC
here is my opinion:

if part a text is selected and "ctrl + H" is pressed. that selection is automatically transferred to the "Find" box. which in my opinion is more preferable than what you are suggesting.
 
Version: 7.1.0.3 / LibreOffice Community
Build ID: 10(Build:3)
CPU threads: 4; OS: Linux 5.10; UI render: default; VCL: kf5
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 5 m_a_riosv 2022-03-18 12:45:34 UTC
*** Bug 148062 has been marked as a duplicate of this bug. ***
Comment 6 Toby Bartels 2022-03-18 13:02:26 UTC
Bug 148062 is not a duplicate of this one.  That one is about the find-and-replace dialog (Ctrl-H), while this one is about quick find (Ctrl-F).  This one asks for Ctrl-F to behave (at least in Writer) more like how Ctrl-H already behaves (at least in Calc), and that one is about how Ctrl-H forgets when you set the option to make it behave more like Ctrl-F.  The two requests are, if anything, closer to opposites than duplicates.
Comment 7 RJ Grady 2024-01-04 18:09:14 UTC
This bug is still present in 7.6.4.1. That is, after each find and replace, Current selection only becomes unchecked. This requires the user to repeatedly recheck the box to continue making further selections and using Find and Replace.

This is cumbersome when performing an operation such as removing extraneous paragraph breaks from long texts, while preserving proper paragraph breaks.