[tw5] tid2md.py: Convert WikiText tiddlers (.tid) to Markdown tiddlers (.md)

2022-09-24 Thread MaxGyver
Hi TiddlyWiki users,

I would like to share my Python script that I use to convert WikiText 
tiddlers (.tid) to Markdown tiddlers (.md):

https://github.com/MaxGyver83/tid2md

Markdown has the advantage that it's used in many places (p.e. GitHub, 
GitLab, BitBucket, StackOverflow, Reddit) and is supported by many editors, 
parsers and other tools. When you often copy tiddlers (or parts of them) to 
other websites or when you edit/process your .tid files with tools except 
TiddlyWiki itself, it might make sense to write your tiddlers in Markdown 
or migrate those already written in WikiText to Markdown.

I also use this script to create a static version of my wiki directly 
(meaning not using TiddlyWiki) from the .tid files. Of course, there is a 
second step necessary to convert the resulting .md files to HTML. But it's 
much faster than using `tiddlywiki /path/to/wiki --render 
'$:/core/templates/alltiddlers.template.html' /tmp/static_wiki.html 
text/plain` and the resulting HTML file is much simpler.

If you are interested, just try it (on a copy of your wiki) and create an 
issue if something does not work as expected.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dd33a3ff-9344-457f-a9bd-a4707713b0e6n%40googlegroups.com.


[tw5] Re: How to move tidler in the list of opened tidders.

2021-06-12 Thread MaxGyver
@inmy... That's cool! Actually I'm looking for a button that moves the 
current tiddler to the top of the story river. I simply modified your "Move 
Tiddler Up" tiddler to use "move:-1000" instead of "move:-1". Do you have 
an idea how I could also move the viewport to the top? Can I make the 
button scroll the page to the top after moving the tiddler?
inmy...@gmail.com schrieb am Samstag, 3. Dezember 2016 um 17:58:07 UTC+1:

> Ok, the quick version is here: 
> http://ooktech.com/jed/ExampleWikis/ReorderOpen/
>
> It just lets you move a tiddler up or down by one using a modified version 
> of the Open tab in the sidebar. I could add buttons to do things like move 
> up/down by 5 or 10 or something, but the problem is that you very quickly 
> get way too many buttons to be useful. If anyone really wants that added I 
> can put in a move up by 5 or 10 button but for now I am not going to worry 
> about it.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8f647d85-2814-4b70-af92-71ff489ca8e2n%40googlegroups.com.


[tw5] Re: Plugin "tw5-keyboard-navigation"

2020-05-12 Thread MaxGyver
Hello springer,

I made an update: now the actual keyboard layout is respected by default 
and I have added an option to ignore it and to use QWERTY key positions 
anyway.

Check version 0.3.0 at 
https://maximilian-schillinger.de/tw5-keyboard-navigation-plugin.html

Best regards
Max


Am Freitag, 1. Mai 2020 19:48:56 UTC+2 schrieb springer:
>
> Max,
>
> Thanks for the keyboard navigation options! 
>
> It seems your plugin listens for hardware keystroke events [if that's the 
> right term] ... So, some users typing on, say a Dvorak layout (as I do) 
> cannot type j to jump and e to edit, but will need to use the physical keys 
> that *would* count as j and e (on Qwerty systems). So either the 
> documentation should clarify that point, or you should get your code to 
> capture the keystroke after it has been parsed by the system. (I don't mind 
> just making a post-it with my effective keystroke values, but some 
> international users, in particular, may not recognize the problem, or may 
> think some expected responses are missing.)
>
> -Springer
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1b90867f-148e-48e4-8327-e669eb588e82%40googlegroups.com.


[tw5] Re: Plugin "tw5-keyboard-navigation"

2020-04-30 Thread MaxGyver


> Max, as TW 5.1.22 has global shortcuts, is it possible to use the core 
> features and not install extra JS?
>

Good question! For example, I'm using JS in order to determine which 
tiddler is the current one (because more than one can be in the viewport). 
I don't think that there is a core feature for doing that.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d0ac7e02-569c-4c4c-9f77-445f9ffdfe01%40googlegroups.com.


[tw5] Re: Plugin "tw5-keyboard-navigation"

2020-04-30 Thread MaxGyver
 *Apparently, HTML does not work here. This is a more readable version of 
my last mail:*

Hi all,

some time ago I created a TiddlyWiki plugin for easier navigation without 
using a mouse. It adds some useful key mappings:

   - *j* / *k*: Scroll down/up to the next/previous tiddler in the story 
   river (instead of scrolling page-wise).
   - *e*: Edit the currently "selected" tiddler.
   - *c*: Close the selected tiddler.
   - *Esc*: Unfocus the search box (when active) in order to cancel a 
   search and go on navigating with your keyboard.

Today, I added new features:

   - When you search something, you can open the first match with *Return*. 
   Without this plugin you have to press *Tab*, *Tab*, *Tab*, *Tab*, 
   *Return*.
   - When you search something and you want to tab through the results, a 
   single *Tab* brings you directly to the first match (so you save three 
   *Tab*s).
   - When you scroll to the next or previous tiddler via *j* / *k*, the 
   scrolling is smooth. When you press these keys repeatedly (delta < 800 ms), 
   you jump instantly to the next (or previous) tiddler.

Check this demo page 
<https://maximilian-schillinger.de/tw5-keyboard-navigation-plugin.html> or 
the plugin source code at GitHub 
<https://github.com/MaxGyver83/tw5-keyboard-navigation>. I hope this is 
useful for somebody.

Best regards,
Max


Am Donnerstag, 30. April 2020 16:10:36 UTC+2 schrieb MaxGyver:
>
> Hi all,
>
> some time ago I created a TiddlyWiki plugin for easier navigation without 
> using a mouse. It adds some useful key mappings:
>
>- j / k: Scroll down/up to the next/previous 
>tiddler in the story river (instead of scrolling page-wise).
>- e: Edit the currently "selected" tiddler.
>- c: Close the selected tiddler.
>- Esc: Unfocus the search box (when active) in order to 
>cancel a search and go on navigating with your keyboard.
>
> Today, I added new features:
>
>- When you search something, you can open the first match with 
>Return. Without this plugin you have to press Tab, 
>Tab, Tab, Tab,Return.
>- When you search something and you want to tab through the results, a 
>single Tab brings you directly to the first match (so you save 
>three Tabs).
>- When you scroll to the next or previous tiddler via j 
>/ k, the scrolling is smooth. When you press these keys 
>repeatedly (delta < 800 ms), you jump instantly to the next (or previous) 
>tiddler.
>
> Check this demo page 
> <https://maximilian-schillinger.de/tw5-keyboard-navigation-plugin.html> 
> or the plugin source code at GitHub 
> <https://github.com/MaxGyver83/tw5-keyboard-navigation>. I hope this is 
> useful for somebody.
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/25929090-7563-4e58-97dc-b6f35a787241%40googlegroups.com.


[tw5] Plugin "tw5-keyboard-navigation"

2020-04-30 Thread MaxGyver
Hi all,

some time ago I created a TiddlyWiki plugin for easier navigation without 
using a mouse. It adds some useful key mappings:

   - j / k: Scroll down/up to the next/previous 
   tiddler in the story river (instead of scrolling page-wise).
   - e: Edit the currently "selected" tiddler.
   - c: Close the selected tiddler.
   - Esc: Unfocus the search box (when active) in order to 
   cancel a search and go on navigating with your keyboard.

Today, I added new features:

   - When you search something, you can open the first match with 
   Return. Without this plugin you have to press Tab, 
   Tab, Tab, Tab,Return.
   - When you search something and you want to tab through the results, a 
   single Tab brings you directly to the first match (so you save 
   three Tabs).
   - When you scroll to the next or previous tiddler via j 
   / k, the scrolling is smooth. When you press these keys 
   repeatedly (delta < 800 ms), you jump instantly to the next (or previous) 
   tiddler.

Check this demo page 
 or 
the plugin source code at GitHub 
. I hope this is 
useful for somebody.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8e077aa5-655a-4f30-8da7-29f11faa5da3%40googlegroups.com.


[tw5] Re: Macro with variable number of arguments

2020-04-20 Thread MaxGyver
Thanks, Tony!

I'm wondering how many people on earth really understand the TiddlyWiki 
macro language :-)

Why do you use *currentTiddler* as variable?

Am Montag, 20. April 2020 04:58:53 UTC+2 schrieb TonyM:
>
> Updated
>
> New Macro name and a button one as well
>
> \define kbd(string delim:" " sep:"+")
> <$list filter="[[$string$]split[$delim$]first[]]">< >>
> <$list filter="[[$string$]split[$delim$]rest[]]"> $sep$ <<
> currentTiddler>>
> \end
> \define dummy-button(string delim:" " sep:" ")
> <$list filter="[[$string$]split[$delim$]first[]]"><$button 
> tooltip="demonstration 
> button only"><>
> <$list filter="[[$string$]split[$delim$]rest[]]"> $sep$ <$button 
> tooltip="demonstration 
> button only"><>
> \end
>
> <> <>
>
>
> <> 
> <" >>
> <>
> <>
>
>
> <>
> <>
> <" >>
> <>
> <>
>
>
> On Monday, April 20, 2020 at 10:41:12 AM UTC+10, TonyM wrote:
>>
>> Max,
>>
>> Personally I have a different approach to this; and it is more general in 
>> use. Paste this onto Tiddlywiki.com
>>
>>- If you are only making use of space delimiters anyway, do it 
>>yourself in a single parameter
>>- This below defaults to space delimiter and + separator as you wish
>>- By using comma you can do the same for multiple words
>>- By using "/" you can make a system tiddler easier to read
>>
>>
>> \define keys(string delim:" " sep:"+")
>> <$list filter="[[$string$]split[$delim$]first[]]"><> >>
>> <$list filter="[[$string$]split[$delim$]rest[]]"> $sep$ <<
>> currentTiddler>>
>> \end
>>
>> <>
>> <>
>> <" >>
>> <>
>> <>
>>
>> Need any more features?
>>
>> Regards
>> Tony
>>
>> On Monday, April 20, 2020 at 1:05:31 AM UTC+10, MaxGyver wrote:
>>>
>>> Hi all,
>>>
>>> I often use the *kbd* tag for showing (keyboard) keys in my TiddlyWiki, 
>>> like that:
>>>
>>> Ctrl+Shift+A
>>>
>>> Typing this a lot is no fun, so I made a macro:
>>>
>>> \define key(text: "Shift") $text$
>>>
>>> It can be used this way:
>>>
>>> <>
>>>
>>> Now I could call this macro two or three times for creating a key 
>>> combination. But it's even easier with additional macros:
>>>
>>> \define combo2(key1: "Ctrl", key2: "x") $key1$+$key2$>> kbd>
>>>
>>> \define combo3(key1: "Ctrl", key2: "Shift", key3: "x") $key1$<
>>> /kbd>+$key2$+$key3$
>>>
>>> So I can write:
>>>
>>> <>
>>>
>>> which generates the key combination of my example at top.
>>>
>>> Just for curiosity:
>>> Is is possible to create a single macro that works for either one, two 
>>> or three keys? 
>>>
>>> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7eca77f8-8805-4475-a7d5-ff38ae823b5a%40googlegroups.com.


[tw5] Re: Macro with variable number of arguments

2020-04-19 Thread MaxGyver
@Mat: Thanks for your reply! Yes, I know that I can pass empty strings as 
arguments but I don't want to end up with empty keys. And I had no idea how 
to skip a key if an empty string was given.

@Eric: Awesome! This works perfectly. Thank you!


Am Sonntag, 19. April 2020 17:24:54 UTC+2 schrieb Eric Shulman:
>
> On Sunday, April 19, 2020 at 8:05:31 AM UTC-7, MaxGyver wrote:
>>
>> I often use the *kbd* tag for showing (keyboard) keys in my TiddlyWiki, 
>> like that:
>> \define combo3(key1: "Ctrl", key2: "Shift", key3: "x") $key1$<
>> /kbd>+$key2$+$key3$
>> So I can write:
>> <>
>> Is is possible to create a single macro that works for either one, two or 
>> three keys? 
>>
>
> This will do what you want:
> \define key(key1,key2,key3)
> \whitespace trim
> $key1$
> <$reveal text="$key2$" type="nomatch" default="">+$key2$ $reveal>
> <$reveal text="$key3$" type="nomatch" default="">+$key3$ $reveal>
> \end
>
> With the above macro, you can then write any of the following
> <>
> <>
> <>
>
> Note: The <$reveal> widget usually takes a "state" parameter, which is the 
> name of a tiddler containing a text field with the value to compare.  By 
> omitting the "state" parameter, and using the "default" parameter instead, 
> you can use $reveal to compare two literal values, without needs a tiddler 
> in which to store a state value.
>
> enjoy,
> -e
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/08ec3250-4758-4240-be94-92b4ae7cb244%40googlegroups.com.


[tw5] Macro with variable number of arguments

2020-04-19 Thread MaxGyver
Hi all,

I often use the *kbd* tag for showing (keyboard) keys in my TiddlyWiki, 
like that:

Ctrl+Shift+A

Typing this a lot is no fun, so I made a macro:

\define key(text: "Shift") $text$

It can be used this way:

<>

Now I could call this macro two or three times for creating a key 
combination. But it's even easier with additional macros:

\define combo2(key1: "Ctrl", key2: "x") $key1$+$key2$

\define combo3(key1: "Ctrl", key2: "Shift", key3: "x") $key1$<
/kbd>+$key2$+$key3$

So I can write:

<>

which generates the key combination of my example at top.

Just for curiosity:
Is is possible to create a single macro that works for either one, two or 
three keys? 

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b911bfff-d0d6-4742-ba30-d6db438e5aea%40googlegroups.com.


[tw5] Re: Syntax highlighting for .tid files in the Linux command line

2020-02-10 Thread MaxGyver
Just in case somebody else is interested in syntax highlighting for .tid 
files in the terminal:

I have created a pull request for Pygments adding a TiddlyWiki5 lexer:
https://github.com/pygments/pygments/pull/1390

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1ed9da13-8cfe-450e-b83a-7c9503a3b5be%40googlegroups.com.


[tw5] Syntax highlighting for .tid files in the Linux command line

2020-02-01 Thread MaxGyver
Hi all,

I use TiddlyWiki5 with Node.js. That means that I've got one .tid file per 
tiddler on my hard disk. When I want to edit a file without a browser, I 
use this plugin  for vim. But 
sometimes I just want to print a file's content with syntax highlighting. 
Usually I use *bat *, *pygmentize 
* or *highlight 
* for this but 
none of these seems to support TiddlyWiki syntax. bat uses the syntect 
 library for syntax highlighting 
which uses Sublime Text syntax definitions and I found a Sublime 3 syntax 
file for TiddlyWiki5 *.tid files  
but apparently it's not of that type of Sublime syntax files that syntect 
understands.

I started to create my own syntax file for pygmentize/Pygments (based on 
the Markdown syntax file). I'm just wondering if I'm really the first one 
who wants .tid syntax highlighting for the console (for bat or pygmentize 
or highlight). Maybe this already exists and it's just named differently? 
TiddlyWiki writes about *WikiText*. Is this a standardized markup language? 
Or just a generic word for a "wiki markup language"? Or is there any other 
syntax highlighter for Linux that supports TiddlyWiki5/WikiText?

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bb65a730-f5f8-4b38-9220-83b2442318bc%40googlegroups.com.


Re: [tw5] Re: How to add group for untagged tiddlers to table of contents?

2019-11-07 Thread MaxGyver
@Mark: 
<$list filter="[!is[system]] -[enlist[Tag1 Tag2 Tag3]tagging[]]" >
Yes, that looks cleaner. Thanks.

@Tony:

> Later you can look at grouping here https://tiddlywiki.com/#GroupedLists
>
This indents my list at least but it's still very different than the rest 
of the table of contents.

I suppose the cleanest solution would be to add a macro based on 
*toc-selective-expandable*.

\define toc-selective-expandable-include-untagged(tag,sort:"",
itemClassFilter,exclude,path)
<$vars tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<
__itemClassFilter__>> path={{{ [<__path__>addsuffix[/]addsuffix<__tag__>] 
}}}>
  <$set name="excluded" filter="""[enlist<__exclude__>] [<__tag__>]""">

  <$list 
filter="""[all[shadows+tiddlers]tag<__tag__>!has[draft.of]$sort$] 
-[<__tag__>] -[enlist<__exclude__>]""">
<$list filter="[all[current]toc-link[no]]" variable="ignore" 
emptyMessage=<> >
  <$macrocall $name="toc-unlinked-selective-expandable-body" 
tag=<<__tag__>> sort=<<__sort__>> itemClassFilter=<<__itemClassFilter__>> 
exclude=<> path=<>/>

  

  

