I'm still getting 'no text selected' for Search --> Replace. Upon selecting text and executing Replace I am no longer receiving the error but it is still deleting the selected text.
Upon further investigation I now understand why this is. I completely missed (and misunderstood) that when you press Ctrl + F and type in your search string you need to press *Tab* to then execute set-replace-string command which in this context does no actual replacing but finds and highlights the next instance of the find string. I then have to execute replace in order to actually replace the selected text. Executing replace-all does not have any effect (I would expect it to execute replace on all the instances of the search string with my set replace string). I can sometimes get all instances to be replaced if I re-execute set-replace-string manually from the minibuffer but the context in which this is successful is not clear to me. If 'replace-all' replaced the set search/replace pair then this would be useful. On Monday, June 22, 2015 at 3:44:29 PM UTC-4, john lunzer wrote: > > awesome, I'll check it out. > > On Monday, June 22, 2015 at 2:06:50 PM UTC-4, Edward K. Ream wrote: >> >> >> >> On Saturday, June 20, 2015 at 12:58:28 PM UTC-5, john lunzer wrote: >>> >>> I'm getting weirdness when trying to use minibuffer replace, first if >>> nothing is selected it tells me "no text selected", if I have text selected >>> sometimes it just deletes the selected text and sometimes I see this: >>> >>> exception executing command >>> >> >> [snip] >> >> File "...leo\core\leoFind.py", line 1194, in changeSelection >> >> c.frame.tree.drawIcon(p) # redraw only the icon. >> >> [snip] >> >> >> Nice catch. Fixed at rev c7e62c2. >> >> >> The fix was to have changeSelection init p = self.p or c.p, which will >> surely solve the specific problem. The logic that sets self.p is hairy, so >> it's best not to mess with it ;-) >> >> >> A later rev changes c.p.copy() to c.p throughout. c.p is a property >> which always returns a fresh copy of a position. >> >> >> EKR >> > -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
