Re: [fossil-users] Colored output on console

2016-04-24 Thread Steve Schow
For now, if you’re on a unix platform, you can try a wrapper script like this:



#!/bin/bash

export COLOR_NC='^[[0m'
export COLOR_RED='^[[1;31m’

fossil $* |\
sed -e "s/ERROR/${COLOR_RED}ERROR${COLOR_NC}/g” \
sed -e “s/WARNING/${COLOR_RED}WARNING${COLOR_NC}/g”







On Apr 24, 2016, at 4:07 AM, Marko Käning  wrote:

> Hi devs,
> 
> it would be great if one could colorise Fossil’s output on the console!
> 
> Quite a few times I missed an error or warning message which slipped in 
> between of many lines of the usual fossil output on the console.
> 
> Red colouring of words like “warning” or “error” would be very helpful there.
> 
> The poor man’s solution would at least be to use capital letters and some 
> sort of line head along the lines of
> 
>   > ERROR: blaa
>   > WARNING: blubb
> 
> Right now I can’t send an example of such a easily slipping through message, 
> but I can deliver if I come across one again.
> 
> Greets,
> Marko
> 
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Feature request: syntax highlighting for file, diff and code block rendering

2016-04-24 Thread David Vines
You may need to extend the list of file extensions in ext/syn.js, for example to support js as an 
extension for javascript  I added


case "js":
t = "javascript";
break;

Dave

On 24/04/2016 18:04, Marko Käning wrote:

Hi Svyatoslav,

On 24.04.2016 14:31, Svyatoslav Mishyn wrote:

see: http://www.fossil-scm.org/index.html/wiki?name=shjs


I tried this out, but unfortunately it didn't highlight anything for me.

Greets,
Marko
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Howto change diff output colorisation

2016-04-24 Thread Marko Käning

Hi again,

On 24.04.2016 19:14, Svyatoslav Mishyn wrote:

You can add into css file
'span.diff*' style attributes, see example:
https://f.juef.tk/fossil-theme-sl/artifact/6601f777f08ef848cc97cc10100f50afac09f1d4?txt=1=215,244


ah, great. That's what I was hoping for.

Thanks,
Marko
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Howto change diff output colorisation

2016-04-24 Thread Svyatoslav Mishyn
(Sun, 24 Apr 18:32) Marko Käning:
> how can one configure the colour scheme of the diff output for a specific
> skin?

You can add into css file
'span.diff*' style attributes, see example:
https://f.juef.tk/fossil-theme-sl/artifact/6601f777f08ef848cc97cc10100f50afac09f1d4?txt=1=215,244

> ...
> Right now it seems to be hard-coded somewhere deep in Fossil, since it is
> identical for all skins.

It is here:
http://www.fossil-scm.org/index.html/artifact/1a7a0b84d1404a6420819498e0697219eb90357d?txt=1=1280,1301


-- 
https://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Feature request: syntax highlighting for file, diff and code block rendering

2016-04-24 Thread Marko Käning

Hi Svyatoslav,

On 24.04.2016 14:31, Svyatoslav Mishyn wrote:

see: http://www.fossil-scm.org/index.html/wiki?name=shjs


I tried this out, but unfortunately it didn't highlight anything for me.

Greets,
Marko
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Colored output on console

2016-04-24 Thread Tony Papadimitriou
Possibly the best ‘color-blind proof’ method is reverse video.  Not the best 
looking in all cases, but certainly effective.

From: Scott Robison 
Sent: Sunday, April 24, 2016 7:39 PM
To: Fossil SCM user's discussion 
Subject: Re: [fossil-users] Colored output on console

On Apr 24, 2016 4:07 AM, "Marko Käning"  
wrote:
>
> Hi devs,
>
> it would be great if one could colorise Fossil’s output on the console!
>
> Quite a few times I missed an error or warning message which slipped in 
> between of many lines of the usual fossil output on the console.
>
> Red colouring of words like “warning” or “error” would be very helpful there.

I will just observe here that typically red text on a black background is 
really hard for me to see. If someone were to add such a thing, having it be 
opt in would be appreciated. Different people have different, of course. I hate 
color blindness.