\end


<>


Maybe I can somehow add an untagged[]-filter to the list created in that 
macro. But it's like learning a new programming language :-(

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2c482b3a-51b4-4086-85e7-870f377ebc34%40googlegroups.com.


[tw5] Re: How to add group for untagged tiddlers to table of contents?

2019-11-04 Thread MaxGyver
Thanks for your answers!
 

> You are after a list of tiddlers not tagged with a specific set of tags, 
> rather than tagless tiddlers?
>

I want all tagless tiddlers because the table of contents only lists all my 
tagged tiddlers.

So a filter like !has[tags] or untagged[] seems to be fine.

I would expect that these three filters return the same tiddlers (because I 
only use three different tags so far):

   1. <$list filter="[!is[system]!has[tags]]">
   2. <$list filter="[!is[system]!tag[Tag1]!tag[Tag2]!tag[Tag3]]">
   3. <$list filter="[!is[system] untagged[]]">

But I get 12 vs. 45 vs. 77 tiddlers. I'll have a look into what the 
tiddlers missing in list 1 and in list 2 have in common.

And does anybody know how I get my filter into a foldable group like the 
tag groups in the table of contents?

Best regards,
Max


Am Sonntag, 3. November 2019 23:37:13 UTC+1 schrieb TonyM:
>
> To clarify
>
> You are after a list of tiddlers not tagged with a specific set of tags, 
> rather than tagless tiddlers?
>
> then you wish to automate the addition of tags to the specific set of tags 
> without editing wiki text?
>
> first I would start with a tag of tags E.g.: "tag group" and tag your 
> specific set of tags. Add-on another specific tag by tagging it with the 
> "tag group"
>
> This is not the full solution (I'm on my mobile) but consider the use of 
> the subfilter operator.
>
> Regards
> Tony 
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3cbf08be-6fb8-4823-85fe-3d191b53ce07%40googlegroups.com.


Re: [tw5] Re: How to include some JavaScript code in a Node.js TiddlyWiki

2019-11-04 Thread MaxGyver
Hi Sylvain,

Try renaming .css as .tid.
>

Thank you! That was the solution.

I think you should put them outside your plugins/MaxGyver83 folder
>

Well, I just followed the instructions on tiddlywiki.com/dev 
.
 
The plugin folder is a GitHub repo at the same time. So the *README.md* 
must be in that folder.

I made a little script that moves *README.md* to */tmp*, runs *node 
./tiddlywiki.js editions/tw5.com --build index* and then moves *README.md* 
back into the plugin/repository folder. That's okay, but I'm wondering how 
other plugin developers do it.

Best regards,
Max


Am Sonntag, 3. November 2019 23:27:22 UTC+1 schrieb Sycom:
>
> Hi
>
> > 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
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/172139aa-a4b9-4660-95bd-441e62d501d7%40googlegroups.com.


[tw5] How to add group for untagged tiddlers to table of contents?

2019-11-03 Thread MaxGyver
Hi all,

I'm using a contents tab in the sidebar:


<>


This gives me an expandable table of contents like that:

> Tag1
> Tag2
> Tag3

How can I add a group for all tiddlers without a tag?

As a workaround, I have added a filter:


<>

!!! Others:
<$list filter="[!is[system]!tag[Tag1]!tag[Tag2]!tag[Tag3]]">

This gives me:

> Tag1
> Tag2
> Tag3

Others:

Tiddler1
Tiddler2
...

That way the untagged tiddlers are not in a expandable group and I have to 
update the filter everytime I add a new tag.

Is there a cleaner solution?

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4c8a5702-7247-4cbf-93d9-cc82b3a15f3b%40googlegroups.com.


Re: [tw5] Re: How to include some JavaScript code in a Node.js TiddlyWiki

2019-11-03 Thread MaxGyver
Finally, it's a real plugin: see the new demo page 
<http://maximilian-schillinger.de/tw5-keyboard-navigation-plugin.html>.

I followed this HowTo 
<https://tiddlywiki.com/dev/#Developing%20plugins%20using%20Node.js%20and%20GitHub>.
 
It recommends adding a README file when creating the GitHub repo. But now 
this *README.md* is also included in the plugin (contents tab).

   1. How can I exclude it (same for *tw5-keyboard-navigation.html* and 
   *tw5-keyboard-navigation-plugin.html*)?
   2. Why is does *navigation.css* include an absolute path? (
   *navigation.js* does not!)


Best regards,
Max


Am Sonntag, 3. November 2019 10:46:34 UTC+1 schrieb MaxGyver:
>
> @Jeremy: Thanks for your answer! I was looking for a quick and easy 
> solution at first, but on the long run I want to create a real plugin that 
> can be imported by drag and drop.
>
> @Tony: I have never tried the sticky title option before. This looks like 
> a good feature. And your proposal sounds absolutely reasonable.
>
>
> Am Sonntag, 3. November 2019 07:10:52 UTC+1 schrieb TonyM:
>>
>> Max
>>
>> 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
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d1700842-184a-44eb-84f8-aba7e6c9b6c3%40googlegroups.com.


Re: [tw5] Re: How to include some JavaScript code in a Node.js TiddlyWiki

2019-11-03 Thread MaxGyver
@Jeremy: Thanks for your answer! I was looking for a quick and easy 
solution at first, but on the long run I want to create a real plugin that 
can be imported by drag and drop.

@Tony: I have never tried the sticky title option before. This looks like a 
good feature. And your proposal sounds absolutely reasonable.


Am Sonntag, 3. November 2019 07:10:52 UTC+1 schrieb TonyM:
>
> Max
>
> 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
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5e0c121a-e4e9-472c-96eb-57cdbf5753a2%40googlegroups.com.


Re: [tw5] Re: How to include some JavaScript code in a Node.js TiddlyWiki

2019-11-01 Thread MaxGyver

Hello again,

I fixed some bugs and have created a repo at GitHub 
<https://github.com/MaxGyver83/tw5-keyboard-navigation> and a demo page 
<http://maximilian-schillinger.de/tw5-keyboard-navigation.html> for this 
plugin.

Just in case somebody already wants to test it.

I still have to make a proper plugin out of it.

Best regards,
Max


Am Montag, 28. Oktober 2019 23:25:09 UTC+1 schrieb MaxGyver:
>
> 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 
> documentation
>
> But I will share it before everything is finished because it could be 
> useful for some people as it is right now.
>
> Best regards
> Max
>
> Miha Lunar schrieb am Mo., 28. Okt. 2019, 22:14:
>
>> Glad to hear it!
>>
>> The navigation plugin you made seems cool, is it going to be posted 
>> anywhere? :) 
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9bbeacf6-2b0f-42cb-aaf5-edb958a36b2c%40googlegroups.com.


[tw5] Re: How to include some JavaScript code in a Node.js TiddlyWiki

2019-10-28 Thread MaxGyver
Thanks Sylvain, thanks Miha!

This works perfectly!

For other readers: I added everything Miha posted (which includes Sylvain's 
special declarations).

Best regards
Max


Am Montag, 28. Oktober 2019 07:13:41 UTC+1 schrieb Miha Lunar:
>
> It should work with .js and .js.meta files. Try using the startup module 
> type and structuring your code like this:
>
> (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 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5737107c-27f2-45b2-ac7a-24a2905fd147%40googlegroups.com.


[tw5] Re: wasavi + Tiddlywiki

2019-10-06 Thread MaxGyver
One additional information:

When I go to tiddlywiki.com and create a tiddler, the plugin works. But not 
in my local tiddlywiki.


Am Sonntag, 6. Oktober 2019 20:37:46 UTC+2 schrieb MaxGyver:
>
> Hi all,
>
> I just have discovered the wasavi <http://appsweets.net/wasavi/> plugin 
> for Firefox and I would like to use it in my TiddlyWiki. It works good with 
> all textareas except in TiddlyWiki. I suppose that TiddlyWiki grabs all key 
> inputs and thus prevents wasavi from being triggered. Does anybody have 
> experience with this plugin?
>
> In this thread 
> <https://groups.google.com/d/msg/tiddlywiki/fKKBGPfG7lU/JfnNzeuEBQAJ> 
> somebody says that he used wasavi with TiddlyWiki (over one year ago) but 
> maybe something has changed since then.
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f1e82285-6fcd-47ff-b4c5-665e18d0e964%40googlegroups.com.


[tw5] wasavi + Tiddlywiki

2019-10-06 Thread MaxGyver
Hi all,

I just have discovered the wasavi  plugin for 
Firefox and I would like to use it in my TiddlyWiki. It works good with all 
textareas except in TiddlyWiki. I suppose that TiddlyWiki grabs all key 
inputs and thus prevents wasavi from being triggered. Does anybody have 
experience with this plugin?

In this thread 
 
somebody says that he used wasavi with TiddlyWiki (over one year ago) but 
maybe something has changed since then.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b645b328-2217-498c-b62f-c1a9941a38f7%40googlegroups.com.


[tw5] Change filename for export of all tiddlers as static HTML file

2019-08-15 Thread MaxGyver
Hi all,

I use a single file TiddlyWiki. Every time I export all tiddlers as a 
static HTML file, it will be saved as *tiddlers.html*. Then I rename it 
manually. Is there a way to define another default filename?

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dd2535d3-45ee-48bd-8c58-cae3ac2da3bc%40googlegroups.com.


[tw5] Re: TW5 Sortable Tables

2019-08-04 Thread MaxGyver
I know that this is a very old thread but it's still interesting (at least 
for me). I was looking for the same feature.

I played around with that linked *sorttable.js* and TiddlyWiki. This is how 
you can do it:

Add a tiddler tagged *$:/tags/RawMarkup* with this content:
https://kryogenix.org/code/browser/sorttable/sorttable.js";>

You could also download the javascript file and link it locally.

Save and reload your TiddlyWiki.

Now you can create sortable tables like that:

@@.sortable
| letter | DE | EN |h
| y | 0,04 % | 1,97 % |
| x | 0,03 % | 0,15 % |
| q | 0,02 % | 0,10 % |
@@


There is one drawback: The wiki must be saved and reloaded after editing a 
tiddler that contains a sorted table.

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b50af62c-ceb1-4037-b921-8d33769e30a2%40googlegroups.com.


[tw5] Re: Macro for colored table cells

2019-07-15 Thread MaxGyver
Awesome!!!

Thanks a lot!

Am Montag, 15. Juli 2019 21:01:35 UTC+2 schrieb Mark S.:
>
> It's unclear how you're putting the pieces together, but the macro has to 
> be defined at the top of the tiddler. This seems to work:
>
> \define pos() +
>
> 
> /* compensating the cell padding */
> .cell { margin:-1px -7px; padding:1px 7px; }
> .positive { background-color:#afa; }
> .negative { background-color:#faa; }
> 
>
> | | manual | macro |h
> | A | - | - |
> | B | + | <> |
>
>
>
>
> On Monday, July 15, 2019 at 11:35:21 AM UTC-7, MaxGyver wrote:
>>
>> Recently I have switched from TiddlyWiki Classic to TiddlyWiki 5. Now it 
>> has become complicated to color individual table cells. I have found this 
>> workaround (somewhere in this newsgroup):
>>
>> 
>> /* compensating the cell padding */
>> .cell { margin:-1px -7px; padding:1px 7px; }
>> .positive { background-color:#afa; }
>> .negative { background-color:#faa; }
>> 
>>
>> | | manual |h
>> | A | - |
>> | B | + |
>>
>> This still requires a lot of typing. So I tried creating a macro for that:
>>
>> \define pos() +
>>
>> | | manual | macro |h
>> | A | - | - |
>> | B | + | <> |
>>
>> But this doesn't work. The lower right table cell stays empty. What am I 
>> doing wrong? Is it possible to create a macro containing HTML at all?
>>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8c73c9d5-6f28-40ab-9040-f167c8d3b513%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Macro for colored table cells

2019-07-15 Thread MaxGyver
Recently I have switched from TiddlyWiki Classic to TiddlyWiki 5. Now it 
has become complicated to color individual table cells. I have found this 
workaround (somewhere in this newsgroup):


/* compensating the cell padding */
.cell { margin:-1px -7px; padding:1px 7px; }
.positive { background-color:#afa; }
.negative { background-color:#faa; }


| | manual |h
| A | - |
| B | + |

This still requires a lot of typing. So I tried creating a macro for that:

\define pos() +

| | manual | macro |h
| A | - | - |
| B | + | <> |

But this doesn't work. The lower right table cell stays empty. What am I 
doing wrong? Is it possible to create a macro containing HTML at all?

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e65ea24d-0e8c-4462-b948-d6e9a953778f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.