[tw] Re: Set or Wikify - how get best of both?

2017-08-06 Thread 'Mark S.' via TiddlyWiki
This might not be what you wanted, but it works (at least with your sample 
set)

\define foo()
<$list filter="[] +[removeprefix]" variable="stuff">
<>

\end

Mark

On Sunday, August 6, 2017 at 4:27:19 PM UTC-7, Mat wrote:
>
> I'm attempting to make dixtractors  
> (why- "dictionary extractors", of course) to make tiddler dictionaries more 
> useful, and possibly even to allow them as a data source for graphs 
> .
>
> My issue can be formulated as:
>
> <$setname="sentence" value="""Prefix to remove: This is [[a link]] and 
> @@color:red;styled@@ word!""">
> <$setname="preset"   value="""Prefix to remove:""">
> <$wikify name="prewik"text="""Prefix to remove:""">
> <>
> 
> 
> 
>
>
> *How do I define "foo" *to get the following result:
>
> This is a link and a styled word!
>
> Thanks!
>
> <:-)
>
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8a7837a3-338b-4202-8ae5-a30d62a0fcef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using TW after 5 year gap from TW2

2017-08-06 Thread AlanBCohen
I used tour postings.
This is the final form.

List tiddler title, tags, and text in a table where tags include 'Journal', 
sorted by the modified daterime stamp.

   
  Title 
  Tags 
  Text 
   
   <$list filter="[tag[Journal]sort[modified]]">
  
 <$link><>
 <$view field="tags"> no tags 
 
 <$view field="text"> 
  
   


I consider this effort to have been a success.
Alan

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2c7f4079-6096-4ff7-b778-d4fa26a4fa35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Set or Wikify - how get best of both?

2017-08-06 Thread Mat
I'm attempting to make dixtractors  
(why- "dictionary extractors", of course) to make tiddler dictionaries more 
useful, and possibly even to allow them as a data source for graphs 
.

My issue can be formulated as:

<$setname="sentence" value="""Prefix to remove: This is [[a link]] and 
@@color:red;styled@@ word!""">
<$setname="preset"   value="""Prefix to remove:""">
<$wikify name="prewik"text="""Prefix to remove:""">
<>





*How do I define "foo" *to get the following result:

This is a link and a styled word!

Thanks!

<:-)


-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/af8142e7-d886-43d7-8710-f803d7d68c5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using TW after 5 year gap from TW2

2017-08-06 Thread AlanBCohen
Thank you again, Eric.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a0db2299-f132-45de-bfd7-bd9705824053%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using TW after 5 year gap from TW2

2017-08-06 Thread Eric Shulman
errata:

To display the tiddler content properly, add the mode="block" parameter to 
the <$transclude> widget otherwise, the content will all become 
'inline' and will flow onto lines without regard to paragraph/line breaks, 
tables, bullet lists, etc.

<$transclude mode="block"/>

-e

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1711ba1b-2bde-407d-870e-8f4eb47290c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using TW after 5 year gap from TW2

2017-08-06 Thread Eric Shulman
On Sunday, August 6, 2017 at 1:00:52 PM UTC-7, AlanBCohen wrote:
>
> Eric,
> Found some more HTML docs on tables. This is closer to what I want, but 
> the currentTiddler and currentTags in the table aren't displaying.
>
> ''Tiddlers with the tag 'Journal', sorted by modified. Tiddler.text 
> displayed on same line.''
> 
> 
> Title 
> Tags 
> Text 
> 
> <$list filter="[tag[Journal]sort[modified]]">
> 
> <<>
> <>
> <$transclude>
> 
> 
> 
>
> I think the remaining problems are with the referencing the current line's 
> Tiddler fields. The old TW2 fields were referenced as tiddler.title, 
> tiddler.tags, tiddler.text. What are the equivalent field names and syntax?
>

