[twdev] Re: [TW5] Future Feature - Update Template

2018-04-29 Thread TonyM
Mat,

On further thought if we could have an update view and this was extensible 
we could build a designer view where tidbiz actively builds the tiddler, 
once build however it can all be hidden in the other views.

I think your desired approach is achievable with the following functions.,

   - A Special dropzone on tiddlers (perhaps only in a designer view) where 
   dropping a snipit will create a field eg; display-1 display-2 fields. It 
   would also be helpful if this could be reordered with drag and drop. 
   - Then in view or update mode each of these are transcluded in order and 
   rendered. These would be your reusable code eg; lookup tag, a text editor 
   view a checkbox tool. They can just be macros if desired.

My own MyMenus plugin http://tiddlywiki.psat.com.au/mymenus/has menu items 
that work in a similar way to above. What I have discovered is these 
snipits are like your code moduals and the traditional snipit so I am 
building a library of them. I will eventually also add an Editor toolbar 
button that allows you to search only snipits and insert them  in the text 
field. Also working to allow field management such that should you create a 
menu-fieldname you can select its value from a dropdown of all other menu 
items/snipits.

Regards
Tony

On Saturday, April 28, 2018 at 7:59:43 PM UTC+10, Mat wrote:
>
> @TonyM, 
>
> yes, but:
>
> I think it makes sense to improve the editmode experience and I have some 
> opinions on what should be done BUT I think *the main problem is the very 
> editor*! I really wish we could have a more interactive editor that 
> featured something comparable to Intellisense 
>  - word completion, hover 
> over a widgetname to get e.g parameter list etc. This *really* would 
> simplify editing. (It really doesn't make sense that we have to look up 
> parameters etc in the docs all the time!)
>
> (Of course, TidBitz  is an attempt to 
> even further save the user from having to go into edit view. Unfortunately 
> dev there is stuck.)
>
> Now, that said, I'm curious to hear more about your vision. Who exactly is 
> the audience for the modified edit view? If the UpdateTiddler view is both 
> designed by me and then intended to be used by me... then I'm not sure the 
> benefits are worth the effort. Especially if the idea is that I make 
> different such a customized edit modes for different applications (again 
> with myself as end user).
>
> Or is the idea to use it for multi-user-TWs? I could see value in that 
> context... but multi-user-TWs are not quite established yet. I know only of 
> Jeds late MultiUser 
>  
> creation which I hope will be useful but I've yet not had a context to use 
> it in.
>
> <:-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/cac47d23-315a-49f6-a229-8522e8c21ed0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5] Future Feature - Update Template

2018-04-29 Thread TonyM
Mat,  Also see my reply to Mario.

 

>
> I think it makes sense to improve the editmode experience and I have some 
> opinions on what should be done BUT I think *the main problem is the very 
> editor*! I really wish we could have a more interactive editor that 
> featured something comparable to Intellisense 
>  - word completion, hover 
> over a widgetname to get e.g parameter list etc. This *really* would 
> simplify editing. (It really doesn't make sense that we have to look up 
> parameters etc in the docs all the time!)
>

I think this is a very different problem to that I am trying to address, I 
support what you want, and being able to bring such technology to a text 
box as opposed to just editing tiddler would be great.

>
> (Of course, TidBitz  is an attempt to 
> even further save the user from having to go into edit view. Unfortunately 
> dev there is stuck.)
>

Mat, I am working on some solutions  that may support you in this effort. 
Perhaps we should consider a collaboration? Especially the issue "look up 
parameters etc".

>
> Now, that said, I'm curious to hear more about your vision. Who exactly is 
> the audience for the modified edit view? If the UpdateTiddler view is both 
> designed by me and then intended to be used by me... then I'm not sure the 
> benefits are worth the effort. Especially if the idea is that I make 
> different such a customized edit modes for different applications (again 
> with myself as end user).
>

The audience is anyone, Most importantly those without tiddlywiki 
knowledge, because there would be no need for them to even know what a 
tiddler is, how to edit them and what fields are. They will only see a 
refined presentation or interface to the tiddler as the designer intends. 

However even with a single user/designer it allows simplification, built 
for purpose tiddler based views, once you build something you just use it. 
I for one often find myself hitting edit on a tiddler I do not need to edit 
when I meant to select a tiddler listed by it, say work in progress tasks. 
Once you build a task list, it will look like a task list, not a tiddler 
functioning as a task list.
  

>
> Or is the idea to use it for multi-user-TWs? I could see value in that 
> context... but multi-user-TWs are not quite established yet. I know only of 
> Jeds late MultiUser 
>  
> creation which I hope will be useful but I've yet not had a context to use 
> it in.
>
> <:-)
>

