Search and replace function for all JCB custom code #952

Closed
opened 2022-08-26 17:17:38 +00:00 by Llewellyn · 2 comments
Owner

IDEA

  • We would like to add a search and replace feature, that allows for searching all custom code across the JCB GUI and shows the results found and then allows for easy selection and replace wherever the search string was found.
  • This should work simmilar to normal IDE search replace features.
  • Should be alble to use Regex kind of search replacement.
  • Select a Extention to narrow the search must be possible.

Application

  • We will build a custom admin view

Request For Comment (RFC)

  • Any who feel they want to help with the task, is welcome to contribute code and any other kind of support they are at libirty to share.
### IDEA * We would like to add a search and replace feature, that allows for searching all custom code across the JCB GUI and shows the results found and then allows for easy selection and replace wherever the search string was found. * This should work simmilar to normal IDE search replace features. * Should be alble to use **Regex** kind of search replacement. * Select a Extention to narrow the search must be possible. ### Application * We will build a custom admin view ### Request For Comment (RFC) * Any who feel they want to help with the task, is welcome to contribute code and any other kind of support they are at libirty to share.
Llewellyn added this to the Major improvement to core (speedup production) milestone 2022-08-26 17:17:38 +00:00
Llewellyn self-assigned this 2022-08-26 17:17:38 +00:00
Llewellyn added this to the Feature Requests project 2022-08-26 17:17:38 +00:00
Author
Owner

Please note that we will not support multiple line search at the outset of this feature, maybe later... but not initially.

Only one liner search and/or replace will be supported.

Please note that we will not support multiple line search at the outset of this feature, maybe later... but not initially. Only one liner search and/or replace will be supported.
Author
Owner

To get the marker values:

Start

SearchFactory::_('Config')->marker_start;

End

SearchFactory::_('Config')->marker_end;

The SearchFactory class is loaded in the search view with at the top of the page:

use VDM\Joomla\Componentbuilder\Search\Factory as SearchFactory;

These markers make the start and end of a searched string inside the returned array result from a find call.

To get the marker values: Start ``` SearchFactory::_('Config')->marker_start; ``` End ``` SearchFactory::_('Config')->marker_end; ``` The `SearchFactory` class is loaded in the search view with at the [top of the page](https://git.vdm.dev/joomla/Component-Builder/src/branch/staging/admin/views/search/tmpl/default.php#L19): ``` use VDM\Joomla\Componentbuilder\Search\Factory as SearchFactory; ``` These markers make the start and end of a searched string inside the returned array result from a [find](https://git.vdm.dev/joomla/Component-Builder/src/branch/staging/admin/views/search/tmpl/default.php#L57) call.
Sign in to join this conversation.
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#952
No description provided.