https://bugs.documentfoundation.org/show_bug.cgi?id=173296

            Bug ID: 173296
           Summary: Implement reverse non-dialog searching: implement
                    .uno:RepeatReverseSearch
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Description:
This is a feature request to implement uno command .uno:RepeatReverseSearch for
reverse non-dialog searching that does the exact opposite of .uno:RepeatSearch.

Please take a look at UNO dispatch commands:

UNO dispatch commands:
https://wiki.documentfoundation.org/Development/DispatchCommands

This line is for repeating previous search:
.uno:RepeatSearch       Repeat Search   Edit    Quiet (bool)   
FN_REPEAT_SEARCH (20150)        AMT

It repeats the search, and if the search is already in backward direction, the
repeat will be also for backwards. Here the request is to do the exact
opposite.

Quoting from Justin L in bug 47122 comment 9:
-----------------
"This bug report is about doing a find WITHOUT being in the find toolbar or in
the dialog - just being in the document itself.

As *** bug 142219 notes, Ctrl+G is a repeat of the last search. So if the last
search was backwards, it will do another find previous.

Ultimately this report is asking for another shortcut that:
-reverses the search direction
-does the FN_REPEAT_SEARCH
-reverses the search direction again

That would allows the same keyboard shortcut to continue searching in the
reverse direction. So perhaps FN_REPEAT_REVERSE_SEARCH

It shouldn't be too hard to do, but certainly it is not worth wasting a
precious predefined keyboard shortcut - given that the direction it goes cannot
be known.

As a code pointer, just git grep -20 FN_REPEAT_SEARCH and duplicate it for a
FN_REPEAT_REVERSE_SEARCH. It just needs to reverse s_pSrchItem->GetBackward()."
-----------------

Please note that the goal is to implement the UNO command, and not adding a
shortcut, at this point.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to