>
> The poor man’s solution would at least be to use capital letters and some 
> sort of line head along the lines of
>
> > ERROR: blaa
> > WARNING: blubb
>
> Right now I can’t send an example of such a easily slipping through message, 
> but I can deliver if I come across one again.
>
> Greets,
> Marko
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users





___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Colored output on console

2016-04-24 Thread Marko Käning

Hi Scott,

On 24.04.2016 18:39, Scott Robison wrote:

I will just observe here that typically red text on a black background
is really hard for me to see. If someone were to add such a thing,
having it be opt in would be appreciated. Different people have
different, of course. I hate color blindness.


how right you are. I also have trouble with red/green deficiency. See my
other post regarding "Howto change diff output colorisation". Khaki hit
against green diff output, impossible to see for my eyes, but clearly
visible for my friend. ;-)

Yes, opt-in and configurable would be the way to go.

Greets,
Marko
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Colored output on console

2016-04-24 Thread Scott Robison
On Apr 24, 2016 4:07 AM, "Marko Käning"  wrote:
>
> Hi devs,
>
> it would be great if one could colorise Fossil’s output on the console!
>
> Quite a few times I missed an error or warning message which slipped in
between of many lines of the usual fossil output on the console.
>
> Red colouring of words like “warning” or “error” would be very helpful
there.

I will just observe here that typically red text on a black background is
really hard for me to see. If someone were to add such a thing, having it
be opt in would be appreciated. Different people have different, of course.
I hate color blindness.

>
> The poor man’s solution would at least be to use capital letters and some
sort of line head along the lines of
>
> > ERROR: blaa
> > WARNING: blubb
>
> Right now I can’t send an example of such a easily slipping through
message, but I can deliver if I come across one again.
>
> Greets,
> Marko
>
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] How to migrate a repository's wiki pages to another repo?

2016-04-24 Thread Marko Käning

Hi list,

how can one migrate a repository's wiki pages to another repo?

One could imagine to have some ex/import functionality for wiki pages...

Greets,
Marko

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Howto change diff output colorisation

2016-04-24 Thread Marko Käning

Hi,

how can one configure the colour scheme of the diff output for a 
specific skin?


For instance the skin "Khaki, No Logo" has a light green background, 
which is very similar
to the light green used for highlighting of added text on the right side 
of a diff output.


It would be advisable to be able to configure the needed color 
definitions for the diff output

together with the residual CSS stuff of a skin.

Right now it seems to be hard-coded somewhere deep in Fossil, since it 
is identical for all

skins.

Greets,
Marko
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Feature request: syntax highlighting for file, diff and code block rendering

2016-04-24 Thread Marko Käning
Hi Svyatoslav,

On 24 Apr 2016, at 14:31 , Svyatoslav Mishyn  wrote:

> (Sun, 24 Apr 12:03) Marko Käning:
>> would be nice if it was possible to get syntax highlighting in the web UI.
> 
> see: http://www.fossil-scm.org/index.html/wiki?name=shjs

that looks interesting.

Thanks, will try.

Greets,
Marko
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Feature request: syntax highlighting for file, diff and code block rendering

2016-04-24 Thread Svyatoslav Mishyn
Hello,

(Sun, 24 Apr 12:03) Marko Käning:
> would be nice if it was possible to get syntax highlighting in the web UI.

see: http://www.fossil-scm.org/index.html/wiki?name=shjs

Personally I didn't try it,
because I use an editor without syntax highlighting.


-- 
https://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Renaming wiki pages

2016-04-24 Thread Marko Käning
Hi,

are there any plans to implement a “wiki rename” command [1] for fossil?

Greets,
Marko


[1] 
http://stackoverflow.com/questions/22545581/how-can-you-rename-a-wiki-page-in-fossil-scm
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Colored output on console

2016-04-24 Thread Marko Käning
Hi devs,

it would be great if one could colorise Fossil’s output on the console!

Quite a few times I missed an error or warning message which slipped in between 
of many lines of the usual fossil output on the console.

