[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread Mohammad
Tony! Thank you for proposal. Using Tiddlywiki template and variable substitution makes it very flexible. I will add this solution to TW-Scripts. --Mohammad On Sunday, February 24, 2019 at 5:06:02 AM UTC+3:30, TonyM wrote: > > Mohammad, > > As is commonly the case, especially in TiddlyWiki,

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread Mohammad
This is also great! but I will need to customize it. Yes, this way I can check the change before applying the replace! --Mohammad On Sunday, February 24, 2019 at 12:25:08 AM UTC+3:30, BurningTreeC wrote: > > ... with help by the diff-text widget you see what has changed: > > <$wikify

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread Mohammad
Yep, that is correct. Mohammad On Sunday, February 24, 2019 at 12:09:10 AM UTC+3:30, BurningTreeC wrote: > > Hi Mario, >>> I got your point. Thank you. So, that is why my code breaks in doing >>> that. >>> >>> See below macro >>> >>> \define snr(source, searchValue, replaceValue) >>>

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread Mohammad
Hello BTC, Your solution is really amazing and you did the magic. I was working for a week with no success. Yes, I did some test on tiddlywiki.com and it works like a charm. I am trying to use it in Commander for heavy batch operation, and I will back to you with results. Thanks a million!

[tw5] Re: The Muuri StoryView is back

2019-02-23 Thread TonyM
BTC Thanks So much, I realised after replying the field basis. It is still a little foggy on exact detail but I get the functionality and options. I wonder if your same story approach could be applied to your design idea http://selectiondashboard.tiddlyspot.com/ I say this because this would

[tw5] Re: So I want to make ...

2019-02-23 Thread TonyM
S S, I empathise with your position. One of my personal advances has being building a feature called context, for each tiddler. Containing Domain, Project, Client fields. I found a new tiddler drop down can now generate new items "in context" by populating the current context fields.Some gains

[tw5] Re: So I want to make ...

2019-02-23 Thread S. S.
This post came about after reading an interesting recent (July 2018) blog post from an ex-google programmer : Why not add an option for that? It had a link to xkcd but not to the little "How Long" chart I posted

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread TonyM
Mohammad, As is commonly the case, especially in TiddlyWiki, it is important to return to why we are asking to do something. It is actually very common for people to think search and replaces is the answer when another solution may be more valid. In part because a *manual search and replace*

[tw5] Re: So I want to make ...

2019-02-23 Thread TonyM
Thomas, I think you are right, when you place such developments in a community it changes a lot, here is however leakage, when people can't find good prior work, but community is always a multiplier effect. I would add however this is even in relation to your future self. A productivity

[tw5] Re: So I want to make ...

2019-02-23 Thread Thomas Elmiger
This gets more interesting than I thought ;–) The comic only talks about you, a single user. It doesn't take into account that others might save time too. (That's my personal justification to spend unreasonable amounts of time with TW solutions. They are easy to share and many others might use

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread BurningTreeC
... with help by the diff-text widget you see what has changed: <$wikify name="hellothere" text="""<$view tiddler="HelloThere" mode="block" format="text"/>"""> <$wikify name="result" text="""<$macrocall $name="snr" source=<> searchValue="TiddlyWiki" replaceValue='ikiWylddiT'/>""" mode="block">

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread BurningTreeC
> > Hi Mario, >> I got your point. Thank you. So, that is why my code breaks in doing >> that. >> >> See below macro >> >> \define snr(source, searchValue, replaceValue) >> \whitespace trim >> <$vars >> src =<<__source__>> >> sval =<<__searchValue__>> >> rval =<<__replaceValue__>> >> > >>

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread BurningTreeC
> > Hi Mario, > I got your point. Thank you. So, that is why my code breaks in doing that. > > See below macro > > \define snr(source, searchValue, replaceValue) > \whitespace trim > <$vars > src =<<__source__>> > sval =<<__searchValue__>> > rval =<<__replaceValue__>> > > > <$list

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread BurningTreeC
> > Hi Mario, > I got your point. Thank you. So, that is why my code breaks in doing that. > > See below macro > > \define snr(source, searchValue, replaceValue) > \whitespace trim > <$vars > src =<<__source__>> > sval =<<__searchValue__>> > rval =<<__replaceValue__>> > > > <$list

[tw5] Re: So I want to make ...

2019-02-23 Thread HansWobbe
The value of this chart for me is that it suggests I should never do anything advanced. TW is so rich in optional solutions, that I inevitably spend a lot of time Searching, Evaluating, and Optimizing solutions. The result is that I would likely never be able to achieve payback from improved

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread Mohammad
Hi Mario, I got your point. Thank you. So, that is why my code breaks in doing that. See below macro \define snr(source, searchValue, replaceValue) \whitespace trim <$vars src =<<__source__>> sval =<<__searchValue__>> rval =<<__replaceValue__>> > <$list filter="[search]"

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread PMario
Hi, >To clarify my question, assume I get a multi paragraph tiddler and I want to >change all mario word in the text to MARIO. That's something different and imo hard to do with wikitext functions. ... We don't have propper find and replace functions at the moment. The diff-match-patch core

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread PMario
Hi, I know your filter is more complicated, but technically I wanted to say: <$list filter="myTid"> <$transclude mode=block/> -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread Mohammad
Hello Mario, I did not understand how transclude widget can be used in the above example. To clarify my question, assume I get a multi paragraph tiddler and I want to change all mario word in the text to MARIO. So, I need to keep the whitespace and linebreaks when I feed a tiddler to the

[tw5] Re: Tip: Create Tiddler with unique title and sequence number

2019-02-23 Thread Mohammad
Mal, That is correct, my mistake! Thank you Mohammad On Saturday, February 23, 2019 at 2:33:20 PM UTC+3:30, Mal wrote: > > Mohammad, > > Yes, that's nice - I see a bit of recursion going on here! It keeps > iterating until it finds a title that doesn't exist. It might be a bit > less

[tw5] Re: [TW5-JsonManglerPlugin] v2.0.2 Update!

2019-02-23 Thread mauloop
Hi, Joshua. I run into troubles running Tiddlywiki with both Tiddlymap and JsonMangler plugins. I tested three different setups: 1. Tiddlywiki 5.1.19 on Node.js with plugins loaded via tiddlywiki.info 2. Tiddlywiki 5.1.19 on Node.js with plugins addes as tid files (dragging links to

[tw5] Re: The Muuri StoryView is back

2019-02-23 Thread BurningTreeC
> > Btc > > As the kanban demo illustrates I love this view in a tiddler approach. One > thing it raises for me is in my gtd wiki I use a field to store the > project, rather than tags, or I would have too many. Would it be feasible > to specify a field rather than a tag for dropping on a

[tw5] Re: How to keep white spaces and line breaks when processing text

2019-02-23 Thread PMario
Hi, If you want to process the text field use the transclude widget in block mode. see: https://tiddlywiki.com/#TranscludeWidget -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from

[tw5] Re: Tip: Create Tiddler with unique title and sequence number

2019-02-23 Thread Mal
Mohammad, Yes, that's nice - I see a bit of recursion going on here! It keeps iterating until it finds a title that doesn't exist. It might be a bit less efficient, but should not have to loop too many times if the total number of tiddlers is small. By the way, I don't think you need the

[tw5] Re: Use CodeMirror find-in-page functionality outside edit mode

2019-02-23 Thread TonyM
Pin, I can only use the in browser search for what you ask. Tony -- 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 tiddlywiki+unsubscr...@googlegroups.com. To

[tw5] Re: length operator in TW5.1.20pre

2019-02-23 Thread TonyM
Mohammad, I know how you feel, yet I do not have too many problems now, in part because I write code progressivly. I would have placed x=<> in there as soon as it did not do as expected. I will try and capture some of these design and debug methods and share. Regards Tony -- You received

[tw5] How to keep white spaces and line breaks when processing text

2019-02-23 Thread Mohammad
Consider myTid tiddler has the below content: This is a test * one * two and then, the below script does some small processing like adding some prefixes. <$vars x={{myTid!!text}} > <$list filter="[addprefix[xx]]"> And the result: xxThis is a test * one * two Is there any way to