I believe such a solution would make tiddlywiki more versatile and more 
suitable to a casual user, so it will benefit both multi-access wikis and 
shared TiddlyWiki solutions. Ideally such solutions may be a "gateway drug" 
into tiddlywiki. We are often casual users of our own designs so it can 
help the sole designer/user as well.

I have being using Jeds multi-user which I would call multi-access and I am 
confident once I learn how to host it for other users (outside my LAN) 
however a compelling use is so you can open multiple instances and never 
overwrite yourself on the same desktop with multiple browser tabs and 
sessions. It allows you to "clone" tiddlywiki sessions without fear of 
overwrite.


Regards
Tony

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/a3162079-9037-4bfb-879e-29070111da5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5] Future Feature - Update Template

2018-04-29 Thread TonyM
Mario,

By info Area I understand you mean under the Info Button, the drop down 
view.

I  some ways it would be nice to choose what view appears in a tiddlers 
view on opening a tiddler, the edit, update or view and then have the 
remaining ones available under the info button, or a new button like mode.

I am however keen to have an update view that I or a visitor sees that is 
about the tiddler. For example If I made a log tiddler it would be in an 
update view which displays the content of the text field towards the bottom 
with an edit field at the top where I can type a log entry and press a 
button to append it to the text. Many of the regular toolbar buttons would 
be hidden, the log tiddler in update view/mode will be just about  logging.

The tiddler in view mode it would present as normal with all the toolbar 
buttons including edit
The tiddler in edit mode it would present as normal with all the toolbar 
buttons including clone and new here etc.. On edit you would see all 
fields, the text field in its standard place and all the code mirror 
extensions.

In this way visitors or casual users including ourselves on returning to a 
tiddler designed for a particular function will simply get a tiddler that 
is about that function, not a generic tiddler that happens to be for that 
function.

Regards
Tony

On Saturday, April 28, 2018 at 5:22:12 PM UTC+10, PMario wrote:
>
> On Saturday, April 28, 2018 at 3:56:46 AM UTC+2, TonyM wrote:
>>
>>
>> Proposed
>> UpdateTiddler - Global generic interactive  tiddler mode that presents 
>> access to selected tiddler tag and fields optionally via other tools and 
>> macros.
>>
>> and this update tiddler mode will allow selective display of update 
>> components according to tag, field and other settings.
>>
>
> I personally would like use the tiddler "info area" for this. 
> just an idea.
>
> -m
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/5ffd2b7c-1092-48cc-a29a-32c9eac5612d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: Forloop plugin by ibnishak.github.io

2018-04-29 Thread BJ
you need to do it like this:

var re = new RegExp(forvar, 'g');for (; i <= max; i += iter) {
   textBuffer.push(text.replace(re, i));
}

all the best BJ
On Sunday, April 29, 2018 at 4:03:52 PM UTC+2, Bala Chandra wrote:
>
> It replaces only the first instance of the forvar .. So i tried to modify 
> the code of $:/plugins/tesseract/forloop/forloop.js  (
> https://ibnishak.github.io/Tesseract/pluginsandmacros/index.html#Simple%20for-loop%20macro
> )
>
>
> for (; i <= max; i += iter) {
> textBuffer.push(text.replace(forvar, i));
> }
>
>
> to
>
> for (; i <= max; i += iter) {
> textBuffer.push(text.replace(/forvar/gi, i));
> }
>
>
> However, even then the code doesnt do a global replace ... any ideas?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/b8fd3de8-14af-4da8-be28-47b906e25c62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Re: [TW5] Future Feature - Update Template

2018-04-29 Thread Mat
On Saturday, April 28, 2018 at 1:10:23 PM UTC+2, PMario wrote:
>
>
> With 5.1.16 we did a complete revise of the codemirror editor. Including 
> the "cm-autocomplete" addOn. ... It knows about CSS, HTML, XML, javascript, 
> elements. Since those elements are part of cm. ... 
>

FYI I just posted a question 
 about this 
on the main board.

<:-)
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/ebea41f8-be54-4915-95c7-5f938142d14c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[twdev] Forloop plugin by ibnishak.github.io

2018-04-29 Thread Bala Chandra
It replaces only the first instance of the forvar .. So i tried to modify 
the code of $:/plugins/tesseract/forloop/forloop.js  
(https://ibnishak.github.io/Tesseract/pluginsandmacros/index.html#Simple%20for-loop%20macro)


for (; i <= max; i += iter) {
textBuffer.push(text.replace(forvar, i));
}


to

for (; i <= max; i += iter) {
textBuffer.push(text.replace(/forvar/gi, i));
}


However, even then the code doesnt do a global replace ... any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/e6093e9f-6b66-4db3-b3f7-d506ea8b1766%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.