1) Be careful with your syntax.
   * TW widgets have this form: <$foo>... (i.e., matching <$...> and 
 
   * all widget names start with $
   * only 1 set of brackets (i.e., <$foo> NOT <<$foo>>)
   * handling of the content within the widget depends on the type of widget
   * if the widget does not have any content, you can use an abbreviated 
form: <$foo /> (note the trailing "/")

2) Within the <$list>... widget, all content is relative to the 
<> value.  You can refer to any field within the tiddler 
using the <$view> widget. To display the tags for the currentTiddler, use
   <$view field="tags"> no tags 
   * the content within the <$view>... is fallback text if the 
specified field is missing or empty.
   * if you don't want/need fallback content, you can use the abbreviated 
form: <$view field="tags" />

3) Just like the <$view> widget, content within the 
<$transclude>... widget is used as a fallback if the 
tiddler/field does not exist.  If no tiddler is specified, the 
currentTiddler value is used by default.  If no field is specified, the 
"text" field is used by default. Thus,
   <$transclude tiddler=<> field="text"> no text 

will display the text from the currentTiddler, or "no text" if the tiddler 
or field does not exist.
  * In the above example, you can omit the "tiddler" and "field" params 
(since they specify the defaults), and just write: <$transclude> no text 

  * If you don't want/need fallback content, you can use the abbreviated 
form: <$transclude /> (again, note the trailing "/")

Here's your code, cleaned up a bit:

   
  Title 
  Tags 
  Text 
   
   <$list filter="[tag[Journal]sort[modified]]">
  
 <$link><>
 <$view field="tags"> no tags 
 <$transclude />
  
   


let me know how it goes...

enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/04fcfad0-df0e-480d-8ad5-60a7eec7e490%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Firefox 54.0.1 save changes button doesn't work

2017-08-06 Thread Emrah Kelep
Save changes button does't save changes but if i change it manually with 
save file option it works. Is it possible to make a problem in future if i 
use it as a notepad.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ca257ed5-1ffd-47cb-9c78-9c1dd648f791%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using TW after 5 year gap from TW2

2017-08-06 Thread AlanBCohen
Eric,
Found some more HTML docs on tables. This is closer to what I want, but the 
currentTiddler and currentTags in the table aren't displaying.

''Tiddlers with the tag 'Journal', sorted by modified. Tiddler.text displayed 
on same line.''


Title 
Tags 
Text 

<$list filter="[tag[Journal]sort[modified]]">

<<>
<>
<$transclude>




I think the remaining problems are with the referencing the current line's 
Tiddler fields. The old TW2 fields were referenced as tiddler.title, 
tiddler.tags, tiddler.text. What are the equivalent field names and syntax?
 

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1447496b-2308-48a1-a89f-21728c149a3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Using TW after 5 year gap from TW2

2017-08-06 Thread AlanBCohen
Eric, Thanks for the help.
I've gotten farther.
This is what I have now:
''Tiddlers with the tag 'Journal', sorted by modified. Tiddler.text displayed 
on same line.''
<$list filter="[tag[Journal]sort[modified]]">


<$link><><> <$transclude>




Unfortunately <> is not returning any string. I also want to 
display each line with "|" with leading/ending "|" like the TW2 tables. A 
matching heading for the table would be nice. I've been reading HTML 
documentation unsuccessfully.
What I'd like to achieve would look like

| Title  | Tags  | Text |
| 2017.08.08 | Journal projectid | Bla. |

(With the heading line boldest or otherwise set apart.)
Alan

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/74baac57-f70b-402c-9b5b-c1bb3f8f596a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: After upgrade 5.1.13 to 5.1.14 tags not shown in views

2017-08-06 Thread 'Mark S.' via TiddlyWiki
Just guessing. Do you have any plugins installed? Have you set up any view 
templates?

Mark

On Saturday, August 5, 2017 at 3:11:14 PM UTC-7, Andy Bunce wrote:
>
> Hi,
>
> After upgrading  from 5.1.13 to 5.1.14 tags not shown in views
> They are still there and appear in edit mode. 
> In the tag manager the tag column is empty although the other columns look 
> ok.
>
> How can I fix this?
>
> /Andy
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3a69403d-301f-4567-ae66-de8ff7398aaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Issue: Data Dictionary Record not showing in "input" box

