From: Bernard D. <bde...@us...> - 2020-10-17 17:21:35
|
This is fixed now. Changes committed to the repository ([rev. 1978](https://sourceforge.net/p/alphacocoa/code/1978/)). --- ** [tickets:#237] Adapt the size of the selected region when a search-and-replace reduce it** **Status:** open **Created:** Wed Jul 15, 2020 12:22 PM UTC by Sylvain Loiseau **Last Updated:** Wed Jul 15, 2020 04:11 PM UTC **Owner:** nobody Suppose the following document, with six "\n\n" patterns: x x x z z z And suppose the six first lines (from the first "x" to the line before the first "z") selected. If I run "Search and replace", check "Only in selection", and replace "\n\n" by "\n", I reduce the number of lines in the region. However, the region selected by Alpha keep its previous size, and then now encompass lines with "z". This prevent me from applying a succession of string replacements that can change the region size. Maybe it's possible to have the replacement function track the number of lines added (or removed), and change the region size accordingly? Maybe it's not easy... All the best, Sylvain --- Sent from sourceforge.net because alp...@li... is subscribed to https://sourceforge.net/p/alphacocoa/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/alphacocoa/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |