<script src="navigation.js"></script>
$ tiddlywiki .. --listen
Error executing boot module navigation.js: {}
navigation.js:2
var activeElement = document.activeElement;
^
ReferenceError: document is not defined
at navigation.js:2:21
...
Not sure :
* You may have to declare your script differently: not using a .js.meta file but with a tiddlyWiki.files file.
* Also the script may need some special declarations as comments, like
```
/*jslint node: true, browser: true */
/*global $tw: false */
```
Did you look at https://github.com/Jermolene/TiddlyWiki5/core/modules/keyboard.js as an "inspiration" ?
Hopefully someone who knows what he does will have a better answer...
Cheers
Sylvain
@sycom
(function () {
/*jslint node: false, browser: true */
/*global $tw: false */
"use strict";
exports.name = "mypluginname"; exports.after = ["rootwidget"];
exports.startup = function () {
... Your startup code here...
}
})();
Using the .after will make tiddlywiki delay your startup until the specified dependencies have been initialized. Not sure if you need to wait for the root widget, but you can try that and back off to an earlier point if needed.
There should be some more info about this scattered around tiddlywiki.com and tiddlywiki.com/dev :)
Hope it helps.
--
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/pjqXOaHGw1w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/5737107c-27f2-45b2-ac7a-24a2905fd147%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CABAmXk3eJUgyZJHPpjN%3DrAngFpB7Ep8pExkjMs8AtWi%3DQT%3DTPg%40mail.gmail.com.
Thanks!I'm going to post it for sure. I'm still working on some details and additional functions:- If you scroll down half a tiddler, which one should be edited when you press "e"!?- It would be nice if you could navigate also through the menus in the sidebar (open/recent tiddlers and so on)- If you can navigate through tiddlers and menus, some highlighting of the current object is necessary- Maybe I can wrap this tiddler in a right plugin with some settings and documentationBut I will share it before everything is finished because it could be useful for some people as it is right now.Best regards
Max
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9bbeacf6-2b0f-42cb-aaf5-edb958a36b2c%40googlegroups.com.
On your question
- If you scroll down half a tiddler, which one should be edited when you press "e"!?
If you turn on sticky titles in theme tweets and ensure the e operates the tiddlers who's sticky title is visible I think would be the best. Ie the top in the view screen even if, you are looking at the bottom of it. Ideally it could detect if sticky titles was in use or not and if not edit the tiddler who's title is visible at the top.
Regards
Tony
> How can I exclude it (same for tw5-keyboard-navigation.html and tw5-keyboard-navigation-plugin.html)?
I think you should put them outside your plugins/MaxGyver83 folder
> Why is does navigation.css include an absolute path? (navigation.js does not!)
tw will import tid files as tiddlers but not others (for which it creates basic metadata). Try renaming .css as .tid. You can also put all metadata in a separate .css.meta file.
Hope I did not missed the point
Cheers
Sylvain
@sycom
Try renaming .css as .tid.
I think you should put them outside your plugins/MaxGyver83 folder
--
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/pjqXOaHGw1w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/172139aa-a4b9-4660-95bd-441e62d501d7%40googlegroups.com.