[tw5] Clipboard hook- convert dates into TiddlyWiki format

2021-11-14 Thread thor...@gmail.com
TiddlyWiki has it's own format for representing dates for `created` and 
`modified` fields. To be consistent, I wanted to use this date format for 
other fields, but didn't feel like manually converting them myself.

So I wrote a Python script and uploaded it for others to try 
:): https://github.com/cr1901/tw-timestamp

To install, `git clone https://github.com/cr1901/tw-timestamp`, and then 
use `pip install .` or `pip install -e .` (if you want to hack on it) to 
add a `tw-timestamp` command to your path. I will upload a package to PyPI 
soon enough, but I'd like people to test-drive this first to flush out any 
problems.

An example session looks like this, for instance, when I copy the text 
"11/12/2021, 4:35 PM" to the clipboard. This gets converted to 
"202221350" (notice that the time is UTC), and will be pasted as 
such when the user pastes:

```
$ tw-timestamp -t US/Eastern
TW date conversion active
11/12/2021, 4:35 PM => 202221350
TW date conversion disabled
```

I hope other people find this useful.

-- 
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/47e51565-40b1-4de8-8f98-10f16ff844c4n%40googlegroups.com.


[tw5] Bullets plugin (notification for Google Groups)

2021-11-14 Thread Stobot
For any of you that have not switched over to Talk TiddlyWiki, I wanted to 
point you at a recent plugin announcement there in case you're interested.

Bullets is a plugin to make wikitext lists easier to edit
Discussion: Bullets plugin - first look - Plugins - Talk TW (tiddlywiki.org) 

Site: Bullets — Enhanced list editing (stobot.github.io) 


Additionally, I don't think I put a note here for my last plugin either. 

Stickies is a plugin to add inline wikitext todos
Discussion: Sticky Todo Plugin - Initial Release - Plugins - Talk TW 
(tiddlywiki.org) 

Site: Stickies — lightweight todo system (stobot.github.io) 


-- 
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/c183bd3f-88a3-49ea-9a97-d40543b79bc3n%40googlegroups.com.


[tw5] Re: Combobox idea

2021-11-14 Thread Télumire
 With the content type text/css , tiddlywiki treats the content of the 
tiddler as plain text, and since I rely on wikitext parsing this breaks the 
stylesheet. You need to use the content type text/vnd.tiddlywiki  or leave 
the type field blank (since this is the default type for a tiddler).

I uploaded a demo on https://combobox-demo.tiddlyhost.com/, it works both 
on my laptop (tested with edge, chrome, firefox, brave) and smartphone 
(chrome and firefox android). If this still doesn't work for you maybe it 
is because of one of your browser add-ons ?

Another possible explanation is that you have a broken CSS stylesheet 
somewhere on your wiki, this can break subsequent stylesheets. 

I investigated and it doesn't seem to be the case in your demo. 

Le dimanche 14 novembre 2021 à 09:02:10 UTC+1, Mat a écrit :

> Thanks Télumire using your exact styling tiddler, but with an added 
> type:text/css  this is how it appears , 
> i.e om my Win 10 machine using Chrome, Brave and Firefox I see a 
> selectwidget but no visible button and you can't type into it. Same thing 
> on my android phone, Brave browser. Does my page not appear like that on 
> your machine? BTW, on your webpage, the combobox tiddler is folded and on 
> my phone I can't access the unfold button.
>
> <:-)
> On Sunday, November 14, 2021 at 3:27:46 AM UTC+1 Télumire wrote:
>
>>  
>> Hi @Mat, the apostrophes are intended, they prevent the wikitext parsing 
>> to convert the -- into – (the wikitext cant be disabled with a pragma rule 
>> or a content type in thatcase because this would prevent the use of 
>> widgets).
>>
>> Drag & drop this tiddler in your wiki and it should work fine (it does on 
>> my end in a fresh tiddlywiki) :)
>>
>>
>>
>> Le dimanche 14 novembre 2021 à 00:09:51 UTC+1, Mat a écrit :
>>
>>> @Télumire - I now tried to copy your code but it doesn't work properly. 
>>> I've tried both from your attached tid file and using the copy-to-clipboard 
>>> feature on your webpage but the code seems buggy e.g the -- prefix on css 
>>> variables are enclosed in apostrophes. 
>>>
>>> This is what I get 
>>> ,
>>>  
>>> i.e the "Combobox" tiddler is your downloaded attachment tid above, and in 
>>> the tiddler "A styled combobox" I've tweaked some stuff so it basically 
>>> works but the button arrow is not showing.
>>>
>>> What am I doing wrong or missing?
>>>
>>> Thanx
>>>
>>> <:-)
>>> On Friday, November 5, 2021 at 2:00:46 AM UTC+1 Télumire wrote:
>>>
 Ok I think this time I got it. Here : 
 https://Telumire.github.io/TiddlyTweaks/index.html#:%5B%5BCombobox%5D%5D



 Le jeudi 4 novembre 2021 à 23:17:51 UTC+1, Télumire a écrit :

>
> @Eric Shulman my bad, I should have tested it a bit more. Thanks for 
> pointing this out ! @Mat, this is because the select element is OS 
> dependent according to this stack overflow answer : 
> https://stackoverflow.com/a/1895485/11549574
>
> This one can be used properly inline (with a text after and before) 
> and use a pseudo element as a select button (I left it as a red square 
> but 
> it's easy to customize), but there is still an issue with vertical 
> align.. 
> I'm still sharing it just in case, if I find something better I'll post 
> it  
> :
>
> <$vars
>
> height="20px"
>
> >
> 
> .combobox{
> position: relative;
> display: inline-block;
> width: 150px;
> height:<>;
> background:red;
> margin-right:20px;
> }
>
> .combobox .select-btn{
> width:100%;
> cursor:pointer;
> opacity:0;
> pointer-event:all;
> }
>
> .combobox input{
> top:0;
> position:absolute;
> width:100%;
> }
>
> .combobox .drodown-btn{
> width:calc(<> + 100%);
> top:0;
> position:absolute;
> cursor:pointer;
> }
>
> .combobox .drodown-btn:after{
> display:block;
> content:"";
> width:calc(<> + 4px);
> position:absolute;
> inset:0 0 0 auto;
> background:red;
> pointer-events: none;
> }
> 
>
>
> BEFORE<$edit-text field=selection placeholder="type or select"/>AFTER
>
> before
> 
> 
> <$select field=selection class="select-btn" >
> A Tale of Two Cities
> A New Kind of Science
> The Dice Man
> 
> 
> <$edit-text field=selection placeholder="type or select"/>
> 
> after
>
>
> Le jeudi 4 novembre 2021 à 22:48:23 UTC+1, Mat a écrit :
>
>> @Télumire, I appreciate your effort! @Eric, thank you for your shrewd 
>> analysis!
>>
>> Does anyone know why it is barely possible to manipulate this 
>> dropdown though? I do get the following to work, so the options *are* 
>> targettable:
>>
>> .sel

[tw5] Re: Bug in TW 5.2.0 in zoomin view.

2021-11-14 Thread Siniy-Kit
TW 5.1.21 worked good  
https://heeg.ru/shop2_2.html?id=16gDZVsB8FOIxrsFKbkbBNWC37lPUAfKOGf-rCVxeOmY


вторник, 9 ноября 2021 г. в 19:57:29 UTC+3, jeremy...@gmail.com: 

> Hi Siniy-Kit,
>
> I can confirm the problem with v5.2.0. I also checked v5.1.23 and it seems 
> to have the same problem.
>
> Do you know when the problem was introduced? Did it indeed ever work 
> properly?
>
> Best wishes
>
> Jeremy
>
> On Tuesday, November 9, 2021 at 4:45:33 PM UTC Jeremy Ruston wrote:
>
>> Hi Siniy-Kit
>>
>> Thanks for the report, I'll investigate.
>>
>> Best wishes
>>
>> Jeremy
>>
>> On Sunday, November 7, 2021 at 9:40:19 AM UTC Siniy-Kit wrote:
>>
>>> Jeremy, help me please. I want to update my template to  new version, 
>>> but it works only with zoomin view. 
>>>
>>> четверг, 28 октября 2021 г. в 15:52:49 UTC+3, Siniy-Kit: 
>>>
 Old TW5 works good. But now it has bad auto scroll while navigating 
 between tiddlers 
 For example open this tiddler 
 https://tiddlywiki.com/#Filter%20Operators then make zoomin view
 [image: Снимок экрана 2021-10-28 154440.png]
  then go back to Filter Operators tiddler and press "range"
 [image: Снимок экрана 2021-10-28 154716.png]

 after click you will see this
 [image: Снимок экрана 2021-10-28 154853.png]

 I want to see the top of this tiddler, but it autoscroll to middle. Can 
 we fix this bug? 

>>>

-- 
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/1e2f6793-cb6e-4298-928d-6ec69e65a88cn%40googlegroups.com.


[tw5] Re: Upgrade hint

2021-11-14 Thread Ste
https://tiddlywiki.com/#Upgrading 

I know it's not that obvious from the front page AND its not the first 
tiddler that pops up when you search 'uograde' AND you won't find it 
searching for update but :D

On Sunday, 14 November 2021 at 15:50:42 UTC peter...@gmail.com wrote:

> What a cool upgrade - version 5.2  - many thanks for all the work that 
> went into it. i am an enthusiastic user of the offline-version (HTML-only) 
> of TW for my personal note keeping and  I try to keep it as pure as 
> possible. Despite my engineering background I would like not to bother with 
> any technical details here. Therefore I was looking for a "foolproof" 
> upgrade hint (like for other software). There is - but I had to google for 
> it. No link included in the extensive documentation here 
> https://tiddlywiki.com/ How to start is included, but not how to upgrade. 
> Please amend, thanks!
>

-- 
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/e07a759c-eb97-442f-a16b-093566fbbab4n%40googlegroups.com.


[tw5] Upgrade hint

2021-11-14 Thread Peter Erne
What a cool upgrade - version 5.2  - many thanks for all the work that went 
into it. i am an enthusiastic user of the offline-version (HTML-only) of TW 
for my personal note keeping and  I try to keep it as pure as possible. 
Despite my engineering background I would like not to bother with any 
technical details here. Therefore I was looking for a "foolproof" upgrade 
hint (like for other software). There is - but I had to google for it. No 
link included in the extensive documentation here https://tiddlywiki.com/ 
How to start is included, but not how to upgrade. Please amend, thanks!

-- 
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/41ea83bf-ed4e-4239-986c-3b0e0289c85bn%40googlegroups.com.


[tw5] Re: Combobox idea

2021-11-14 Thread Mat
Thanks Télumire using your exact styling tiddler, but with an added 
type:text/css  this is how it appears , 
i.e om my Win 10 machine using Chrome, Brave and Firefox I see a 
selectwidget but no visible button and you can't type into it. Same thing 
on my android phone, Brave browser. Does my page not appear like that on 
your machine? BTW, on your webpage, the combobox tiddler is folded and on 
my phone I can't access the unfold button.

<:-)
On Sunday, November 14, 2021 at 3:27:46 AM UTC+1 Télumire wrote:

>  
> Hi @Mat, the apostrophes are intended, they prevent the wikitext parsing 
> to convert the -- into – (the wikitext cant be disabled with a pragma rule 
> or a content type in thatcase because this would prevent the use of 
> widgets).
>
> Drag & drop this tiddler in your wiki and it should work fine (it does on 
> my end in a fresh tiddlywiki) :)
>
>
>
> Le dimanche 14 novembre 2021 à 00:09:51 UTC+1, Mat a écrit :
>
>> @Télumire - I now tried to copy your code but it doesn't work properly. 
>> I've tried both from your attached tid file and using the copy-to-clipboard 
>> feature on your webpage but the code seems buggy e.g the -- prefix on css 
>> variables are enclosed in apostrophes. 
>>
>> This is what I get 
>> ,
>>  
>> i.e the "Combobox" tiddler is your downloaded attachment tid above, and in 
>> the tiddler "A styled combobox" I've tweaked some stuff so it basically 
>> works but the button arrow is not showing.
>>
>> What am I doing wrong or missing?
>>
>> Thanx
>>
>> <:-)
>> On Friday, November 5, 2021 at 2:00:46 AM UTC+1 Télumire wrote:
>>
>>> Ok I think this time I got it. Here : 
>>> https://Telumire.github.io/TiddlyTweaks/index.html#:%5B%5BCombobox%5D%5D
>>>
>>>
>>>
>>> Le jeudi 4 novembre 2021 à 23:17:51 UTC+1, Télumire a écrit :
>>>

 @Eric Shulman my bad, I should have tested it a bit more. Thanks for 
 pointing this out ! @Mat, this is because the select element is OS 
 dependent according to this stack overflow answer : 
 https://stackoverflow.com/a/1895485/11549574

 This one can be used properly inline (with a text after and before) and 
 use a pseudo element as a select button (I left it as a red square but 
 it's 
 easy to customize), but there is still an issue with vertical align.. I'm 
 still sharing it just in case, if I find something better I'll post it  :

 <$vars

 height="20px"

 >
 
 .combobox{
 position: relative;
 display: inline-block;
 width: 150px;
 height:<>;
 background:red;
 margin-right:20px;
 }

 .combobox .select-btn{
 width:100%;
 cursor:pointer;
 opacity:0;
 pointer-event:all;
 }

 .combobox input{
 top:0;
 position:absolute;
 width:100%;
 }

 .combobox .drodown-btn{
 width:calc(<> + 100%);
 top:0;
 position:absolute;
 cursor:pointer;
 }

 .combobox .drodown-btn:after{
 display:block;
 content:"";
 width:calc(<> + 4px);
 position:absolute;
 inset:0 0 0 auto;
 background:red;
 pointer-events: none;
 }
 


 BEFORE<$edit-text field=selection placeholder="type or select"/>AFTER

 before
 
 
 <$select field=selection class="select-btn" >
 A Tale of Two Cities
 A New Kind of Science
 The Dice Man
 
 
 <$edit-text field=selection placeholder="type or select"/>
 
 after


 Le jeudi 4 novembre 2021 à 22:48:23 UTC+1, Mat a écrit :

> @Télumire, I appreciate your effort! @Eric, thank you for your shrewd 
> analysis!
>
> Does anyone know why it is barely possible to manipulate this dropdown 
> though? I do get the following to work, so the options *are* 
> targettable:
>
> .select-btn option {background:red}
>
> ...but attempting to e.g position absolute, margin-left, or some such 
> fails. It is as if they are immune to most styling.
>
> @anyone - is this because of the SelectWidget implementation, or is it 
> the underlying html select / option tags? Surely people will want to 
> style 
> these? If it indeed is the underlying html tags, then is it at all 
> possible 
> to do something about it in the SelectWidget, hypothetically?
>
> Thanx!
>
> <:-)
>
>
>
> On Thursday, November 4, 2021 at 9:42:29 PM UTC+1 Eric Shulman wrote:
>
>> On Thursday, November 4, 2021 at 12:31:14 PM UTC-7 Télumire wrote:
>>
>>> Here's the code to push the dropdown in the proper place :
>>>
>>
>> There are layout problems with this solution.  To see the issues,
>> try putting "before" and "after" text surrounding the "combobox" span:
>>  
>>
>>> *BEFORE*