Hello matabelle,

That kind of search and replace is different than what I understood from 
your description. First of all, you search and replace within a single 
file. Additionally you see the changes on the fly, not in a new file. If 
you were talking about a search and replace in the same tiddler yes, it 
will be more easy. Would you like to support single search and replace text 
or even regular expressions? 

I think this can be fairly easy. Maybe it will be more difficult while 
editing but.. it's possible.

Anyway, if you want to try it out, this feature is already available in the 
codemirror plugin with any key map, for example vim.

El domingo, 1 de junio de 2014 19:55:37 UTC+2, Matabele escribió:
>
> Hi Danielo
>
> OK - sounds like search and replace is more difficult than I thought. I 
> often search and replace on the .tid file of a widget in my node.js 
> versions to change the name of a variable or attribute -- much more 
> reliable than searching the code manually, and thought this facility would 
> be convenient to have within TW.
>
> regards
>
> On Sunday, June 1, 2014 6:31:45 PM UTC+2, Danielo Rodríguez wrote:
>>
>>
>>
>> El domingo, 1 de junio de 2014 16:58:27 UTC+2, Matabele escribió:
>>>
>>> Hi Danielo
>>>
>>> Great plugin. I'm a little confused, though, by the necessity for the 
>>> three attributes: 'length' 'before' and 'after' (when 'before' and 'after' 
>>> are set to 'length'.) Why not drop the 'length' attribute and set default 
>>> values for 'before' and 'after'?
>>>
>>>
>> Hello Matabelle. I like having the tree possibilities. You can specify 
>> after and before, just before and length, after and length or just length. 
>> Supose you want to specify the length of both, after and before, with the 
>> current schema you can specify length and your'e done. Take length as a 
>> shortcut to after and before in a single variable.
>>  
>>
>>> Would it be possible to clone and modify this widget to do a search and 
>>> replace on the text field of the targeted tiddler? You already have the 
>>> code to find a text term -- instead of reading either side, replace the 
>>> term with another text term then save the updated tiddler. This widget 
>>> could then be used to do a search and replace on a list of tiddlers 
>>> filtered with a <$list> widget. 
>>>
>>
>>
>>
>> Yes it will be possible of course, but I think it will be better to write 
>> a widget from scratch for that specific purpose. This has beed developed 
>> just for search preview with highlight. Replacing words in a 
>> programmatically way it's risky and you have to take in account more things.
>> In the other one, having new tiddlers with those words replaced does not 
>> sound very useful since you have to review all of them. People would want 
>> to search and replace in the current tiddler with a preview of what is 
>> happening. I have a couple of ideas for that but again, requires more time.
>>
>> Regards.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to