jermolene / tiddlywiki5 Goto Github PK
View Code? Open in Web Editor NEWA self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
Home Page: https://tiddlywiki.com/
License: Other
A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
Home Page: https://tiddlywiki.com/
License: Other
Some time ago, I did think about the "unnamed parameter" in your myMacro description.
<<myMacro
param1: Parameter value
param2: value
"unnamed parameter"
param4: ((
A multiline parameter that can go on for as long as it likes
and contain linebreaks.
))
>>
I do understand, that unnamed params are needed, for TW syntax compatibility reasons. What I'd like to see is eg:
<<tiddler myTiddler "" with:"param">>
<<tiddler myTiddler with:"param" class:"myclass">>
At the moment, TW works like 1) which is compatibility mode. So the user has to know, that class is the second parameter. But I personally would prefer a "named params" only mode 2), which would make it possible that a slider macro works the first time I write it. No need to know the right order. eg:
<<slider tiddler:"myTiddler" label:"click" tooltip:"some text"
cookie:"myMode" myMode:"open" cookieSaveTo:SystemSettings>>
I hope this makes sense.
According to Recipe.js [1] Recipe(options, callback)
seems to need an options
object instead of single arguments, so --servewiki [2] doesn't work anymore.
[1] https://github.com/Jermolene/cook.js/blob/master/js/Recipe.js#L60
[2] https://github.com/Jermolene/cook.js/blob/master/tiddlywiki.js#L157
to reproduce
You end up with 2 "New Tiddler 1" in edit mode, which imo shouldn't happen.
I'd like to have the possibility to enable / disable the "new means new" mechanism. (I'd prefere a plugin)
For me every tiddler should get a propper name immediately.
If "new means new" is active it is way to easy, to end up with "New Tiddler" .... up to ... "New Tiddler 25"
(just my opinion)
Hi Jeremy,
I did have a short look at the slider macro implementation. It looks, like the TW5 sliders also (like TW) prerender there content, even if it is not visible. This is no problem if you only have a view silders in a tiddler and the content is small.
but have a look at a usecase like this http://stevesuny.tiddlyspace.com/#journal .. There are a lot of sliders, that need to load a lot of content. Loading the journal tiddler on my pc needs allmost a second.
So I think displayed sliders can keep there content to cach it but "closed" sliders should render a tiddler only, when clicked. This would also create a smaller DOM
-m
Hi,
I did pull the latest version. The ./tw5.sh
is broken, since the docs directory didn't exist.
"old" TW has a problem using the list filter like: <<list filter [field[myKey]]>>
eg: If I want to list all tiddlers that contain a "custom field" named "myKey" and I don't care about the "value" it doesn't work.
According to the header text [1], it seems that the new implementaion lacks that too.
I have to say, that I didn't do some propper testing. (yet) But it seemst line 91 [2] shouldn't be hardcoded that way, because imo it should be possible to list tiddlers that have a custom field "myKey" without wanting to know there value.
If I'm wrong, just close the issue.
[1] https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/wiki.filters.js#L35
[2] https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/wiki.filters.js#L91
If you copy the following source to a TW5 tiddler you'll see what I mean:
{{{
some text -- ndash --- mdash end -> ok
}}}
some text -- ndash --- mdash end -> ok
{{{
some text --strike start -- ndash --- mdash strike end-- -> nok
}}}
some text --strike start -- ndash --- mdash strike end-- -> nok
If I open a tiddler eg: HelloThere
<ctrl><a>
mark all <delete>
text
the editor gets very small. I'd like to have a minimum size.
If I start a server and open localhost:8080
I get:
$ [/path/to/Git/tiddly/TiddlyWiki5] [master]
-> node core/boot.js --server 8080 $:/core/tiddlywiki5.template.html
$:/core/modules/wiki.js:321
renderer.execute([],title);
^
TypeError: Cannot call method 'execute' of null
at [object Object].renderTiddler ($:/core/modules/wiki.js:321:11)
at Server.<anonymous> ($:/core/modules/commands/server.js:60:37)
at Server.emit (events.js:70:17)
at HTTPParser.onIncoming (http.js:1514:12)
at HTTPParser.onHeadersComplete (http.js:102:31)
at Socket.ondata (http.js:1410:22)
at TCP.onread (net.js:374:27)
`'
$ ./bld.sh
./bld.sh: line 9: ../../../jermolene.github.com/CNAME: No such file or directory``
Ubuntu 12.04 , node 0.6.19
any clue why the error?
Hi Jeremy,
I did get an email today in reply to an old TW group post [1] about disabling the strikethrough rendering.
Thank you for this! To the TW dev(s): There should be some way to
address this within TW (I was going to suggest ---, and I see I'm not
the first). I use emdashes often in my prose, and I'm not willing to
learn a different convention just for those times when I'm using a
particular program--even a truly great program like TW! :-)
I thought it would be worth a ticket for TW5, because imo it is a problem, from a writers point of view.
Using: text -- test
seems to be wrong [2] too because a the spaces. So may be the "Compose Key" like notation, mentioned at Wikipedia [3] would be an option.
endash: --.
emdash: ---
It shouldn't interfer with existing rules and or plugins. At least I don't know any :)
or changing the strikethrough behaviour a bit. eg: space--space
... start/end of strike
and text--test
... emdash
-m
[1] http://groups.google.com/group/tiddlywiki/msg/61930389d6c6b170
[2] http://www.grammarbook.com/punctuation/dashes.asp
[3] http://en.wikipedia.org/wiki/Emdash#Em_dash
Stupid question maybe, but is it possible to create an empty TiddlyWiki as html file? I don't really get what e.g. bld.sh
does. It's nice that everything runs in node.js now and serve.sh
works. But I would like to get an empty html to start from scratch. At least this is how I used TW 2.
.
According to Recipe.js [1] Recipe(options, callback)
seems to need an options
object instead of single arguments, so --servewiki [2] doesn't work anymore.
[1] https://github.com/Jermolene/cook.js/blob/master/js/Recipe.js#L60
[2] https://github.com/Jermolene/cook.js/blob/master/tiddlywiki.js#L157
.
Is it allowed to talk about the actual DOM structure created by TW5, or is it too early?
the new chooser doesn't work with FF 10.0.2 ubuntu
created index.html
with tw5.sh
-> file is ok.
node tiddlywiki.js --load tmp/tw5/index.html --savetiddlers tmp/tiddlers
tmp/tiddlers
directory exists
/media/Daten/Git/tiddly/cook.js/tiddlywiki.js:100
var tiddlers = tiddlerInput.parseTiddlerFile(data,type,fields);
^
TypeError: Object #<Object> has no method 'parseTiddlerFile'
at /media/Daten/Git/tiddly/cook.js/tiddlywiki.js:100:34
at [object Object].<anonymous> (fs.js:115:5)
at [object Object].emit (events.js:64:17)
at afterRead (fs.js:1111:12)
at Object.wrapper [as oncomplete] (fs.js:254:17)
node version 0.6.5, latest cook.js git repo.
test.sh
doesn't produce usefull output.
When I type text. The editor lags quite a lot.
I did test this with FF13 and Chromium 18. The behaviour seems to be the same with both. Even if Chromium should be faster.
It has been suggested to use the implementation of a parse rule for TiddlyWiki 2.x.x style comments as the example:%...%
to reproduce the issue:
Due to the animation of the page, I'd expect a breadcrumbs type behaviour.
I'm not sure, what's better but it did surprise me. I did encounter this behaviour, because I did open about 10 tiddlers, but I did close only 5 or so. For me this behaviour felt wrong, even if it doesn't make sense to read a tiddler twice :)
If I click any tag, the list pops up, but the popup isn't below the cursor. The whole behaviour is quite jumpy, as the tiddler content changes its positions too. If the popup is closed, tiddlers return to there positions.
Chrome on ubuntu doesn't show this behaviour.
After doing a search and selecting a result, the results pane remain open. It seems that I have to delete the search text for it to go.
Source to reproduce the issue
{{{
//{{{
TODO
//}}}
}}}
//{{{
TODO
//}}}
{{{
<!--{{{-->
TODO
<!--}}}-->
}}}
<!--{{{-->
TODO
<!--}}}-->
To reproduce the error:
The tiddler has wrong size and position
ubuntu 12.04 FF13 and Chrome same error
actually none of the command line examples seem to work
Examples used from tiddler CommandLineInterface
to reproduce ->
FF 16.0.1
ubuntu 12.04
I don't know if I am 100% correct about this: Right now tiddlywiki5 saves the whole content as a string - including all css and javascript and tiddler data. This single-file strategy is like the birthmark of tiddlywiki.
While it brings convenience under following circumstances:
It certainly brings issues concerning concerning backup and import.
As number of tiddlers grows, the whole file becomes larger and larger. The browser needs to load the whole file from disk into memory on every start up, and write the whole file from memory into disk on every save. This could slow the process significantly. Also the disk space usage is another issue: In my case the backup files generated by autosave feature accumulate to 1GB+ after several months.
Similarly, when import from another tiddlywiki file, the browser needs to load the whole file into the memory and then parse the html code to fetch information about each tiddler to generate a tiddler list for user to select.
In the past, the single-file strategy avoid dependence on specific database outside the browser and is highly cross-platform. However, as permission for web page to read/write local file becomes stricter and stricter, we have to use extra means for different browser like add-on or jar. This does not feel right.
I think we could use IndexedDB to save / load all the user-generated tidders, and the html file only contains necessary initial tiddlers when downloaded from the Internet. This could bring advantages including:
Furthermore, we could easily turn tiddlywiki into a standard web app if we use IndexDB instead of add-on or jar to save content.
About implementation, I find some saver modules in core/modules/savers
, is writing a saver enough for implementing what I described? What about loading tiddler? By the way I just gave a quick look at tiddlywiki5's code, so maybe there's something already there and I just don't know.
I need to change
#!/bin/sh
to
#!/bin/bash
in order to get ./bld.sh
work. OS: ubuntu 12.04
This line adds a dependency, that imo should be separated from TW5.
https://github.com/Jermolene/TiddlyWiki5/blob/master/bld.sh#L7
This is a wish, that reflects my preferences.
While I like to see animations, when a program is new to me. After a while I start searching for a possibility to swtich them off.
to reproduce:
./tw5s.sh
Firebug says: "tiddler is null"
FF11 ubuntu 11.10
To fix it the server needs to be restarted
FF13 ubuntu 12.04
The "edit" button DOM looks like this:
<button class="btn btn-mini">
<p>edit</p>
</button>
The assigned CSS for <p>
is
p {
margin: 0 0 9px;
}
The margin-bottom 9px causes the button to look "bloated" in Gecko based brwosers. Is there a paragraph needed inside a button? [1]
[1] http://dev.w3.org/html5/spec/the-button-element.html#the-button-element
Have a look at the DOM, that is created!
{{{
<html>
some text <br> second line doesn't show up. have a look at the DOM!
</html>
}}}
<html>
some text <br> second line doesn't show up. have a look at the DOM!
</html>
{{{
<div>text in div</div>
}}}
<div>text in div</div>
to reproduce
Editing a tiddler while in zoomin view results in no 'earlier' tiddler being displayed when the edited tiddler is shown.
To reproduce:
Whereas you would expect HelloThere to reopen, some animation is shown but no tiddler. Switching to classic view and then back to zoomin results in HelloThere being shown as expected.
Chrome 19.0.1084.56 on XP.
When I click on "node.js application.", read the page about node.js, and then want to read more of the HelloThere page, I click "Back".
This takes me to the previous page I had been at.
It should take me back to the HelloThere page.
If I do a built in "browser find" the browser highlights the match but after about 3 seconds TW seems to refresh the display. All highlighting is gone :(
I did see a very similar issue with the VideoTest tiddler. all 3 videos are flickering every 3 seconds. The Clock Tiddler seems to be activated every 3 seconds?
using latest stable FF ubuntu
The link on "WikiText" in the following sentence needs to be updated:
"Try editing some tiddlers here on tiddlywiki.com to try out the new [WikiText]. Your changes will not be visible to other users."
Also, please add info to the readme.md about how to preview the rich-text editor.
Rich-text editing was shown in your video from 2010, but it's currently not in the HTML5 review site at five.tiddlywiki.com.
Thanks! Lovin' the switch to Twitter Bootstrap.
to reproduce:
issue:
I know, this workflow is wrong, but imo there should be an error message or at least a warning.
latest TW5 versions (TW5 and rabbithole)
FF12, ubuntu 12.04 - Every input looses the focus on keyUp, if you type a character.
Cromium has no problem.
If I click eg: "view: classic" it opens an empty / missing tiddler named "classic", which imo isn't the intended behaviour.
Hi,
I'm terribly missing the "close" and "close others" buttons :)
edit tiddler should have a "cancel" button
I like the behaviour, that the "search result popup" stays open, if you open a tiddler
but
I can't close it anymore.
/% some comment %/
<!--whatever comes here is comment-->
<div>
some text
</div>
https://github.com/Jermolene/TiddlyWiki5/tree/master/tiddlyfox/extension
@Jermolene
Since FireFox 15 started to ship allready, there will be more and more problems with saving TW with FF. FF users are used to have allmost no saving problems, so imo there should be even a sticky post at the TiddlyWiki discussion group.
btw: thx for the extension!
It always serves up an empty wiki!
ubuntu 12.04 ff13
to reproduce the issue:
It seems to be a timing problem. IMO if the tiddler should be closed, but the animation isn't finished, ff doesn't close the div. Since chrome is faster, it seems to work there.
The last tiddler isn't closed. FireBug says:
TypeError: this is undefined
this.renderer.domNode.appendChild(node.renderInDom());
Afterwards, you can't open a any tiddler, if you click links
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.