Bug 132031 - EDITING Enhancement Request: When using 'Current Selection Only' in F/R, keep the same selection after each replace operation
Summary: EDITING Enhancement Request: When using 'Current Selection Only' in F/R, keep...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 81442 139886 141296 143500 145691 158425 (view as bug list)
Depends on:
Blocks: Find-Search
  Show dependency treegraph
 
Reported: 2020-04-10 16:58 UTC by Michail Pappas
Modified: 2024-01-06 14:21 UTC (History)
9 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 Michail Pappas 2020-04-10 16:58:44 UTC
I am doing a lot of questionnaire pre-processing in LibreOffice. Some of it involves selecting some *specific* data columns and then doing successive find and replace operations on the exact same select area (an example is at the end of this enhancement request).

If one does a F/R operation on a selected area ('Current Selection Only'), the selected area is subsequently changed to be only those cells that were affected by the operation.

I'd be grateful if you would consider adding an option of some sort in the F/R dialog that becomes active when "Current Selection Only" is selected, that "locks" the selected area to be the same, even after the replace takes place (don't have a good name for that).



===================================
AN EXAMPLE CASE: Some columns contain data like either 'a', or 'b' or 'c' and one has to "rotate" these data in the cells. That is, 'b' cells in the selection stay as they are, whereas 'a' become 'c' and 'c' become 'a'. To accomplish that, I'd be doing a F/R on the selected columns of 'a' to 'x' (a helper dummy), then 'c' to 'a' and finally 'x' to 'c'.
Comment 1 ian 2020-04-25 15:17:32 UTC
Thank you for reporting this request.

I have changed the severity of the bug report to reflect that this is an enhancement.
Comment 2 Heiko Tietze 2020-05-30 08:34:20 UTC
(In reply to Michail Pappas from comment #0)
> AN EXAMPLE CASE: Some columns contain data like either 'a', or 'b' or 'c'
> and one has to "rotate" these data in the cells.

This example is about a swap function, like discussed here https://ask.libreoffice.org/en/question/216078/macro-to-swap-cell-contents/.

I understand "keep the selection" as A1:A10 is selected, you do F&R, and expect A1:A10 still being selected. In fact the selection is changed to what has been modified. It's a very handy function when you just want to find something and also needed in case the replace dialog is not shown. So we would need an option that is off by default. Eike, what do you think?
Comment 3 QA Administrators 2020-11-27 04:41:14 UTC Comment hidden (obsolete)
Comment 4 Michail Pappas 2020-11-27 07:16:01 UTC Comment hidden (obsolete)
Comment 5 Heiko Tietze 2020-12-02 16:30:46 UTC
Me set NEEDINFO for Eike's opinion. Anyway, I agree with the request.
Comment 6 Heiko Tietze 2023-05-30 08:29:22 UTC
*** Bug 145691 has been marked as a duplicate of this bug. ***
Comment 7 Heiko Tietze 2023-05-30 08:30:09 UTC
*** Bug 143500 has been marked as a duplicate of this bug. ***
Comment 8 Heiko Tietze 2023-05-30 08:31:38 UTC
*** Bug 141296 has been marked as a duplicate of this bug. ***
Comment 9 m_a_riosv 2023-11-29 01:30:19 UTC
*** Bug 81442 has been marked as a duplicate of this bug. ***
Comment 10 m_a_riosv 2023-11-29 01:30:58 UTC
*** Bug 139886 has been marked as a duplicate of this bug. ***
Comment 11 m_a_riosv 2023-11-29 01:32:23 UTC
*** Bug 158425 has been marked as a duplicate of this bug. ***
Comment 12 kind.dog6424 2024-01-06 14:21:29 UTC
Another vote to support this option, and another scenario that would make this option an enormous improvement.

In my case in a sheet with 40k+ rows, I am selecting and working on a noncontiguous subset of cells that I want to perform replacements on without affecting the non selected cells. Reselecting this custom selection of cells for every rename operation is arduous to say the least, which is what led me here.

It could be added as an additional setting in the "Other options" section of the F/R window. Maybe "Sticky replacement selection"?

Thanks for your consideration.