Re: [tw5] Re: Titlebar CSS

2021-08-16 Thread Adam Stobbe
Dangit - embarrassed it was something I should've seen - thanks Chris,
appreciate the help!!

On Mon, Aug 16, 2021 at 10:33 AM clutterstack  wrote:

> Hi @stobot -- first thing to check, without actually delving into which
> styling affects the heading, is: your stylesheet needs a dot before a class
> name:
>
> .tc-site-title { font-size: 0.5em; }
>
> For the tiddler title, since there are other things than the title in the
> titlebar, we want to select the h2 within it specifically:
>
> .tc-titlebar h2 {
> font-size: 0.7em;
> }
>
> Hope that helps,
>
> Chris
> On Monday, August 16, 2021 at 8:59:09 AM UTC-4 Stobot wrote:
>
>> I'm trying to figure out how to reduce the size of the titlebar via CSS
>> (including the buttons) and am stuck trying to understand how the CSS works.
>>
>> In developer tools when I inspect the area, I see this (below). When I
>> uncheck the font-size there, it actually gets bigger and doesn't seem to
>> affect the buttons
>> [image: image.png]
>>
>> And then when I uncheck the font-size here - it greatly shrinks it (yay)
>> but *way too much*
>> [image: image.png]
>>
>> My poor understanding of CSS made me think that the strikeout meant that
>> it was overridden by something else anyways, but it seems to change things
>> - oh well.
>>
>> Question is what I can add to a tiddler tagged with the
>> $:/tags/Stylesheet to reduce the size a bit? I'm trying this and it's not
>> doing anything...
>>
>> tc-site-title { font-size: 0.5em; }
>>
>> tc-titlebar { font-size: 0.5em; }
>>
> --
> 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/6cd18207-7704-4522-a398-011b70016bd4n%40googlegroups.com
> 
> .
>

-- 
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/CA%2B%2B2uhEa4%2Bk780FhFqCTPt-SUbT8w3m_Ob_O__UnwMY5e0GnvQ%40mail.gmail.com.


[tw5] Titlebar CSS

2021-08-16 Thread Adam Stobbe
I'm trying to figure out how to reduce the size of the titlebar via CSS
(including the buttons) and am stuck trying to understand how the CSS works.

In developer tools when I inspect the area, I see this (below). When I
uncheck the font-size there, it actually gets bigger and doesn't seem to
affect the buttons
[image: image.png]

And then when I uncheck the font-size here - it greatly shrinks it (yay)
but *way too much*
[image: image.png]

My poor understanding of CSS made me think that the strikeout meant that it
was overridden by something else anyways, but it seems to change things -
oh well.

Question is what I can add to a tiddler tagged with the $:/tags/Stylesheet
to reduce the size a bit? I'm trying this and it's not doing anything...

tc-site-title { font-size: 0.5em; }

tc-titlebar { font-size: 0.5em; }

-- 
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/CA%2B%2B2uhGtUZVS8LURuWgwqoo-p_4L5Qr5nWrgOOSemQ7bVh9LcA%40mail.gmail.com.


Re: [tw5] Re: Parameters into macros

2021-08-14 Thread Adam Stobbe
Thanks Saq, actually that sounds like an interesting challenge. From a
Javascript standpoint all I've done is tweak the macros of others so it may
be a bit over my head, but I'll give it a try.

On Sat, Aug 14, 2021 at 1:04 PM Saq Imtiaz  wrote:

> The first thing that comes to mind is rewriting the macro as a filter
> operator.
>
>
>
> On Saturday, August 14, 2021 at 6:54:22 PM UTC+2 Stobot wrote:
>
>> Is there a way to pass dynamic parameters into macros (javascript) other
>> than using <$macrocall/>?
>>
>> For instance I use a modified version of (Jed's I think) add-time.js that
>> allows you to use a parameter 'days' to feed days to add to current date.
>> So, doing something like <> would return the date 10 days
>> from now. If it's a static number like 10, things are easy, but if it's
>> dynamic (stored in a field) then things get more complicated - I have to
>> use the <$macrocall/> instead, which is less convenient but sometimes not a
>> problem.
>>
>> It becomes a problem when I need to use this new date in a filter. I *am*
>> excited that in pre-release now we can feed *static* values as parameters
>> into macros within filters, but the missing piece is still dynamic values
>> as parameters - can't do a <$macrocall/> within a filter.
>>
>> If it's a normal macro, right now I'd surround the <$list/> with some
>> <$wikify> runs that run the <$macrocall/>'s and wikify it to be fed in as a
>> static value. I'm just wondering if there's a better way that I'm not
>> thinking about (I end up with LOTS of wikify's which people tell me is not
>> great).
>>
>> For instance, doing something like:
>>  <$vars days={{!!daystoadd}}><$list
>> filter="[duedate]"> would work if it was a regular
>> macro instead of a javascript macro. But, even though the parameter that
>>  can be fed is called days, it's not picked up by the macro call.
>>
>> Hopefully that makes sense - 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/82fd0bc8-0322-4ef8-ba51-0b33342e8626n%40googlegroups.com
> 
> .
>

-- 
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/CA%2B%2B2uhHZddcXZBNebeRg4D1wid%2BNnQuO7X6NLg9Mka6f%3Dq%2BQHw%40mail.gmail.com.


Re: [tw5] Re: System and shadow need some love

2021-08-14 Thread Adam Stobbe
I agree that the other forms of search could be made a bit more convenient,
though I've gone back and forth on the best way to solve it. For a few
years I did what has been suggested, break the other options down into
tabs. As a minimalist though, nowadays I instead built a "smarter" search
bar that looks at the first character and changes search type accordingly.
I just opened the code for AdvancedSearch and copy pasted it all into one
search area. Now if my search bar starts with the:

   - "[" character it acts like I'm in the filter area
   - "$" character it acts like I'm in the system area
   - "!" character it acts like I'm in the shadow area
   - else, treats as a regular search

This kind of gets me to the same place, but is a little more keyboard
friendly. It also kind of hides the advanced functionality for those that
might be overwhelmed by it - until such time that they realize how valuable
it can be. I know I'm not the first to think of it - just mentioning it for
others who haven't thought that way.

On another topic related to the search functionality (and I bring up since
I mentioned greatly changing normal functionality), I like a persistent
results area (rather than the standard semi-transient default one). I'm
currently working on a theme/edition aimed at corporate Office workers like
myself (currently calling Officey) and am taking opportunities to make it
look/feel more like an Office365 web application to hopefully drive
adoption at my company. A quick example screenshot is below. I envision
there being 4 key ways of navigating content that happily have the acronym
SORT - so I can call it the SORT area. The components are dedicated tabs
for each:

   - S - Search: Where I house the "smart" search bar.
   - O - Open: I just transclude the normal open sidebar tab
   - R - Recent: I just transclude the normal recent tab (though like the
   idea below of separating / including system tiddlers!)
   - T - Tags: Kind of a mashup of the tags area, and some kind of global
   table of contents - still a work-in-process.

Lots of CSS still to figure out (really not my strong suit), but I like the
way it's coming together. I aim to pair this with some introductory videos
etc. linking it to how to use it along-side other Office applications like
Outlook, Excel, etc.
[image: image.png]
Anyways, sorry if that branches off too hard from your post David, but just
adding thoughts.

On Sat, Aug 14, 2021 at 10:17 AM ludwa6  wrote:

> Like you, @David : i rely heavily on $:/AdvancedSearch -but that is often
> a 2nd step, after i first 'dump the search term' into the default
> searchbar, i will then click the magnifier icon beside to look into the
> other tabs provided by #:/AdvancedSearch.  I guess this the search workflow
> on which the UI design is predicated; works well enough for an "advanced
> beginner" like myself (i.e. one who is usually looking for content, but
> does fairly often need to retrieve the code behind it), but for a bonafide
> developer like yourself, i can see how this 3-step workflow might be
> suboptimal.
>
> /walt
>
> On Saturday, August 14, 2021 at 3:01:54 PM UTC+1 David Gifford wrote:
>
>> Hi everyone
>>
>> I am playing with the field-search plugin by PMario, and seeing how
>> search results for a simple search come up in tabs one can pick from.
>>
>> This made me wonder, why couldn't there be something similar: do a search
>> from the default searchbar, and have standard, system and shadow come up as
>> tabs?
>>
>> This seems like it would be much more intuitive for users: search, then
>> filter results. As it stands, $:/AdvancedSearch does the opposite: it makes
>> you pick a type of search (standard, system, shadow, filter) first, and
>> only then can you do the search. The search string you want to enter may or
>> may not stay in your short term memory while you are figuring out which
>> type of search you want to do. It seems like it would be a better user
>> experience to 'dump' the search term first, then figure out which tab you
>> want.
>>
>> On the same subject, Why is there no comparable "recent" tab for system
>> tiddlers? It seems like developers would benefit greatly having something
>> like that open as they work on macros, styling, buttons, etc.
>>
>> I would love to hear your input:
>> Do you agree with me? Why or why not? If so, should this be core pull
>> request or a plugin?
>> What are the reasons $:/AdvancedSearch is set up backwards? Technical
>> limitations? Workflow-related?
>> What are the ways you work around these limitations?
>>
>> --
> 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/8a1a656e-a676-449b-965b-f17876705c1cn%40googlegroups.com
> 

