Re: [tw] Re: What is your TW5 plugin wishlist?
Hi Am Mittwoch, I think what Stephan is trying to say is that he has already created a new journal button. (Thanks again for that valuable addition to TW5, Stephan!) You can find it here. http://tiddlystuff.tiddlyspot.com/ Am, here is some documentation I wrote up for myself, since Stephan's documentation style tends to assume a fair bit of prior knowledge. Hope this fulfills your longing for a new journal button, Am! Requires $:/plugins/skeeve/let.js, $:/macros/skeeve/dateTime.js, $:/plugins/skeeve/newtiddler.js, *1. Create Skeleton tiddler*, in this case we will call it JournalSkeleton I tag it 2014. Otherwise a typical blank tiddler. *2. Create tiddler with button, in this case journalButton* $let tag1=2014 text= $newtiddler title=dateTime MMM 0DD (DDD) skeleton=JournalSkeleton edit=yesNew Journal/$newtiddler /$let *3. Add button to tiddler from which you want to create new journals* {{journalButton}} On Wednesday, March 26, 2014 1:35:39 AM UTC-4, Stephan Hradek wrote: Am Mittwoch, 26. März 2014 02:48:10 UTC+1 schrieb nfnaaron: On my list would be a journal tiddler. You did not search, did you? On Wednesday, March 26, 2014 1:35:39 AM UTC-4, Stephan Hradek wrote: Am Mittwoch, 26. März 2014 02:48:10 UTC+1 schrieb nfnaaron: On my list would be a journal tiddler. You did not search, did you? -- 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: What is your TW5 plugin wishlist?
Hi Aaron, I think what Stephan is trying to say is that he has already created a new journal button. (Thanks again for that valuable addition to TW5, Stephan!) You can find it here. http://tiddlystuff.tiddlyspot.com/ Aaron, here is some documentation I wrote up for myself, since Stephan's documentation style tends to assume a fair bit of prior knowledge. Hope this fulfills your longing for a new journal button! Requires $:/plugins/skeeve/let.js, $:/macros/skeeve/dateTime.js, $:/plugins/skeeve/newtiddler.js, *1. Create Skeleton tiddler*, in this case we will call it JournalSkeleton I tag it 2014. Otherwise a typical blank tiddler. *2. Create tiddler with button, in this case journalButton* $let tag1=2014 text= $newtiddler title=dateTime MMM 0DD (DDD) skeleton=JournalSkeleton edit=yesNew Journal/$newtiddler /$let *3. Add button to tiddler from which you want to create new journals* {{journalButton}} On Tuesday, March 25, 2014 9:48:10 PM UTC-4, Aaron wrote: On my list would be a journal tiddler. Title initialized with the date (formattable), tagged journal. A separate button from the current + button for normal tiddlers. I think (it's been years) that classic or MPTW had this. I also like the TOC inside a tiddler. -- Aaron -- 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: [TWC] Bullet proof way to publish a TW based application
On Tuesday, March 25, 2014 10:07:40 PM UTC, Reto wrote: I am struggling to find a way to publish my TiddlyWiki based application (means: a TWC containing third party plugins, a self written plugin, macros und other necessary tiddlers basically a bunch of tiddlers working together). If you're able to do your own hosting, you might consider using TiddlyWeb (the code underneath TiddlySpace) with your own set of plugins to get it configured as you like. The TiddlyWeb homepage links to lots more info: http://tiddlyweb.com/ -- 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: [TWC] Bullet proof way to publish a TW based application
Chris: Am I correct in assuming that Tank is dependent upon TiddlyWeb? If so, might it be possible to build on Tank's capabilities, in conjunction with TW5 and TWC, to achieve an effective solution. My interest is simply that I do not have python resources at my disposal and relatively limited server admin resources. Hence I would prefer to subscribe to Tank. Regards, Hans On Wednesday, March 26, 2014 9:55:59 AM UTC-4, Chris Dent wrote: On Tuesday, March 25, 2014 10:07:40 PM UTC, Reto wrote: I am struggling to find a way to publish my TiddlyWiki based application (means: a TWC containing third party plugins, a self written plugin, macros und other necessary tiddlers basically a bunch of tiddlers working together). If you're able to do your own hosting, you might consider using TiddlyWeb (the code underneath TiddlySpace) with your own set of plugins to get it configured as you like. The TiddlyWeb homepage links to lots more info: http://tiddlyweb.com/ -- 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] [TW5] npm installation fails
I just tried this twice and failed both times on Redhat 6 SELinux - I did this before and it worked at that time. # npm install -g tiddlywiki npm http GET https://registry.npmjs.org/tiddlywiki npm http 200 https://registry.npmjs.org/tiddlywiki npm http GET https: //registry.npmjs.org/tiddlywiki/-/tiddlywiki-5.0.8-beta.tgz npm http 200 https: //registry.npmjs.org/tiddlywiki/-/tiddlywiki-5.0.8-beta.tgz /usr/bin/tiddlywiki - /usr/lib/node_modules/tiddlywiki/tiddlywiki.js npm WARN unmet dependency /usr/lib/node_modules/block-stream requires inherits@'~2.0.0' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency /usr/lib/node_modules/fstream requires inherits@ '~2.0.0' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency /usr/lib/node_modules/fstream-ignore requires inherits@'2' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency /usr/lib/node_modules/fstream-npm requires inherits@'2' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency /usr/lib/node_modules/glob requires inherits@'2'but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency /usr/lib/node_modules/npmconf requires inherits@ '~2.0.0' but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined npm WARN unmet dependency /usr/lib/node_modules/tar requires inherits@'2'but will load npm WARN unmet dependency undefined, npm WARN unmet dependency which is version undefined tiddlywiki@5.0.8-beta /usr/lib/node_modules/tiddlywiki -- 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] npm installation fails
I think ths solved the issue: npm install -g inherits -- 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] [TW5] Help exporting to static HTML (and then word)
Hello, I feel as though I'm nearly there, but also way off. There are similar questions on this group about doing the same thing (generating a static HTML document from all tiddlers, and then importing it into Word), but they haven't gotten me very far. My situation is the same as most. A large TW written for a boss that wants a Word document. I'm going to keep both, and explain that one will be updated and the other be static. He'll just be happy once he sees a word doc exists. the --render.allcontent shadow tiddler seems to be my answer, but I've also looked into plugins. I'm running a single stand-along .html document TW, and so there's no plugins folder. I'm completely confused. What's the easiest way to generate a static HTML from the browser (save as?). Thanks, Scott -- 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: TW quick change stylesheets
Try this: /*** |Name|setSmallMenu| |StyleSheet|##myStyleSheet| ***/ ! myStyleSheet /*{{{*/ [[StyleSheet]] #wideMenu {visibility:hidden;} #leftMenu {visibility:hidden;} #rightMenu {visibility:hidden;} #smallMenu {visibility:visible;z-index:30;left:500px;} #bottomMenu {visibility:hidden;} #displayArea {width:1000px;left:50px;} /*}}}*/ ! -- 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] npm installation fails
Hi Stephan A bit of googling suggests that this is a problem that others have encountered: http://stackoverflow.com/questions/20435793/unable-to-install-hubot-npm-dependency-not-met The solution seems to be to run npm install (on its own, with no arguments) before attempting to install that package you want. Best wishes Jeremy On Wed, Mar 26, 2014 at 2:32 PM, Stephan Hradek stephan.hra...@gmail.comwrote: I think ths solved the issue: npm install -g inherits -- 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. -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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] [TW5] Help exporting to static HTML (and then word)
Hi Scott There's an example of how to save content in static HTML buried in the control panel: in the tools tab there's a big green button to Download all tiddlers as static HTML. Clicking it should download a static HTML file containing all the non-system tiddlers concatenated together in alphabetical order. The code that creates the button is in $:/core/ui/ControlPanel/Tools: $button message=tw-download-file param=$:/core/templates/alltiddlers.template.html class=btn-big-greenlingo Export/AllAsStaticHTML/Caption {{$:/core/images/save-button}}/$button In order to change the tiddlers that are included, and control their ordering, you can overwrite the filter in $:/core/templates/alltiddlers.content: {{{ [!is[system]sort[title]] ||$:/core/templates/static-tiddler}}} Best wishes Jeremy On Wed, Mar 26, 2014 at 2:39 PM, Scott Hatcher scott.v.hatc...@gmail.comwrote: Hello, I feel as though I'm nearly there, but also way off. There are similar questions on this group about doing the same thing (generating a static HTML document from all tiddlers, and then importing it into Word), but they haven't gotten me very far. My situation is the same as most. A large TW written for a boss that wants a Word document. I'm going to keep both, and explain that one will be updated and the other be static. He'll just be happy once he sees a word doc exists. the --render.allcontent shadow tiddler seems to be my answer, but I've also looked into plugins. I'm running a single stand-along .html document TW, and so there's no plugins folder. I'm completely confused. What's the easiest way to generate a static HTML from the browser (save as?). Thanks, Scott -- 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. -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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: [TWC] Bullet proof way to publish a TW based application
On Wed, 26 Mar 2014, HansWobbe wrote: Am I correct in assuming that Tank is dependent upon TiddlyWeb? If so, might it be possible to build on Tank's capabilities, in conjunction with TW5 and TWC, to achieve an effective solution. My interest is simply that I do not have python resources at my disposal and relatively limited server admin resources. Hence I would prefer to subscribe to Tank. Yes, Tank is built on TiddlyWeb + a bunch of server side plugins. It would probably be possible to use it to get the desired combination of functionality. The reason I didn't mention it directly before is because of this requirement in the original message: Drawback is that if the user chooses a feed he can't see the version of the local installed tiddler compared to the version on the remote TW and in the list of importable tiddlers. I didn't quite understand what that meant and how that might fit in the Tank view of the world. However, in my experience, with sufficient use of JavaScript and familiarity with the TiddlyWeb API[1] it is generally possible to do pretty much anything[2]. The crucial ingredient is effectively decomposing anything into lots of little tasks involving tiddlers. (For those that don't know, Tank is (yet another) tiddler hosting service: https://tank.peermore.com ) [1] http://tiddlyweb.tiddlyspace.com/HTTP%20API [2] This is now even more true with Tank, because Tank just got support (yesterday) for CORS (http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) which makes the resources stored on Tank more accessible. -- Chris Dent http://burningchrome.com/ [...] -- 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: [TWC] Bullet proof way to publish a TW based application
On Tuesday, March 25, 2014 11:07:40 PM UTC+1, Reto wrote: The requirements and wishes: 1. Each application tiddler needs a version number. 2. New versions of the application tiddlers should by installed in the user TW by clicking on an upgrade button. 3. Whenever a new version is released the user should get a notification. Using TiddlySpace comes pretty near to the above requirements via the standard import function. I think you should use the TiddlySpace include mechanism not tiddler import. TS has the following behaviour out of the box. - A space consists of one or more other spaces. - let's say my space is: asdf It also contains those system spaces. - system-plugins http://system-plugins.tiddlyspace.com - system-info http://system-info.tiddlyspace.com - system-images http://system-images.tiddlyspace.com - system-theme http://system-theme.tiddlyspace.com If one of those spaces changes a plugin and I do a browser reload, the new plugins are used. There is only one little problem (which can be soved). If a user clones a plugin, they are not updated, nor are there any notifications. Basiclly all 3rd party plugin spaces on TS work with the include mechanism. -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: A View Mode Editor and a simple Calcualtor
Hi MetalSoviet, To work with TW5 is on the top of the todo list, in the near future they shall do. I am not sure of TiddlySpot, never tried. I am sure they work in TiddlySpace, though. Have fun! Vincent On Tuesday, March 25, 2014 3:46:57 AM UTC+8, MetalSoviet wrote: Can these things be used in the offline TW5 file or only in TiddlySpot? El sábado, 9 de febrero de 2013 09:21:03 UTC-5, Vincent Yeh escribió: Interested in editing your tiddler in the view mode in TiddlyWiki? Try this view mode editor plugin TWted (requires TWtid). Interested in a calculator that supports (partially for now) Excel syntax in Tiddlywiki? Try the simple calculator plugin TWtcalc (requires TWtid). These plugins are under active development. You are very welcome to give comments/suggestions/bug reports. :-) The first versions of these plugins were TableEditor and TableCalculator, released in 2012/06/24, that only supported table editing in the view mode. Later they were extended constantly and then evolved into TWtable, TWted and TWtcalc (released 2012/10/19), still only supported table editing. Recently they were further extended to support view mode editing on most of the block elements (see below) in a tiddler, much more than just a table editor, so I decided to start a new thread for these plugins. You can find their earlier history in the old thread Inline Editing of Tables started by pepebe. - TWtid v1.5.0 — The basis of the view mode tiddler editor TWted and simple calculator TWtcalc, including a table renderer. - Generalized the codes from TWtable 1.4.6, which works for tables only, to support most kinds of block elements, see descriptions for TWted below. - The included *table renderer* supports - scrolling for large tables, - multi-lined cell content (you can have a list in a table cell), - synchronization among all copies (transcluded and non-transcluded). - See TWtid for more details. - TWted v1.5.0 — The view mode tiddler editor. - Edit block elements either in view mode (default) or in edit mode (option description Active in view mode) - If in view mode, the default edit box remains the same; - if in edit mode, the view mode remains for viewing only. - The system default edit box can be brought up by double clicking in a no-element area (note that some elements are much wider than their content). - Works on most of the block elements: - *Tables* — - easy access to cell content for editing purposes - insertion/deletion of rows/columns - copy/cut/paste the cells/rows/columns - *Lists* — both kinds, * and # (corresponding to UL and OL), as many levels as TiddlyWiki supports; - *Headers* — ! ~ !!, corresponding to H1 ~ H6; - *Blockquotes* — three levels supported: , and ; - *Blockexamples* — lines of text enclosed by two ; - *Preformatted blocks* — lines of text enclosed by two triple-braces. - A simple previewer to see the output as you are typing. - Option txtTWtedPreviewOpacity to change opacity of the previewer. Default to 0.9. - Option txtTWtedPreviewCaret to specify the caret symbol in the previewer. Default to the vertical line (|). - Edit tiddler title. - Two options offering three levels of automation in the editing behavior: - Two options: - chkTWtedCatTheMouse — Activate/Deactivate edit mode with mouse motion. - chkTWtedNoClick — Edit the cell content without clicking it. - Three levels of automation: - Manual: set both options to false. Click the 'E' button to start/stop editing the closest block element. - Half automated: set the 1st option to true and 2nd to false. In this level a table enters edit mode automatically when mouse is hovering over it while other block elements remain manual. 'E' button is hidden, need to lick within the block element (or the table cell) to edit. - Automated: set both options to true. Move the mouse over a block element or a table cell to edit. (Warning: this can be annoying in some cases!) /li ... -- 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] Upgrading on node to v5.0.8_b
Hi Jeremy, Since my last post I switched to Chrome (instead of Firefox). Up till now I have no sync/save problems anymore with TW node.js. - Is it possible the problem is browser dependent? - Is this in line with the bug reports you got? Cheers, Ton On Friday, March 21, 2014 9:47:04 PM UTC+1, Ton Gerner wrote: Hi Jeremy, Addendum: Upon restarting the node TW I find a New tiddler and a Draft of 'New Tiddler' (the last added tiddler that has *not* been saved). Cheers, Ton On Friday, March 21, 2014 9:39:44 PM UTC+1, Ton Gerner wrote: Hi Jeremy, Again save/sync problems. Now I get - after some time not editing - messages about Draft of new tiddlers while I don't see an open draft tiddler. From that time on it does not save anymore. GET http://localhost:8080/recipes/default/tiddlers.json [HTTP/1.1 200 OK 36ms] GET http://localhost:8080/recipes/default/tiddlers.json [HTTP/1.1 200 OK 34ms] GET http://localhost:8080/recipes/default/tiddlers.json [HTTP/1.1 200 OK 44ms] GET http://localhost:8080/recipes/default/tiddlers.json [HTTP/1.1 200 OK 41ms] PUT http://localhost:8080/recipes/default/tiddlers/Draft%20of%20%27New%20Tiddler%27 [HTTP/1.1 204 OK 1ms] no element found Draft%20of%20%27New%20Tiddler%27:1 PUT http://localhost:8080/recipes/default/tiddlers/New%20Tiddler [HTTP/1.1 204 OK 1ms] no element found New%20Tiddler:1 PUT http://localhost:8080/recipes/default/tiddlers/Draft%20of%20%27New%20Tiddler%27 [HTTP/1.1 204 OK 1ms] no element found Draft%20of%20%27New%20Tiddler%27:1 PUT http://localhost:8080/recipes/default/tiddlers/Draft%20of%20%27New%20Tiddler%27 [HTTP/1.1 204 OK 1ms] no element found Draft%20of%20%27New%20Tiddler%27:1 PUT http://localhost:8080/recipes/default/tiddlers/Draft%20of%20%27New%20Tiddler%27 [HTTP/1.1 204 OK 1ms] no element found Draft%20of%20%27New%20Tiddler%27:1 The Windows command windows shows the same kind of messages: syncer-server: Dispatching 'save' task: Draft of 'New Tiddler' FileSystem: Saved file D:\Data\TiddlyWiki\TW5\_TW5_Node\TW5Help\tiddlers/ Draft of 'New Tiddler'.tid syncer-server: Dispatching 'save' task: Draft of 'New Tiddler' FileSystem: Saved file D:\Data\TiddlyWiki\TW5\_TW5_Node\TW5Help\tiddlers/ Draft of 'New Tiddler'.tid Hope that helps. Cheers, Ton On Friday, March 21, 2014 6:48:28 PM UTC+1, Jeremy Ruston wrote: Hi Ton Thanks for the report. There's a fix for one of the outstanding sync problems in 5.0.9, courtesy of this pull request from buggyj: https://github.com/Jermolene/TiddlyWiki5/pull/496 That fix concerns tiddlers that get deleted while there is still a pending save to the server. I think the situation you describe is a different problem, and we'll continue to investigate. Best wishes Jeremy On Fri, Mar 21, 2014 at 5:04 PM, Ton Gerner ton.g...@gmail.com wrote: Hi Jeremy, Since a few days I am again playing around with TW5 and node.js (Windows 7, Firefox v28, TW5.0.8-beta). A few times I noted that changes were not saved, but I didn't have the console open so could not check messages. Today it happened again while I had the console open (and the Windows command window open). Like Matabele I get the impression that after a certain (idle?) time it just stops syncing without errors in the console. Everything worked OK, I didn't do any editing for an hour or so and when I restarted editing nothing was saved. Normally I see PUT messages, when idle I see GET messages in the console. When it does not save I only see GET messages (once a minute a new one). The Windows command window just stops with syncer-server: Dispatching 'save' task messages. Luckily I made every time an offline copy, so I did not lose anything, but this way I don't see any advantages over a standalone version ;-) I know this does not help you that much (without any message in the console). Just to let you know the problem was found by another person as well. Cheers, Ton On Wednesday, March 12, 2014 4:41:24 PM UTC+1, Matabele wrote: Hi Thanks - I've developed various techniques for saving my work for the time being - would like to track down the problem though. I don't think this was happening (at least I didn't notice), before the upgrade to v5.0.8-beta. I have tried all kinds of tests, creating and deleting tiddlers, leaving some tiddlers open whilst creating and deleting tiddlers etc. Haven't managed to track this down to any action. As I mentioned, a server that stands completely idle from initial start (other than opening the TW on the browser) may not function after some delay. The fault seems to appear at completely random moments - at times one server might function for hours without a problem, whilst another develops the fault quickly. Meanwhile another idle server develops the fault before first use. Unfortunately there are no anomalous messages in the terminal - all seems to function
[tw] [TWC] [NEW Plugin] AutoSuggestPlugin
Hi all, a few days ago Ramnath requested[1] a tiddler link suggestion feature in edit mode, so I wrote a quick-and-dirty commands plugin[2] for the good old TWC. It is just an implementation of At.js[3], which allows word suggestions in textareas. After activating this feature with the toolbar command, typing double square brackets [[ in edit text field will suggest tiddler names, while left-angle brackets(?) will suggest you installed macros. I'm not a programmer and it is my first public plugin, but I think that your TW won't explode using this little hack :P Have fun and let me know if you find it useful! Cheers, Albert [1] https://groups.google.com/d/topic/tiddlywiki/b5xYteF6U9c/discussion [2] http://autosuggest.tiddlyspace.com/#AutoSuggestPlugin [3] https://github.com/ichord/At.js/ (see also: https://github.com/ichord/Caret.js/) -- 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: Automatically populate tiddlers name-suggestions using a predefined symbol ?
Hi Ramnath! Hope you like this little hack https://groups.google.com/d/topic/tiddlywiki/N0or-eZDt-M/discussion Am Dienstag, 25. März 2014 17:47:35 UTC+1 schrieb Albert Riedinger: I'm not a programmer like others here, but maybe I'll give it a try soon (perhaps this weekend). Hope that TW Gurus like Eric could jump in and help :) I think that this feature should be standard in TWC and TW5. 2014-03-25 16:37 GMT+01:00 Ramnath Babu T.J ramnat...@gmail.comjavascript: : Hi Albert, Nice! is there a way to include this feature in an existing [TWC] wiki as a plugin ? Thanks, Ram On Tue, Mar 25, 2014 at 8:53 PM, Albert Riedinger albert.r...@googlemail.com javascript: wrote: I was looking for such a feature a long time ago. Yesterday I wrote this little example, which could be a good starting point for a more sophisticated plugin: http://autosuggest.tiddlyspace.com/#Example Cheers, Albert 2014-03-25 1:08 GMT+01:00 Ramnath Babu T.J ramnat...@gmail.comjavascript: : Just so that it helps some1 else who comes here... I was looking for a *smart/quick way to be able to easily insert a pre-defined list of frequently used long tiddlies' names in my text* The QuickEditPackage: http://www.TiddlyTools.com/#QuickEditPackagehttp://www.tiddlytools.com/#QuickEditPackage along with http://www.tiddlytools.com/#QuickEdit_custom achieves it I have added the frequently used tiddlies at the end of http://www.tiddlytools.com/#QuickEdit_customList and *got it working* Ram On Tue, Mar 25, 2014 at 5:22 AM, Ramnath Babu T.J ramnat...@gmail.comjavascript: wrote: Wow! U nailed it - This was *what I was exactly looking for* http://www.tiddlytools.com/#QuickEdit_link It was *[TWC]* BTW (from whatever I could understand) - an amazing structure of the QuickEditPlugin u have there! Will this in general slow down editing/saving my Tiddly (it has grown to 3.1 mb now I HAD TO remove a few fancy plugins since it was too sluggish !!) :) Thanks Shulman On Tue, Mar 25, 2014 at 4:16 AM, Eric Shulman elsd...@gmail.comjavascript: wrote: On Monday, March 24, 2014 1:10:06 PM UTC-7, Ramnath Babu T.J wrote: While editing a tiddler, it is tedious to copy-paste the links to tiddlies when trying to link to other tiddlies Is it possible to automate this using existing plugins - or with auto-suggestions? You didn't indicate if this is for [TW5] or [TWC]. In TiddlyWiki Classic (TWC), you can use: http://www.TiddlyTools.com/#QuickEditPackage which provides a toolbar of buttons that assist with editing wiki-formatted content. Included in the QuickEditToolbar is a button that displays a droplist of all tiddler titles. Selecting a tiddler title automatically inserts a fully-formatted link to that tiddler into the tiddler textarea edit field. Q.E.D. Sorry I can't offer you a TW5-based solution today, but there is currently no TW5 plugin equivalent to QuickEditPackage However, I *am* planning to work on plugin migration for TiddlyTools from TWC to TW5. Unfortunately, with over 200 original plugins, scripts, themes, etc., it will take quite a while (several months, at least) for me to re-design and re-implement even a fraction of them. Nonetheless, it's likely that a TW5 equivalent to the TWC QuickEditPackage will be near the top of the list. enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios YOUR DONATIONS ARE VERY IMPORTANT! HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR... http://TiddlyTools.github.com/fundraising.html#MakeADonation Professional TiddlyWiki Consulting Services... Analysis, Design, and Custom Solutions: http://www.TiddlyTools.com/#Contact -- 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/b5xYteF6U9c/unsubscribe. To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com javascript:. To post to this group, send email to tiddl...@googlegroups.comjavascript: . 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+...@googlegroups.com javascript:. To post to this group, send email to tiddl...@googlegroups.comjavascript: . 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 a topic in the Google Groups TiddlyWiki group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/b5xYteF6U9c/unsubscribe. To unsubscribe from this group and all its
[tw] Re: [TWC] TiddlersBarPlugin remembering scroll position
Hi Leo, sorry, I forgot to answer you. As far as I know Tobias' fork includes Marios Popup-Bug-Workaround and an implementation for his PaintrPlugin. Am Mittwoch, 12. März 2014 04:03:53 UTC+1 schrieb Leo Staley: I can't help, but could you explain the difference between Tobias' fork and the original? I read it, but i don't understand. On Tuesday, March 11, 2014 10:42:16 AM UTC-7, Albert Riedinger wrote: Hi all, I use Tobias Beers' fork of TiddlersBarPlugin[1] in my custom theme with TiddlersBar fixed in left sidebar. What I would like to achieve is that TiddlersBarPlugin remembers the scroll position of tiddlers while switching between them[2]. I tried to modify the code of TiddlersBarPlugin, but had to give up realizing that I am only a JS beginner ;) My approach would be to save the horizontal and vertical scroll positions in particular tiddler fields with code like this: // save scroll position var scrX = findScrollX(); var scrY = findScrollY(); store.setValue(tiddler, scrollPosX, scrX); store.setValue(tiddler, scrollPosY, scrY); [...] // load and set scroll position var scrX = store.getValue(title, scrollPosX); var scrY = store.getValue(title, scrollPosY); window.scrollTo(scrX, scrY); The problem is, that I don't know where to put this or similar code in the TiddlersBarPlugin. Maybe somewhere in the hijacked displayTiddler function? I appriciate any help. Thanks in advance, Albert [1] already requested by another user here: https://raw.github.com/tobibeer/TiddlyWikiPlugins/master/forked/TiddlersBarPlugin.js [2] https://groups.google.com/d/topic/tiddlywiki/uH1N8FB8_uY/discussion -- 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: TW quick change stylesheets
Hi..thankls but I am still getting the inicial white page...cant see why the normal StyleSheet is being ignored! Skye Em quarta-feira, 26 de março de 2014 11h47min04s UTC-3, PMario escreveu: Try this: /*** |Name|setSmallMenu| |StyleSheet|##myStyleSheet| ***/ ! myStyleSheet /*{{{*/ [[StyleSheet]] #wideMenu {visibility:hidden;} #leftMenu {visibility:hidden;} #rightMenu {visibility:hidden;} #smallMenu {visibility:visible;z-index:30;left:500px;} #bottomMenu {visibility:hidden;} #displayArea {width:1000px;left:50px;} /*}}}*/ ! -- 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: TWC - TW not saving \
Hi Danielyeah, seems the BidiX site has been down for a while, not sure what is happening! Anyway, I often use the UploadTiddlerPlugin, and less frequently UploadPlugin (both BiDiX)...and seems both have the same issue, so - store.php is here - http://www.unigaia-brasil.org/cloud/index.php/apps/files/download/TW/store.php storeTiddler.php - http://www.unigaia-brasil.org/cloud/index.php/apps/files/download/TW/storeTiddler.php you should be able to download them without login issues...I think Thanks Skye Em segunda-feira, 24 de março de 2014 21h44min52s UTC-3, Daniel Baird escreveu: Lazy of me, I know, but could you post your store.php code here? BidiX's site is down and I can't easily retrieve it from the office I'm at.. On 25 March 2014 10:10, skye riquelme riquel...@gmail.com javascript:wrote: Hi again...still no joy in resolving this problem. However I dont think its an issue with my server. I copied a working TW from my server into a local server (XAMP)...and the same thing happens. I also created a second local server (WAMPP)...and the problem continues. As mentioned , everything was working untill I upgraded the php version on my server from 5.2.3 ...its now 5.4.3. The WAMPP is php 5.4.1 and XAMPP is php 5.5.9. SO, it seems its a question of the newer versions of php handling the escape characters in a slightly different way. I tried to set up an old WAMP version (php pre 5.3) but got conflict issues between the versions..so cant definitely show that its a php version issue. Anywayanyone understand the changes made in php in the last upgrades...from about 5.3...to know what changed with regards the escape sequences..it seems that the UploadPlugin is no longer totally compatable with recent php upgrades. Just noting that the escape character gets lost when the tiddler is uploaded by UploadPlugin, or UploadTiddlerPlug.but correcting the rror in a local copy and then ftp'ing the file to the server corrects the code. a rather cumbersome work-around to the problem!!! Thanks Skye Em quinta-feira, 20 de março de 2014 22h52min33s UTC-3, skye riquelme escreveu: Hi Mark.now that you mentioned it.this started happening about the time my server people upgraded my php version...and we had a strange problem of the upgrade not Taking..maybe they played with some settings then...Ill check it out. Skye Em quinta-feira, 20 de março de 2014 20h54min44s UTC-3, Mark S. escreveu: Is it possible that your ISP cranked up the security settings in order to prevent escape sequences from being uploaded? Mark On Wednesday, March 19, 2014 4:47:33 PM UTC-8, skye riquelme wrote: Hi All Hope someone can help with a strange problem that I am encounting. I make a lot of use of flat text files to store information, loading this into a TW (via XMLHttpRequest()) ...in the processing of this data I frequently look to line breaks in the txt file, using simple javascript like text.split(\n). and this worked fine for many months. Recently things started failing, and when I checked the code had changed to .split(n)...I corrected the code.everything works fine...untill I reload the page and again the \ is missing - note that the correction was saved back tot he TW using UploadPlugin and UploadTiddlerPlugin. Why does the \ character keep disappearing? I have downloaded the file, corrected it with Note+++ and uplaoded again.it all works well, until I open that tiddler in edit, and then restore (done)the \ gets dropped again!!! To make things worse... recently a functioning TW started failing and on opening saying that some plugins failed... for example on checking a recent case. Erics InlineJavascriptPlugin...reported as having failed...when I checked it.. the line (early in the code) match: \\script, ...was reading in my TW match: \script,... note that again a \ has disappeared I put the extra \ back into the code, saved via UploadPluginand on reopening the TW the plugin failed because the second \ is again missing. So, what up with the character \. why is it being deleted when I save the TW? Thanks in Advance Skye -- 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+...@googlegroups.com javascript:. To post to this group, send email to tiddl...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout. -- Daniel Baird retro objoke: Chuck Norris had a problem so he decided to use regular expressions. Now, every problem in the world is solved. -- You received this message because you are subscribed to the Google Groups TiddlyWiki
Re: [tw] Re: TWC - TW not saving \
Hi Skye Just in case you need it, there is an official repository for BidiX's code here on Google Code: https://code.google.com/p/bidix/source/browse/trunk/TiddlyHome/_th/lib/store.php Best wishes Jeremy. On Wed, Mar 26, 2014 at 7:34 PM, skye riquelme riquelme.s...@gmail.comwrote: Hi Danielyeah, seems the BidiX site has been down for a while, not sure what is happening! Anyway, I often use the UploadTiddlerPlugin, and less frequently UploadPlugin (both BiDiX)...and seems both have the same issue, so - store.php is here - http://www.unigaia-brasil.org/cloud/index.php/apps/files/download/TW/store.php storeTiddler.php - http://www.unigaia-brasil.org/cloud/index.php/apps/files/download/TW/storeTiddler.php you should be able to download them without login issues...I think Thanks Skye Em segunda-feira, 24 de março de 2014 21h44min52s UTC-3, Daniel Baird escreveu: Lazy of me, I know, but could you post your store.php code here? BidiX's site is down and I can't easily retrieve it from the office I'm at.. On 25 March 2014 10:10, skye riquelme riquel...@gmail.com wrote: Hi again...still no joy in resolving this problem. However I dont think its an issue with my server. I copied a working TW from my server into a local server (XAMP)...and the same thing happens. I also created a second local server (WAMPP)...and the problem continues. As mentioned , everything was working untill I upgraded the php version on my server from 5.2.3 ...its now 5.4.3. The WAMPP is php 5.4.1 and XAMPP is php 5.5.9. SO, it seems its a question of the newer versions of php handling the escape characters in a slightly different way. I tried to set up an old WAMP version (php pre 5.3) but got conflict issues between the versions..so cant definitely show that its a php version issue. Anywayanyone understand the changes made in php in the last upgrades...from about 5.3...to know what changed with regards the escape sequences..it seems that the UploadPlugin is no longer totally compatable with recent php upgrades. Just noting that the escape character gets lost when the tiddler is uploaded by UploadPlugin, or UploadTiddlerPlug.but correcting the rror in a local copy and then ftp'ing the file to the server corrects the code. a rather cumbersome work-around to the problem!!! Thanks Skye Em quinta-feira, 20 de março de 2014 22h52min33s UTC-3, skye riquelme escreveu: Hi Mark.now that you mentioned it.this started happening about the time my server people upgraded my php version...and we had a strange problem of the upgrade not Taking..maybe they played with some settings then...Ill check it out. Skye Em quinta-feira, 20 de março de 2014 20h54min44s UTC-3, Mark S. escreveu: Is it possible that your ISP cranked up the security settings in order to prevent escape sequences from being uploaded? Mark On Wednesday, March 19, 2014 4:47:33 PM UTC-8, skye riquelme wrote: Hi All Hope someone can help with a strange problem that I am encounting. I make a lot of use of flat text files to store information, loading this into a TW (via XMLHttpRequest()) ...in the processing of this data I frequently look to line breaks in the txt file, using simple javascript like text.split(\n). and this worked fine for many months. Recently things started failing, and when I checked the code had changed to .split(n)...I corrected the code.everything works fine...untill I reload the page and again the \ is missing - note that the correction was saved back tot he TW using UploadPlugin and UploadTiddlerPlugin. Why does the \ character keep disappearing? I have downloaded the file, corrected it with Note+++ and uplaoded again.it all works well, until I open that tiddler in edit, and then restore (done)the \ gets dropped again!!! To make things worse... recently a functioning TW started failing and on opening saying that some plugins failed... for example on checking a recent case. Erics InlineJavascriptPlugin...reported as having failed...when I checked it.. the line (early in the code) match: \\script, ...was reading in my TW match: \script,... note that again a \ has disappeared I put the extra \ back into the code, saved via UploadPluginand on reopening the TW the plugin failed because the second \ is again missing. So, what up with the character \. why is it being deleted when I save the TW? Thanks in Advance Skye -- 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+...@googlegroups.com. To post to this group, send email to tiddl...@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout. -- Daniel Baird retro
Re: [tw] Re: [TW5] Upgrading on node to v5.0.8_b
Hi Ton Since my last post I switched to Chrome (instead of Firefox). Up till now I have no sync/save problems anymore with TW node.js. - Is it possible the problem is browser dependent? - Is this in line with the bug reports you got? That's very interesting, it's the first suggestion I've had that the problems are browser specific. I'll continue to investigate, Many thanks, Jeremy Cheers, Ton On Friday, March 21, 2014 9:47:04 PM UTC+1, Ton Gerner wrote: Hi Jeremy, Addendum: Upon restarting the node TW I find a New tiddler and a Draft of 'New Tiddler' (the last added tiddler that has *not* been saved). Cheers, Ton On Friday, March 21, 2014 9:39:44 PM UTC+1, Ton Gerner wrote: Hi Jeremy, Again save/sync problems. Now I get - after some time not editing - messages about Draft of new tiddlers while I don't see an open draft tiddler. From that time on it does not save anymore. GET http://localhost:8080/recipes/default/tiddlers.json [HTTP/1.1 200 OK 36ms] GET http://localhost:8080/recipes/default/tiddlers.json [HTTP/1.1 200 OK 34ms] GET http://localhost:8080/recipes/default/tiddlers.json [HTTP/1.1 200 OK 44ms] GET http://localhost:8080/recipes/default/tiddlers.json [HTTP/1.1 200 OK 41ms] PUT http://localhost:8080/recipes/default/tiddlers/Draft%20of%20%27New%20Tiddler%27 [HTTP/1.1 204 OK 1ms] no element found Draft%20of%20%27New%20Tiddler%27:1 PUT http://localhost:8080/recipes/default/tiddlers/New%20Tiddler [HTTP/1.1 204 OK 1ms] no element found New%20Tiddler:1 PUT http://localhost:8080/recipes/default/tiddlers/Draft%20of%20%27New%20Tiddler%27 [HTTP/1.1 204 OK 1ms] no element found Draft%20of%20%27New%20Tiddler%27:1 PUT http://localhost:8080/recipes/default/tiddlers/Draft%20of%20%27New%20Tiddler%27 [HTTP/1.1 204 OK 1ms] no element found Draft%20of%20%27New%20Tiddler%27:1 PUT http://localhost:8080/recipes/default/tiddlers/Draft%20of%20%27New%20Tiddler%27 [HTTP/1.1 204 OK 1ms] no element found Draft%20of%20%27New%20Tiddler%27:1 The Windows command windows shows the same kind of messages: syncer-server: Dispatching 'save' task: Draft of 'New Tiddler' FileSystem: Saved file D:\Data\TiddlyWiki\TW5\_TW5_Node\TW5Help\tiddlers /Draft of 'New Tiddler'.tid syncer-server: Dispatching 'save' task: Draft of 'New Tiddler' FileSystem: Saved file D:\Data\TiddlyWiki\TW5\_TW5_Node\TW5Help\tiddlers /Draft of 'New Tiddler'.tid Hope that helps. Cheers, Ton On Friday, March 21, 2014 6:48:28 PM UTC+1, Jeremy Ruston wrote: Hi Ton Thanks for the report. There's a fix for one of the outstanding sync problems in 5.0.9, courtesy of this pull request from buggyj: https://github.com/Jermolene/TiddlyWiki5/pull/496 That fix concerns tiddlers that get deleted while there is still a pending save to the server. I think the situation you describe is a different problem, and we'll continue to investigate. Best wishes Jeremy On Fri, Mar 21, 2014 at 5:04 PM, Ton Gerner ton.g...@gmail.com wrote: Hi Jeremy, Since a few days I am again playing around with TW5 and node.js (Windows 7, Firefox v28, TW5.0.8-beta). A few times I noted that changes were not saved, but I didn't have the console open so could not check messages. Today it happened again while I had the console open (and the Windows command window open). Like Matabele I get the impression that after a certain (idle?) time it just stops syncing without errors in the console. Everything worked OK, I didn't do any editing for an hour or so and when I restarted editing nothing was saved. Normally I see PUT messages, when idle I see GET messages in the console. When it does not save I only see GET messages (once a minute a new one). The Windows command window just stops with syncer-server: Dispatching 'save' task messages. Luckily I made every time an offline copy, so I did not lose anything, but this way I don't see any advantages over a standalone version ;-) I know this does not help you that much (without any message in the console). Just to let you know the problem was found by another person as well. Cheers, Ton On Wednesday, March 12, 2014 4:41:24 PM UTC+1, Matabele wrote: Hi Thanks - I've developed various techniques for saving my work for the time being - would like to track down the problem though. I don't think this was happening (at least I didn't notice), before the upgrade to v5.0.8-beta. I have tried all kinds of tests, creating and deleting tiddlers, leaving some tiddlers open whilst creating and deleting tiddlers etc. Haven't managed to track this down to any action. As I mentioned, a server that stands completely idle from initial start (other than opening the TW on the browser) may not function after some delay. The fault seems to appear at completely random moments - at times one server might function for hours without a problem, whilst another develops the fault quickly. Meanwhile another idle server develops
Re: [tw] Re: TW quick change stylesheets
Hi Skye, I did some single step debugging in the code, to see what's going on. ... It seems there are several tiddlers visible at page startup, that define a different theme. .. If you use inline scripts in tiddlers, those scripts are executed, when the tiddler is rendered. ... So at your page startup, you seem to activate setRightMenu, setSmallMenu, setRightMenu, setSmallMenu (I probably missed one :) ... Which in the end seems to mess it up somehow. - Having a closer look to your themes, I could remember an old experiment. ... I did a similar approach, with TaggedTemplateTweak. at: http://a-pm-experimental.tiddlyspot.com/#WideViewTemplate%20wide%20TaggedTemplateTweak My WideViewTemplate contains an htmlstyle... section and then calls the default theme ViewTemplate. The tiddler that triggers the change is http://a-pm-experimental.tiddlyspot.com/#TestWide ... As long as this tiddler is open, wide is active. .. So every tiddler tagged wide will trigger the WideViewTemplate ... I think tagging a tiddler is simpler, than having an inline script in several tiddlers. but If you open 2 tiddlers at the same time, the last one will win or you have strange behaviour. If you show several of them on startup, it may cause a similar problem, you have already :/ .. But you could run a fast test. ... 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.
[tw] Re: [TWC] [NEW Plugin] AutoSuggestPlugin
Thanks Albert! :) Ramnath On Wednesday, March 26, 2014 10:22:02 PM UTC+5:30, Albert Riedinger wrote: Hi all, a few days ago Ramnath requested[1] a tiddler link suggestion feature in edit mode, so I wrote a quick-and-dirty commands plugin[2] for the good old TWC. It is just an implementation of At.js[3], which allows word suggestions in textareas. After activating this feature with the toolbar command, typing double square brackets [[ in edit text field will suggest tiddler names, while left-angle brackets(?) will suggest you installed macros. I'm not a programmer and it is my first public plugin, but I think that your TW won't explode using this little hack :P Have fun and let me know if you find it useful! Cheers, Albert [1] https://groups.google.com/d/topic/tiddlywiki/b5xYteF6U9c/discussion [2] http://autosuggest.tiddlyspace.com/#AutoSuggestPlugin [3] https://github.com/ichord/At.js/ (see also: https://github.com/ichord/Caret.js/) -- 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: [TWC] [NEW Plugin] AutoSuggestPlugin
Hi Albert, .. That's brilliant :) ... but I'd change the default button texts. The button has to show autosuggest off that the plugin works. ... and it would be nice, if the command could save it's state to the tiddler, which is kind of tricky ... I did something similar for the codemirror editor plugin, to save the F11 full size mode. The save custom field code is part of ExtraKeysAddOn [1]. So you'd need the Story.prototype.hasTiddlerField = function(title,field) function. and this save value part from the toggleMaxHeight function var f = story.hasTiddlerField(title,'cm.height'); if (!f ) { story.addCustomFields(tidEl, 'cm.height:'+cmHeight); } else { f.setAttribute('value', cmHeight); } ed.refresh(); so you'd neeed to replace cm.height with your auto suggest status. Reading the code could be in your command // doesn't set tid if title is a shadow tiddler var tid = store.getTiddler(title); // title is defined as a handler() param. if (tid.fields['cm.height']) { ... do stuff have fun! mario [1] http://codemirror.tiddlyspace.com/#ExtraKeysAddOn -- 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] Can't concatenate text from data tiddler to other text in TW5
I wanted to put a list of similar URLs in a tiddler so I could select any one and open it up in my browser. I thought it would be nice to put most of the URL (the common part) in a data tiddler so that it could be changed in just that one place if any of the boilerplate part of the URL changed. But the specific part of the URL does not get thoroughly attached to what gets pulled in from the data tiddler. Example: MyData (a data tiddler) contains: urlL1:http://www.blandrecipes.com/pablum.htm/recipe= MyList (a normal tiddler) contains: {{MyData##url1}}mashedpotatoes {{MyData##url1}}boiledcarrots {{MyData##url1}}potroast The two pieces show up jammed together just fine when MyList is displayed, but only the first part (from the data tiddler) shows in blue, and the second part does not get sent to the browser when the blue part gets clicked. Am I expecting too much from TW5's handling of data tiddlers, or am I missing something? -- 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] Can't concatenate text from data tiddler to other text in TW5
Hi Savvy Links cannot span transclusions. However, you can do what you want with macros. Note that the definition must be at the top of the tiddler: \define link(url) http://www.blandrecipes.com/pablum.htm?recipe=$url$ \end link mashedportatoes link boiledcarrots link potroast See http://tiddlywiki.com/static/Macros%2520in%2520WikiText.html for more details of how macros work. Best wishes Jeremy On Wed, Mar 26, 2014 at 9:45 PM, Savvy Klutz cjsch...@erols.com wrote: I wanted to put a list of similar URLs in a tiddler so I could select any one and open it up in my browser. I thought it would be nice to put most of the URL (the common part) in a data tiddler so that it could be changed in just that one place if any of the boilerplate part of the URL changed. But the specific part of the URL does not get thoroughly attached to what gets pulled in from the data tiddler. Example: MyData (a data tiddler) contains: urlL1:http://www.blandrecipes.com/pablum.htm/recipe= MyList (a normal tiddler) contains: {{MyData##url1}}mashedpotatoes {{MyData##url1}}boiledcarrots {{MyData##url1}}potroast The two pieces show up jammed together just fine when MyList is displayed, but only the first part (from the data tiddler) shows in blue, and the second part does not get sent to the browser when the blue part gets clicked. Am I expecting too much from TW5's handling of data tiddlers, or am I missing something? -- 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. -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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: [TWC] TiddlersBarPlugin remembering scroll position
On Tuesday, March 11, 2014 6:42:16 PM UTC+1, Albert Riedinger wrote: I use Tobias Beers' fork of TiddlersBarPlugin[1] in my custom theme with TiddlersBar fixed in left sidebar. So your left sidebar is fixed too and it is always visible, when you sroll down? What I would like to achieve is that TiddlersBarPlugin remembers the scroll position of tiddlers while switching between them[2]. I tried to modify the code of TiddlersBarPlugin, but had to give up realizing that I am only a JS beginner ;) My approach would be to save the horizontal and vertical scroll positions in particular tiddler fields with code like this: I wouldn't store those values with the tiddler, because you would get a new modified timestamp. If you want that, then it's ok. Do you really need the x position? In normal cases it is alway 0. If only y is needed, you could create a tbScrollPositions tiddler with a lot of slices with the tiddlername:y-value in it. ... store.calcAllSlices(tbScrollPositions) should return all the tiddlers and there values. But you'd need to create a search function. so your approach is easier for the beginning. story.displayTiddler = function(srcElement,tiddler,template,animate,unused,customFields,toggle){ story.coreDisplayTiddler(config.macros.tiddlersBar.tabsAnimationSource,tiddler,template,animate,unused,customFields,toggle); var title = (tiddler instanceof Tiddler)? tiddler.title : tiddler; if (config.macros.tiddlersBar.isShown()) { story.forEachTiddler(function(t,e){ if (t!=title) e.style.display=none; else { // - a fast test e.style.display=;// - this will scroll 200 px down. So it should be the right place window.scrollTo(0, 200)// - when you display the tiddler. } }) config.macros.tiddlersBar.currentTiddler=title; } var e=document.getElementById(tiddlersBar); if (e) config.macros.tiddlersBar.refresh(e,null); } Finding the place to save the value will be trickier. I'll post again :) 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.
[tw] Re: Can't concatenate text from data tiddler to other text in TW5
Thanks, Jeremy. That will get me where I need to go quite nicely. -- 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] [TW5] Porting TiddlyWikiFX (TiddlyWiki into a JavaFX application) to use TiddlyWiki 5
Hello, I created a project named TiddlyWikiFXhttps://bitbucket.org/bgoetzmann/tiddlywiki-fx/wiki/Home; all is in the name: it's a JavaFX application using a WebView component that contains a TiddlyWiki *classic *page. The benefit is to have a more integrated solution whereby you can have more control on content, e.g. the way content is loaded or saved. I was able to do load and save operations using Java/Groovy code called from JavaScript added on the page and using existing JavaScript functions in the TiddlyWiki page. Now I would like to port my application to use the new TiddlyWiki version. Any suggestion or hint on the way I can use the JavaScript functions in the new version? Ideally, I don't want to modify anything in TiddlyWiki, but just add or override some JavaScript functions. Cheers, Bertrand -- 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: [TWC] TiddlersBarPlugin remembering scroll position
@Albert, The modification that I made here are dangerous with TiddlyWeb, TiddlySpace. I did a tiddlyweb check so the code is deactivated for TiddlyWeb, TiddlySpace. ... and just to be sure ... I did comment to 2 lines that write the scroll position to the active tiddler. So everyone that does a copy paste, but doesn't read the docs, can't say I'm the one who caused problems. Everyone who wants to use the code needs to remove the store.setValue() comments below. IMPORTANT: If you use it that way, make sure, that you rename your plugin, and make it clear, that it won't work with TiddlySpace and TiddlyWeb. story.displayTiddler = function(srcElement,tiddler,template,animate,unused,customFields,toggle){ story.coreDisplayTiddler(config.macros.tiddlersBar.tabsAnimationSource,tiddler,template,animate,unused,customFields,toggle); var title = (tiddler instanceof Tiddler)? tiddler.title : tiddler; if (config.macros.tiddlersBar.isShown()) { story.forEachTiddler(function(t,e){ if (t!=title) e.style.display=none; else { // DON'T allow modification on TiddlyWeb, TiddlySpace ... because it may clone tiddlers if you view them. if (tiddlyweb) { // WARNING don't remove this security check !! // do nothing } else { // save scroll position // store.setValue(config.macros.tiddlersBar.currentTiddler, scrollPosX, findScrollX()); // store.setValue(config.macros.tiddlersBar.currentTiddler, scrollPosY, findScrollY()); // load and set scroll position var scrX = store.getValue(title, scrollPosX); var scrY = store.getValue(title, scrollPosY); // if undefined .. don't scroll to 0 if (scrX scrY) window.scrollTo(scrX, scrY); } e.style.display=; } }) config.macros.tiddlersBar.currentTiddler=title; } var e=document.getElementById(tiddlersBar); if (e) config.macros.tiddlersBar.refresh(e,null); } 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.