2017-08-06 Thread Danielo Rodríguez
What a weird name for a tiddler. Looks like you are accessing nested JSON 
properties, but not, confusing.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9ddd4219-67cd-43c2-b78b-8c03480d8e78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: "tm-fold-tiddler" doesn't seem to work

2017-08-06 Thread stefct4
Hi Mark,

On Saturday, August 5, 2017 at 10:21:31 PM UTC+2, Mark S. wrote:
>
> The documentation appears to be wrong. I put together code that seems to 
> work.
>
 
Thank you very much! Following your suggestion, I modified my code, and it 
works fine now.

My code looks like this now:

\define folded-state2()
$:/state/folded/$(foldme)$
\end
<$edit-text tiddler="$:/temp/mytoot" tag="textarea" class="editorArea" 
default="json toot"/>
<$edit-text tiddler="$:/temp/mytoot" tag="input" field="titel" default="Toot 
Title" size=40/>
<$set name="foldme" value={{$:/temp/mytoot!!titel}}>
<$button>
<$action-createtiddler $basetitle={{$:/temp/mytoot!!titel}} tags="Toots" 
type="application/json" $savetitle="!!toot-titel" text={{$:/temp/mytoot}}/>
Save json toot
<$action-sendmessage $message="tm-fold-tiddler" $param=<> 
foldedState=<> />
<$action-deletetiddler $tiddler="$:/temp/mytoot"/>



For explanation: I wanted to hide the original JSON content of the 
tiddlers, because I create formatted output with custom code from another 
tiddler tagged $:/tags/ViewTemplate. 

Thanks! 

Cheers,

Stef

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2ea06d76-db1d-45f7-8342-a0dc5a733802%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Issue: Data Dictionary Record not showing in "input" box

2017-08-06 Thread Jeremy Ruston
Hi Josiah

The “tiddler” attribute of the edit-text widget requires a simple tiddler 
title, not the full text reference including the index specifier that you are 
using. You’ll need to use the separate “index” attribute instead. For example:


<$edit-text tiddler="tools.icons.library.fa.all" index="2" tag="input" 
default="" placeholder="code to copy appears here" />


Best wishes

Jeremy


> On 6 Aug 2017, at 09:45, @TiddlyTweeter  wrote:
> 
> I'm working on an app that shows the plain code for a record from a Data 
> Dictionary in an "input" slot.
> 
> 
> <$edit-text tiddler="tools.icons.library.fa.all##2" tag="input" default="" 
> placeholder="code to copy appears here" />
> 
> 
> This shows nothing. Do I need to "escape" the tiddler address in some way to 
> get the Data Dictionary record to turn up?
> 
> Any tips much appreciated.
> Josiah
> 
> -- 
> 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 post to this group, send email to tiddlywiki@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/5b9c98e1-5972-45e5-a144-86f354c93380%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/45350887-CDA0-4287-9BBE-6F545011F0F8%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Issue: Data Dictionary Record not showing in "input" box

2017-08-06 Thread @TiddlyTweeter
Ciao Mario ...

Its set to: application/x-tiddler-dictionary 

J.

On Sunday, 6 August 2017 11:08:59 UTC+2, PMario wrote:
>
> Hi,
>
> Did you set the type field of the tiddler: 
> application/x-tiddler-dictionary   or   application/json?
>
> -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 it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3211cb35-9bd0-4228-9cae-e751fd211fd0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Issue: Data Dictionary Record not showing in "input" box

2017-08-06 Thread PMario
Hi,

Did you set the type field of the tiddler: 
application/x-tiddler-dictionary   or   application/json?

-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 it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/75442ff9-a601-41b0-a1cc-b8297e5be0ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Issue: Data Dictionary Record not showing in "input" box

2017-08-06 Thread @TiddlyTweeter
I'm working on an app that shows the plain code for a record from a Data 
Dictionary in an "input" slot.


<$edit-text tiddler="tools.icons.library.fa.all##2" tag="input" default="" 
placeholder="code to copy appears here" />


This shows nothing. Do I need to "escape" the tiddler address in some way 
to get the Data Dictionary record to turn up?

Any tips much appreciated.
Josiah

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5b9c98e1-5972-45e5-a144-86f354c93380%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.