Re: [tw5] Re: MS Teams / one drive

2021-08-05 Thread Adam Stobbe
Yea, Windows has made this (renaming extensions) a little harder over the
years... There is probably a better way to do it, but I use command line to
do it. So for instance, I usually save the empty.html to my desktop so
c:\users\stobot\desktop\empty.html

So, my steps are (replace stobot with your username):

   1. Open command prompt (type cmd after clicking windows start button)
   2. Navigate to where your file is via cd so cd c:\users\stobot\desktop
   3. Do the rename here so rename empty.html empty.aspx


On Thu, Aug 5, 2021 at 9:52 AM st...@sunypoly.edu 
wrote:

> Hi folks, this is a helpful thread .
>
> When I try  to rename my file "empty.html" to "empty.aspx" my onedrive
> renames it to "empty.aspx.html" which doesn't really help.
>
> I realize this is more Microsoft365 than TiddlyWiki . but having just
> been required to make the move from Google to M365, I'm trying to see if I
> can use onedrive / sharepoint to host/serve TW files. So far, no
> success :(
>
> Thanks,
>
> //steve.
>
>
> On Friday, July 16, 2021 at 4:33:57 AM UTC-4 tony wrote:
>
>> Tones is spot on with simply renaming the empty.html to empty.aspx
>>
>> It  just works, years on, Office 365 OneDrive complete with version
>> history and tw encryption.  Kind of magical!
>>
>> Best,
>> tony
>>
>>
>> On Thursday, July 15, 2021 at 4:37:28 PM UTC-7 TW Tones wrote:
>>
>>> Mohamed,
>>>
>>> I have not tried teams/one drive, but I have used it in SharePoint so
>>> some of the techniques may help. Rename the single file wiki html to .aspx
>>> and use the check in and out facilities in SharePoint to ensure serial
>>> editing only. You can make it until checked in users see the previous
>>> version.
>>>
>>> --
> 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/d8a837ea-495b-4e5b-94eb-d353615ea4e0n%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/d8a837ea-495b-4e5b-94eb-d353615ea4e0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Adam Stobbe

-- 
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/CA%2B%2B2uhE_P3ynGp8M9YZGBgv-k_yxJW7JCijEhLeZ-zTaKDo%3DpQ%40mail.gmail.com.