Hi Mark,
I wonder, is it possible to detect the OS during boot-up and set the
> default buttons accordingly?
>
Yes, it's possible. I use TW on Android, Windows and ChromeOS and have the
following rudimentary solution that works well, no plugins required.
Data is read from $:/info/url/full on startup and searched for the
following keywords that always occur in the full URL depending on the OS:
Android = emulated
ChromeOS = chronos
Windows = ///
Steps to recreate:
1. Create a tiddler tagged $:/tags/StartupAction and paste this into its
text field:
<$list filter="[{$:/info/url/full}search:title[///]limit[1]]">
<$action-setfield $tiddler="current_OS" $field="text" $value="Windows"/>
</$list>
<$list filter="[{$:/info/url/full}search:title[chronos]limit[1]]">
<$action-setfield $tiddler="current_OS" $field="text" $value="ChromeOS"/>
</$list>
<$list filter="[{$:/info/url/full}search:title[emulated]limit[1]]">
<$action-setfield $tiddler="current_OS" $field="text" $value="Android"/>
</$list>
2. Customise your TW depending on the OS using $reveal widgets or anything
else you seem fit based on the name of the OS stored in the tiddler
current_OS.
I'm not sure whether a consistent URL keyword can be found on Apple devices
as well, I assume there could be.
Just my two cents, maybe someone will find this solution useful.
Thanks,
Hubert
On Tuesday, 5 May 2020 23:52:46 UTC+1, Mark S. wrote:
>
> That looks nice!
>
> I wonder, is it possible to detect the OS during boot-up and set the
> default buttons accordingly?
>
> The reason I ask is that most software that I download does exactly this:
> It presents a menu that attempts to steer me towards whatever platform that
> I'm currently on.
>
> Based on questions in the forums, it appears that users easily ignore the
> warning triangle about not saving with the file save menu. I'm thinking
> that a screen shot of the file save menu with a slash and circle over it
> might convey the message more readily. In fact, it might make sense to have
> it at the top of the "Getting Started" tiddler to make the saving "problem"
> clearer, before explaining the solutions. The whole idea of needing a
> special approach to saving is going to be new to most people.
>
> On Tuesday, May 5, 2020 at 3:05:43 PM UTC-7, Riz wrote:
>>
>>
>> https://ibnishak.github.io/Tesseract/demo/docs.html
>>
>> I am talking about the visual changes to the "GettingStarted" tiddler
>> only. Not the other slight modifications made.
>>
>> I was thinking if it would be appropriate to make a PR for this. It is
>> responsive - so mobile users won't have any issues. But it is some amount
>> of work. So instead of doing the whole thing and later understanding that
>> why such a change cannot be merged, I thought I will create a minimum
>> viable demo and see if it could be integrated.
>>
>> The check-boxes on the side - for selecting OS and Browser - works like
>> normal check-boxes. Which means multiple selection is possible. So new
>> users can see if there are save methods that works in all the major
>> platforms they work in. The cards will rearrange based on the combined
>> selection. ie - If you check windows, Linux, mac and Firefox - it will show
>> you methods that is common to these platforms.
>>
>> Other major change is the big green button is now an electric blue. Since
>> TW5 follows a blue theme - it makes more sense the download button is a
>> variation of blue. There is enough panache in that button to attract
>> attention to it I guess.
>>
>> Also we can set the Community Resources for follow the same card pattern.
>>
>> Sincerely,
>> Riz
>>
>>
>>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/91974bda-507d-465b-aa3f-daa1bc43b085%40googlegroups.com.