[tw] Re: [TW5] Transcluded object frame for pdf and web pages

2014-06-12 Thread Stephan Hradek
For that to understand one has to understand TWc and the AliasPlugin. Maybe 
it's better to describe what you want?

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Treating other file extensions as .tid

2014-06-12 Thread Richard Baxter
Hello

I guess the subject line rather covers it ... is it possible for TW5 to 
treat files with other extensions (e.g .txt) as .tid files?  Or can setting 
the type: field in a file not be enough to trigger .tid like interpretation?

Well done with TW5 by the way - it looks terrific and is so easy to use.

Many thanks, Richard

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] editing a tiddler in the view mode and duplicating a model

2014-06-12 Thread phimek
Thank you Stephan,

First problem is resolved. I  have the right icon at the right place.

But I am still standing in front of the second one :

 (|!Street | | |!Town | | |!Phone | | ) instead of a nice table.
It doesn't seem to have to do with your code or procedure, it seems more a 
problem inside TW5 (*5.0.12-beta)*, as a simple tiddle with !test doesn't 
show it as a title.
I will try to find what is happening.

Kind regards

Philippe



Le mercredi 11 juin 2014 15:11:30 UTC+2, Stephan Hradek a écrit :

 The first sentence in the Create… tiddler reads:


 To showcase what's possible with my newtiddler widget 
 http://tw5magick.tiddlyspot.com/#%24%3A%2Fplugins%2Fskeeve%2Fnewtiddler.js 
 (search for NewtiddlerWidget on my tiddlystuff wiki 
 http://tiddlystuff.tiddlyspot.com), I created a small Contacts DB 
 http://tw5magick.tiddlyspot.com/#Person%20DB.


 Your errors indicate that you're missing the newtiddler widget. Hop over 
 to tiddlystuff and copy the newtiddler plugin to your wiki.



-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] editing a tiddler in the view mode and duplicating a model

2014-06-12 Thread Stephan Hradek
Is it possible to see your wiki so that I can check the code you wrote.

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] TiddlyWiki 5 accessibility

2014-06-12 Thread simon.eigeldinger

Hi all,

I just saw that TiddlyWiki 5 is around.
as a blind person i thought let's see how it does using a 
screenreader.
i have figured out that there are a bunch of unlabeled buttons so the 
screenreader just announces the word button and nothing more.

maybe they just include a icon and no text.
for example the buttons open, recent, tools, and more are labeled 
correctly.
i also saw there are buttons which are just labeled with × so i don't 
know what those do either.


would be cool if someone could label all the buttons which have no 
apropriate labels.


btw how do i create a single page wiki from the source code? maybe 
soneone could tell me that step by step and tell me which dependencies 
i might need.



i have linux and windows machines.

greetings and thanks,
simon

--
Simon Eigeldinger
simon.eigeldin...@vol.at

--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Treating other file extensions as .tid

2014-06-12 Thread PMario
Hi Richard,

Basically any file can be treated as a tiddler. ... see: 
https://github.com/Jermolene/TiddlyWiki5/tree/master/editions/tw5.com/tiddlers/images

you'll need a filename.txt.meta file, that defined the tiddler fields.

I think, the only field, that must exist is the title
eg: 

title: Motovun Jack.jpg


The title inside the mata file can be different to the file name. ... Which 
can be confusing from time to time :)

hope this helps. 
-mario

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Treating other file extensions as .tid

2014-06-12 Thread PMario
This may help too: http://tiddlywiki.com/#TiddlerFiles:TiddlerFiles
-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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TiddlyWiki 5 accessibility

2014-06-12 Thread PMario
Hi Simon, 

The x buttons are part of the open tab. 
The open tab shows a list of tiddlers, that are shown at the story column. 

So if the x button is clicked, the tiddler is closed and will be removed 
from the story. 

You can download an empty.html version at: 
http://tiddlywiki.com/#Download:Download

With TW5 it is possible to edit an online version and download it, when you 
save. 
It uses the browser default save dialog. ... Depending on the browser you 
use, it is possible to specify the name of the file. So which browser do 
you use?

have fun!
mario

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: TiddlyWiki 5 accessibility

2014-06-12 Thread simon.eigeldinger

hi mario,

i use firefox.
i used TW before in version 2.x so i know about the tiddlyfox addon.

greetings,
simon

On Thu, 12 Jun 2014 03:31:18 -0700 (PDT)
 PMario pmari...@gmail.com wrote:
Hi Simon, 

The x buttons are part of the open tab. 
The open tab shows a list of tiddlers, that are shown at the story 
column. 

So if the x button is clicked, the tiddler is closed and will be 
removed 
from the story. 

You can download an empty.html version at: 
http://tiddlywiki.com/#Download:Download


With TW5 it is possible to edit an online version and download it, 
when you 
save. 
It uses the browser default save dialog. ... Depending on the 
browser you 
use, it is possible to specify the name of the file. So which 
browser do 
you use?


have fun!
mario

--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


--
Simon Eigeldinger
simon.eigeldin...@vol.at

--
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Treating other file extensions as .tid

2014-06-12 Thread Rich
Thanks for that.  I had already gone through the link you've posted - and I
appreciate the variety of ways to express metadata - but I suppose I just
want one more ... But just to be clear, there's no way in TW5 to 'extend'
the list of file extensions so they'd be interpreted as a .tid file?

Thanks, Rich



On 12 June 2014 11:20, PMario pmari...@gmail.com wrote:

 This may help too: http://tiddlywiki.com/#TiddlerFiles:TiddlerFiles
 -m

  --
 You received this message because you are subscribed to a topic in the
 Google Groups TiddlyWiki group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/tiddlywiki/HEqq8JZFCEI/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 tiddlywiki+unsubscr...@googlegroups.com.
 To post to this group, send email to tiddlywiki@googlegroups.com.
 Visit this group at http://groups.google.com/group/tiddlywiki.
 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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] editing a tiddler in the view mode and duplicating a model

2014-06-12 Thread Stephan Hradek
The problem lies somewhere in your modifications/customisations as your 
wiki is not at all capable of displaying tables.

Just try a simple table like:

| a | b |
| c | d |

It won't display correctly.

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] editing a tiddler in the view mode and duplicating a model

2014-06-12 Thread phimek
That is what I suspected.
I will try again with a brand new wiki.
But, as i am not an expert, and as I didn't customise a lot, it would be 
interessant to understand what I did by inadvertance.

Thank you again

Le jeudi 12 juin 2014 14:54:35 UTC+2, Stephan Hradek a écrit :

 The problem lies somewhere in your modifications/customisations as your 
 wiki is not at all capable of displaying tables.

 Just try a simple table like:

 | a | b |
 | c | d |

 It won't display correctly.


-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


RE: [tw] Re: [TW5] Transcluded object frame for pdf and web pages

2014-06-12 Thread Andrew
Sorry, I didn't explain what I'm trying to do. I want an object frame template 
that I can transclude in another tiddler that uses the title for the pritty 
link and passes the path for the link and also for the data field in the object 
viewer. Something like:
[[HTMLViewer]]
$link to={!!title} href=$path$/$link
html
span class=frameviewer
object class=fix type=text/html data=$path$ 
style=width:107.4%;height:545px;/object
/span
/html
Where $path$ is passed as the variable but I cant figure out how to pass 
$path$. I want to be able to put something like 
{{http://mypage.com||HTMLViewer}} in another tiddler and have the title as the 
hyperlink and display the page referenced in a framed object window.

Sent from my Sprint tablet









 Original message 
From: Stephan Hradek stephan.hra...@gmail.com 
Date:06/11/2014  11:17 PM  (GMT-07:00) 
To: tiddlywiki@googlegroups.com 
Subject: [tw] Re: [TW5] Transcluded object frame for pdf and web pages 

For that to understand one has to understand TWc and the AliasPlugin. Maybe 
it's better to describe what you want?
-- 
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 http://groups.google.com/group/tiddlywiki.
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] Transcluded object frame for pdf and web pages

2014-06-12 Thread Stephan Hradek
At the moment this is not as easily possible as you might hope.

I think something like this should be possible:

Create a tiddler (e.g.) objectframe
\define iframe() iframe src=$(path)$ width=90%/
$link$view field=title//$link
iframe

and use it like this:

$set name=path value=http://www.nowhere.com/;
{{The Title I want to link to||objectframe}}
/$set





-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] How to right align tabs and not their content

2014-06-12 Thread Alberto Molina
Hi Måns,

Thanks for your kind words!

Would you consider to publish a, more or less, empty version in English?


Actually, it's what I'm planning to do. But I’m still struggling to find 
the best way (or at least a good way) to solve a few problems.

The main problem I have is that there's only one list field, and I’m 
currently using it to reference the parents of a tiddler. For instance, the 
author(s) of a book, the source of a quote, etc. But it would be preferable 
to have a dedicated field (it’s what I previously tried in 
http://tesis.tiddlyspot.com/). I recently discovered that any field can be 
transformed into a list field (kind of) with the filter operator ``list``, 
for example in [list[HelloThere!!mylist]] but the reverse filter operator 
``listed`` doesn't work with those other fields (as far as I know). 

Another problem is that, atm, the fields contents are not even referenced, 
unlike tags and links. Tags are much more powerful and easy to use, but 
it's difficult to assign them different functions or meanings. For example, 
in a quote from X about Y and related to Z, if X, Y and Z are tags, how do 
you know who's who?

If you have any idea or suggestion, I would be greatful to hear it.

Alberto

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Treating other file extensions as .tid

2014-06-12 Thread Danielo Rodríguez
Hello rich, 

I think the node version tries to interpret the files that it finds. At least 
it works with javascript files. Additionally you can specify how should each 
file be interpreted. 

I'm which scenario are you doing test? How do you put those files inside 
tiddlywiky? 

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Xanadu Project Released

2014-06-12 Thread Alberto Molina
Hi Andrew,

Thanks for the link. I gave it a try and it looks very interesting. But I 
there's still a lot of work to do.

I'm looking forward to see it released (before 2064, I hope).

Alberto

Le mercredi 11 juin 2014 03:06:27 UTC+2, leeand00 a écrit :

 Dear TiddlyWiki Community, 

I'm not sure if anyone saw this, but the project Xanadu finally 
 launched 
 http://www.theverge.com/2014/6/6/5787638/54-year-old-software-project-escapes-vapor-status-to-take-on-the-pdf
  
 (50 years later!)  It looks like a diff viewer I once used called Meld, but 
 I'm fairly certain it's a bit more complex than that. It seems to share 
 some common functionality with Tiddlywiki in that it's non-linear and that 
 you can add transclusions as well as links.  The story behind it is quite 
 entertaining as well...see the old wired article on Xanadu 
 http://archive.wired.com/wired/archive//3.06/xanadu.html.  I'm not 
 going to switch to it anytime soon, but there may be some inspiration to be 
 taken from Xanadu to Tiddlywiki5 developers and plugin developers.  (P.S. 
 I'm not trying to be insulting, 50 years is quite a bit of time for a 
 software development project to go on...I'm just trying to inspire the 
 community about whats been tried before...to see if there's any inspiration 
 that can be taken from Xanadu considering it's shared features).

 Thank you, 
 Andrew J. Leer




-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Treating other file extensions as .tid

2014-06-12 Thread Rich
Hi

Thanks - I'll try the node version.

I'm trying to create a code snippet library with colleagues at work.  For
our sins, we are SAS programmers (and therefore, not terribly computer
literate ...).

Ideally, TW5 would live on a shared drive and people would copy their SAS
programs there from which TW5 would pick them up automatically -or- people
would import into TW5.  The SAS program header becomes the main text of the
tiddler (using wikitext markup) and I can show/hide the SAS code itself
using RevealWidget.

All in all, it works very well: well presented documentation per program
(with full program code), each one tagged (brilliant!) and full text
searching of the code itself.  I'm hugely impressed and this, of all
attempts, might gain traction at work.

The file extension question is from copying the SAS programs to the shared
drive.  The programmer has to take the not-so-difficult step of changing
the extension from .sas to .tid before importing.  Hardly awful, but I
liked the idea of the folders being full of ready-to-go SAS programs - and
TW5 sitting on top of them, providing all-in-one documentation.

My, now I've written this out, I seem awfully ungrateful... Forget I asked.

Cheers, Rich






On 12 June 2014 15:29, Danielo Rodríguez rdani...@gmail.com wrote:

 Hello rich,

 I think the node version tries to interpret the files that it finds. At
 least it works with javascript files. Additionally you can specify how
 should each file be interpreted.

 I'm which scenario are you doing test? How do you put those files inside
 tiddlywiky?

 --
 You received this message because you are subscribed to a topic in the
 Google Groups TiddlyWiki group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/tiddlywiki/HEqq8JZFCEI/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 tiddlywiki+unsubscr...@googlegroups.com.
 To post to this group, send email to tiddlywiki@googlegroups.com.
 Visit this group at http://groups.google.com/group/tiddlywiki.
 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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: CodeMirro 3.18 for TWclassic update

2014-06-12 Thread Yakov
Ok, Jim answered me via email, not via the group, and it seems that I've 
fixed the issue.

Once again, the problem was that only *global* settings from the 
CodeMirrorConfig were read, and I wasn't able to set, say, lineNumbers: true 
for the javascript mode, but not for the tiddlywiki mode. According to [1] 
(thanks, Jim),

The CodeMirror.listModes and CodeMirror.listMIMEs functions, used for 
listing defined modes, are gone. You are now encouraged to simply inspect 
CodeMirror.modes (mapping mode names to mode constructors) and 
CodeMirror.mimeModes (mapping MIME strings to mode specs).


So, I took the (already implemented) collecting of modes from 
config.macros.cmModes (.handler) and brought it to the init method:

init: function() {
var cm = 'CodeMirrorConfig', modes = [];
var secSep = config.textPrimitives.sectionSeparator;

// global settings need to be read seperately
me.conf['global'] = me.rdSettings(cm + secSep + 'global');

// check CM for installed modes and get user config if available
*for(var m in CodeMirror.modes)*
*if(CodeMirror.modes.propertyIsEnumerable(m))* // looks 
like this is excessive
*modes.push(m);*

for (var i = 0; i  modes.length; i++)
me.conf[modes[i]] = me.rdSettings(cm + secSep + modes[i]);
},

Now, all the settings are read and everything works fine, I'm not only sure 
if the *propertyIsEnumerable* thing is really needed (without it, the 
result is the same, and alerting the properties of *CodeMirror.modes* shows 
only modes' names, nothing more). A side note: this enumerating is done in 
the plugin in several places, so it may be worth creating a method, may be 
re-implementing CodeMirror.listModes and CodeMirror.listMIMEs.


There's another problem, which I've fixed.. sort of. tiddlywiki.js from 
Mario's repository doesn't support strike-throught styling, the version 
from the Jim's TW does, but creates incorrect DOM for list items' bullets 
(marks them as comments, .cm-comment instead of .cm-list). That's why I 
took tiddlywiki.css from Jim's TW, tiddlywiki.js from Mario's repository 
and in tiddlywiki.js changed line-through to strikethrough (there's only 
one such piece) which fixed the DOM. So now I have both correct DOM for 
list bullets and strike-through syntax striked-throuth. Unfortunately, I'm 
not aware of any other differences between Mario's and Jim's versions 
of tiddlywiki.js and other .js and .css tiddlers.


Still, I have a number of problems. A major one is: on zCodeMirrorPlugin 
0.4.2 (0.4.3, with the fix above), I've got no alerts when I press esc when 
I'm in the cmEdit mode and have made some changes. I haven't dug this deep 
yet, but this isn't a fine thing for development. I think it's better to 
discuss this and then I'll go on with the less important issues.

Best regards,
Yakov.

[1] http://codemirror.net/doc/upgrade_v3.html, Mode management section

четверг, 12 июня 2014 г., 1:32:49 UTC+4 пользователь Yakov написал:

 Hello Mario and Jim,

 I've found a bug that prevents the settings for modes (but not the 
 global ones) to be read. The problem is in the init method of the 
 config.tools.cm object: in Mario's 0.2.9 version it reads

 init: function() {
 var cm = 'CodeMirrorConfig', modes;
 var secSep = config.textPrimitives.sectionSeparator;
 
 // global settings need to be read seperately   
 me.conf['global'] = me.rdSettings(cm + secSep + 'global');

 // check CM for installed modes and get usre config if 
 available
 modes = CodeMirror.*listModes*();
 for (var i=0; i  modes.length; i += 1) {
 me.conf[modes[i]] = me.rdSettings(cm + secSep + modes[i]);
 }
 },

 for some reason, the listModes method stopped working, probably that's 
 why in Jim's 0.4.2 version the method reads:

 init: function() {
 var cm = 'CodeMirrorConfig', modes;
 var secSep = config.textPrimitives.sectionSeparator;
 
 // global settings need to be read seperately   
 me.conf['global'] = me.rdSettings(cm + secSep + 'global');

 // check CM for installed modes and get user config if 
 available
 modes = CodeMirror.*getMode*();
 for (var i=0; i  modes.length; i += 1) {
 me.conf[modes[i]] = me.rdSettings(cm + secSep + modes[i]);
 }

 and uses the getMode method. But:
 1. the method returns a mode object, not a mode name, so there should be 
 something like
 modes = CodeMirror.getMode().*name*;
 2. it returns only one mode, not a set (and modes.length is undefined), 
 so there should be something like
 var cm = 'CodeMirrorConfig', *mode*;
 [...]
 *mode* = CodeMirror.getMode().name;
 

Re: [tw] Re: Treating other file extensions as .tid

2014-06-12 Thread Danielo Rodríguez
What you want works wonderfully with javascript. 

Go to tiddlywiky5 github page. Enter in plugins and then check any of them. You 
will se there is no tid file, just regular javascript code. Inside each JS file 
there is a commented header. Field defined on that header are converted to tid 
files with that fields. You can ask your colleagues to include that header. 
Then use a custom view template based on, for example a particular tag. 

Let my know if I explained myself. 

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] editing a tiddler in the view mode and duplicating a model

2014-06-12 Thread Stephan Hradek
Ok. That's due to a change in 5.0.10.

Edit the personEntry tiddler and enter an empty line between these 2 
lines:

$reveal state=$:/temp/PersonDBeditPerson text={{!!title}} type=match
{{!!title||editPerson}}

so that it looks like this afterwards:

$reveal state=$:/temp/PersonDBeditPerson text={{!!title}} type=match

{{!!title||editPerson}}

That should fix it.

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.