[twdev] Getting a bit of JavaScript to work in TiddlyWiki

2020-05-21 Thread Kalcifer Kandari
Hello, I have 18 lines of JavaScript code I want to work in TiddlyWiki. All it does is makes an image in a button fullscreen. I originally asked about this in this thread but was directed here. The code: function fullscreen(

[twdev] Re: Getting a bit of JavaScript to work in TiddlyWiki

2020-05-21 Thread Kalcifer Kandari
I'd like it to be on par with the fullscreen video experience. Eventually, if I can implement this to begin with, I'd like to add some more controls and customisation. Just relooked at modals as a solution. I think this might actually work. Before I was concerned about the button at the bottom,

[twdev] Getting a value from one of the current tiddler's fields from within a JavaScript macro module

2020-05-24 Thread Kalcifer Kandari
I mean, the title explains it. Been looking through the source code trying to find the answer. The macro I want to create is incredibly simple: - Get the tags of the current tiddler. - If one starts with 'feed--', return it. I thought it would be as simple as something like: this.getTidd

[twdev] Re: Getting a value from one of the current tiddler's fields from within a JavaScript macro module

2020-05-24 Thread Kalcifer Kandari
know if the tiddler exits, there is a >> this.wikitiddlerExist() method to call, for example from the Link Widget: >> >> this.isMissing = !this.wiki.tiddlerExists(this.to); >> >> >> Best, >> Joshua F >> >> >> On Sunday, May 24, 2020 at 4:16:13

[twdev] Re: Getting a value from one of the current tiddler's fields from within a JavaScript macro module

2020-05-24 Thread Kalcifer Kandari
returnList = returnList.concat(" ", tags[i]); } } } return returnList; }; })(); Kalcifer On Monday, May 25, 2020 at 1:13:30 AM UTC+1, Kalcifer Kandari wrote: > > Thank you so much! > > Here is the code I actually used: > > tags = > t

[twdev] Command line export, then title changes

2020-05-24 Thread Kalcifer Kandari
So, I'm working on a fancy script to publish my site by just running a single command. I want to do this because the working wiki is a mix of public and private tiddlers, which is much easier to work with that 2 separate wikis, given they share a lot of tiddlers. I'm using the standalone wiki,

Re: [twdev] Command line export, then title changes

2020-05-24 Thread Kalcifer Kandari
e]]" > > change mywiki with your wiki folder name. This is when you run the command > from a parent folder > if not give the correct wiki folder path, if you run from inside the wiki > folder just issue > tiddlywiki --render "[all[]]-[tag[private]]" > > Bes

Re: [twdev] Command line export, then title changes

2020-05-24 Thread Kalcifer Kandari
nerating%20Static%20Sites%20with%20TiddlyWiki > > > Best wishes > Mohammad > > > On Mon, May 25, 2020 at 9:11 AM Kalcifer Kandari > wrote: > >> Thanks, but that still give a similar error: >> >> Error: ENOENT: no such file or directory, open >>

Re: [twdev] Command line export, then title changes

2020-05-25 Thread Kalcifer Kandari
re more core modules that do useful things when used in combination with the command line arguments. By the way, the build command <https://tiddlywiki.com/#BuildCommand> just runs some commands stored in the tiddlywiki.info <https://tiddlywiki.com/#tiddlywiki.info%20Files> file.

Re: [twdev] Command line export, then title changes

2020-05-25 Thread Kalcifer Kandari
> Regards > Tony > > On Monday, May 25, 2020 at 3:35:32 PM UTC+10, Kalcifer Kandari wrote: >> >> Please have a look here: >>> >>> https://tiddlywiki.com/prerelease/#Generating%20Static%20Sites%20with%20TiddlyWiki >>> >> >> I'm not

Re: [twdev] Command line export, then title changes

2020-05-26 Thread Kalcifer Kandari
Does anyone know how to save a node.js wiki using a JavaScript module? There's a thousand matches for 'save' in the source code, . Kalcifer On Monday, May 25, 2020 at 11:58:49 PM UTC+1, Kalcifer Kandari wrote: > > It's interesting, but not perfectly suited to

Re: [twdev] Command line export, then title changes

2020-05-26 Thread Kalcifer Kandari
I've found SaveHandler.saveWiki("save"), but not sure how to get to it from a command module. Kalcifer On Tuesday, May 26, 2020 at 9:42:56 AM UTC+1, Kalcifer Kandari wrote: > > Does anyone know how to save a node.js wiki using a JavaScript module? > There's a thous

Re: [twdev] Command line export, then title changes

2020-05-26 Thread Kalcifer Kandari
om/Jermolene/TiddlyWiki5/blob/master/core/modules/commands/setfield.js> and it doesn't look like it saves. - If there is no saver, does that mean innerwiki needs to be used to create a 'fake' browser and then save? I'm going to look at this tomorrow. Kalcifer

Re: [twdev] Command line export, then title changes

2020-05-26 Thread Kalcifer Kandari
iddler "$:/core/save/all" "index.html" "text/plain" Well I learnt how to make a command macro for nothing. Oh well! I'll make a proper tutorial for all of this later. We need documentation. That should have taken me half an hour, but it took *days*! Kalcifer O

Re: [twdev] Command line export, then title changes

2020-05-26 Thread Kalcifer Kandari
ript macro to fix the name, so that wasn't loading. "publify--name--template-2" sets the title as a field that the relevant tiddlers have, so it doesn't need a custom JavaScript module. That field is then deleted using the --setfield command again, because it isn't nec