Red colouring of words like “warning” or “error” would be very helpful there.

The poor man’s solution would at least be to use capital letters and some sort 
of line head along the lines of

> ERROR: blaa
> WARNING: blubb

Right now I can’t send an example of such a easily slipping through message, 
but I can deliver if I come across one again.

Greets,
Marko

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Feature request: syntax highlighting for file, diff and code block rendering

2016-04-24 Thread Marko Käning
Hi devs,

would be nice if it was possible to get syntax highlighting in the web UI.

Greets,
Marko
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Some more default settings for a UI user

2016-04-24 Thread Marko Käning
Hi Stephan,

On 24 Apr 2016, at 11:24 , Stephan Beal  wrote:
> i'm not gonna touch those, in the hope that someone with more fingers in the 
> wiki code can say something to them.

no worries, I am very happy about your immediate feedback!

Greets,
Marko
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Some more default settings for a UI user

2016-04-24 Thread Stephan Beal
On Sun, Apr 24, 2016 at 11:16 AM, Marko Käning 
wrote:

> P.S.: Any hints for my other two post regarding code blocks and font sizes?
>

i'm not gonna touch those, in the hope that someone with more fingers in
the wiki code can say something to them.

just fyi: while i'm a long-time contributor to fossil (since 2008),
relatively recent elbow nerve damage caused by too much typing severely
limits how much i can do on a keyboard, so since 16 months it's rare that i
partake in longer/detailed discussions or touch more than a few lines of
code at a time. So please don't misunderstand my general brevity as
annoyance or impatience - it's a physical limitation which forces me to be
very choosy with regards to what i type!

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Some more default settings for a UI user

2016-04-24 Thread Marko Käning
Hi Stephan,

On 24 Apr 2016, at 10:47 , Stephan Beal  wrote:
> Indeed, it's not intuitive, and i was too tired to get out of bed and back to 
> my full
> keyboard, so was unnecessarily brief ;).

you still responded even when you were supposed to have already nodded off! ;-)

Thanks for all the insights big time. My Fossil wiki’s menu layout is now 
exactly the
way I wanted it by default. Great.

Regarding keeping of more user info I see what you mean. It’s complicated enough
already with all those admin passwords spit out when cloning a remote repo and 
so on…
So, I guess it’s not worth it for now to think in that direction.
Ideally the devs working together find some common decision on the wiki layout
and make the corresponding manipulations once.

Greets,
Marko


P.S.: Any hints for my other two post regarding code blocks and font sizes?

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Some more default settings for a UI user

2016-04-24 Thread Stephan Beal
On Sun, Apr 24, 2016 at 2:06 AM, Marko Käning 
wrote:

> On 24 Apr 2016, at 01:45 , John P. Rouillard 
> wrote:
> > You're missing what he is saying. He is saying change the Timeline
> > (/timeline) link in the menu.
>
> indeed, not hard to miss it. :)
>
> I couldn’t figure out where I could change exactly those links.
>

Indeed, it's not intuitive, and i was too tired to get out of bed and back
to my full keyboard, so was unnecessarily brief ;).


> > I don't think there is an option to allow logged in users to set those
> > sorts of things on a per user basis. AFAIK there is no user data
> > stored other than a password. So you would need to figure out how to
> > create a user table to store user preferences. There are no custom
> > forms for users (i.e. a user equivalent of the admin/tickets
> > mechanism), you wouldn't be able to allow the user to edit things
> > without some changes to the fossil core code.
>

That's essentially correct - only the password hash (not the password),
login name, permissions, and an optional "contact info" field (normally
email address) are stored. There is no other per-user data (and were we to
add it, people would insist that it optionally be syncable with other repo
copies, and then they'd demand that it automatically sync with some repos
(namely, their own) and not with others (everyone else's), and then...). i
did experiment with using a JSON object to store arbitrary user-specific
data (in a single DB field, as a JSON object tree) some years ago, but
never did anything useful with it. The plan, at the time, was to use it to
store drafts of wiki pages/tickets.


-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users