[tw] Re: [TW5] Should I write a typeblock parser for a "type" that doesn't exist?

2015-10-29 Thread Matabele
Hi Antaeus The easiest and quickest way is to modify: $:/core/modules/parsers/csvparser.js replace the string in the line: var columns = lineText.split(","); with a regular expression: var columns = lineText.split(/,|~|\t/); regards On Thursday, 29 October 2015 23:21:09 UTC+2, Antaeus Felds

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-29 Thread Matabele
Hi Tobias Perhaps this should be generalised for any list (not only the tags field.) As in, list all tiddlers that contain any of the items specified, in the targeted list. The syntax for this becomes problematic, as both the reference pointing to the field being targeted and the array of item

[tw] Re: [TW5] Question about regexp and UTC problem.

2015-10-29 Thread Changhoon Lee
Thank you so much Tobias Beer for your answer! Sameday filter is the exactly what I was looking for! 2015년 10월 30일 금요일 오전 3시 56분 26초 UTC+11, Tobias Beer 님의 말: > > Hi Changhoon Lee, > > If I create tiddler on 2015-Oct-28 8:00 AM, then the 'created' field will >> get 2015-Oct-27 22:00 PM. > > > At

[tw] Re: [TW5] Should I write a typeblock parser for a "type" that doesn't exist?

2015-10-29 Thread Antaeus Feldspar
Tobias - Yes, the intent is to display a section of tab-separated values or tilde-separated values as a table within a scrollable widget, just as TiddlyWiki already does out of the box for comma-separated values. If you put the following text in a tiddler: $$$text/csv ,, 1,2 3,4 $$$ you see t

[tw] Re: Pass macro to widget attribute: Create new tiddler with specified title

2015-10-29 Thread Chris Nicoll
Thanks to everyone on this thread. My new button just got even fancier than I'd planned. On Friday, October 9, 2015 at 1:05:58 PM UTC-4, brorgschlr85 wrote: > > I am trying to create a button with an accompanying edit-text widget that > will (a) create a new tiddler with the title entered in the

[tw] Re: [TW5] Question about regexp and UTC problem.

2015-10-29 Thread Tobias Beer
Hi Mark, > Why should TW5 stick with UTC? Maintaining a legacy that only works for > 1/24 of the world is somewhat harsh. > There's no legacy in that. It ensures that all wikis talk about the same time, no matter from where you look at it. It does not mean that TiddlyWiki thinks all users si

[tw] Announcing TiddlyDesktop v0.0.6

2015-10-29 Thread Jeremy Ruston
Hot on the heels of v0.0.5, I’m pleased to announce TiddlyDesktop v0.0.6 with the following improvements: * Added ability to drag and drop TiddlyWiki files into the wiki list window from Windows Explorer/Mac Finder * Fixed bug triggered by moving TiddlyDesktop executable after first running it *

[tw] Re: [TW5] Question about regexp and UTC problem.

2015-10-29 Thread 'Mark S.' via TiddlyWiki
Why should TW5 stick with UTC? Maintaining a legacy that only works for 1/24 of the world is somewhat harsh. At the very least, users should be able to configure how they want their time stamps kept. I'm thinking that someone has probably already made a Journal widget/button that can save in l

[tw] Re: [TW5] Question about regexp and UTC problem.

2015-10-29 Thread Tobias Beer
Hi again, Changhoon Lee, While not too pretty... for now, you could use the approach of cmari taking the offset into account via the *sameday* filter. The *regexp* filter won't do any good as it knows nothing of datetime conve

[tw] Re: [TW5] Question about regexp and UTC problem.

2015-10-29 Thread Tobias Beer
Hi Changhoon Lee, If I create tiddler on 2015-Oct-28 8:00 AM, then the 'created' field will > get 2015-Oct-27 22:00 PM. At first I was wondering why that is but then I got to accept the proposition. Here are two issues on GitHub about this: *#190 It should be possible to display fields in lo

[tw] Re: [TW5] Question about regexp and UTC problem.

2015-10-29 Thread 'Mark S.' via TiddlyWiki
I don't think there is any reasonable way to filter for this. It would require a special filter or javascript macro that knows how to manipulate date stamps. One workaround might be to create your own "New Tiddler" button that would create its own date field using the local time. Kind of messy.

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-29 Thread Tobias Beer
Hi Rustem, One thing that may be helpful at some point is this. Consider a tiddler called *action* to which action tags are tagging, e.g. *#future*, *#next*, *#waiting*, *done*... and then there are tiddlers that tag to those individual status tags. This can already be done using: {{{ [[action

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-29 Thread Tobias Beer
Ah, must've been too late to not overlook that double negation. :D Best wishes, — tb -- 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...@googl

[tw] Re: Setting HTML attributes with a macro?

2015-10-29 Thread RichardWilliamSmith
Hi Eric, A thousand thank yous. Your solution is very neat. Gratifyingly, I came back so soon to say that I found another way to do it also, by writing a javascript macro to piece the html string together (I assume this works because the whole thing is passed back into a context where wikitext

[tw] Re: Setting HTML attributes with a macro?

2015-10-29 Thread Eric Shulman
On Thursday, October 29, 2015 at 2:09:21 AM UTC-7, RichardWilliamSmith wrote: > > Tiddlywiki is really twisting my brain again. I'm trying to make a > one-click image exporter. At first I tried to do it by decoding the base64 > tiddlers myself, using a javascript macro - I seemed to get somethin

Re: [tw] TW5 list filter that returns tiddlers with both of two tags

2015-10-29 Thread Rustem
Matabele's way works. Thanks everyone. On Wednesday, October 28, 2015 at 10:07:59 PM UTC-7, Tobias Beer wrote: > > Hi Rustem, > >> My “prefilter” is rather complex, I’d like to avoid repeating it unless >> there is no other way. >> > I think your only option to streamline might be to use a macro

[tw] Setting HTML attributes with a macro?

2015-10-29 Thread RichardWilliamSmith
Tiddlywiki is really twisting my brain again. I'm trying to make a one-click image exporter. At first I tried to do it by decoding the base64 tiddlers myself, using a javascript macro - I seemed to get something that was almost, but not quite, the right encoding... as I was reading for possible