Hi,
I’d like to propose the following enhancement to Wappler’s search and replace capability, the one that is invoked clicking on the magnifying glass on the left vertical menu, under Theme management.
-
Provide a clearly labelled button to Undo the last replacement command
-
Brownie points: Provide the capability of selecting which previous replacement command to undo.
-
Allow for the following:
Step 1: Search - Allows to select a pattern to search for. For many of us, a simple string with matching case would be OK for the majority of the cases. For those who know how to use it, allow specifying the string using regex. Allow selecting “match case” and a button to click.
Step 2: Select - Present the results of the search in a manner that allows the developer to
- Select file(s) as as the target of the replacement command
- Unselect a selected file(s)
- Select all the files
- Unselect all the files
Step 3: Once there is at least one file selected, offer an input for the “replace with” string and a button to fire the “replace” action.
Step 4. Once the “Replace” button is clicked, prompt an “This action will make rrr replacements in fff files. Are you sure?” and show two buttons: Proceed and Cancel.
I think that there would be no further need for the field to enter the File/directory pattern but I’ll leave it up to you to keep it or discard it.
Hope this helps. Many thanks in advance,
Alex
Last updated: