Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Ron W
On Wed, Aug 27, 2014 at 4:54 PM, Stephan Beal wrote: > Okay, i looked. The numbered outpput is one big PRE block, which means the > impl would be relatively invasive, adding a DIV wrapper (or table row) > around each line, visually similar to SBS diffs are done (though they're > internally much m

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Stephan Beal
On Wed, Aug 27, 2014 at 10:54 PM, Stephan Beal wrote: > Okay, i looked. The numbered outpput is one big PRE block, which means the > impl would be relatively invasive, adding a DIV wrapper (or table row) > around each line, visually similar to SBS diffs are done (though they're > internally much

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Stephan Beal
On Wed, Aug 27, 2014 at 10:49 PM, Stephan Beal wrote: > i haven't looked, but i suspect this won't be problem - i think enough > structure is there (when line mode is on) to give us what we need fairly > easily. > Okay, i looked. The numbered outpput is one big PRE block, which means the impl wo

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Stephan Beal
On Wed, Aug 27, 2014 at 10:32 PM, Ron W wrote: > You mean Javascript that would surround the "word" (number) under the > cursor with suitable HTML mark-up? > Basically, or do it all via event handlers and only generate one link at a time (removing the previous one). i'm open to suggestions. >

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Ron W
On Wed, Aug 27, 2014 at 3:58 PM, Stephan Beal wrote: > On Wed, Aug 27, 2014 at 9:57 PM, Ron W wrote: > >> An enhancement to this would be to make the numbers click-able for >> designating ranges to highlight. Something >> > > Already on the list, just not sure how best to implement it w/o doubli

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Stephan Beal
On Wed, Aug 27, 2014 at 9:57 PM, Ron W wrote: > An enhancement to this would be to make the numbers click-able for > designating ranges to highlight. Something like click the first one and > that line gets highlighted. Click a second, that line plus all between get > highlighted. Third number cli

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Stephan Beal
On Wed, Aug 27, 2014 at 9:52 PM, Ron W wrote: > On Wed, Aug 27, 2014 at 1:49 PM, Stephan Beal > wrote: > >> My pleasure - i'm loving it already (in a chat-coding session) and should >> have done it months ago. >> > > "chat-coding session" reminds me that an old, long out of production, IDE > had

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Ron W
On Wed, Aug 27, 2014 at 1:38 PM, Andy Bradford wrote: > > Thanks for the new button---it is certainly more convenient than adding > ?ln to the URL. An enhancement to this would be to make the numbers click-able for designating ranges to highlight. Something like click the first one and that lin

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Ron W
On Wed, Aug 27, 2014 at 1:49 PM, Stephan Beal wrote: > My pleasure - i'm loving it already (in a chat-coding session) and should > have done it months ago. > "chat-coding session" reminds me that an old, long out of production, IDE had a collaborative editing feature. Unfortunately, the original

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Stephan Beal
On Wed, Aug 27, 2014 at 7:38 PM, Andy Bradford wrote: > Thanks for the new button---it is certainly more convenient than adding > ?ln to the URL. > My pleasure - i'm loving it already (in a chat-coding session) and should have done it months ago. -- - stephan beal http://wanderinghorse.ne

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Andy Bradford
Thus said Stephan Beal on Wed, 27 Aug 2014 19:30:53 +0200: > i only discovered the 0 trick by accident, and found myself using it a > lot when creating links for my user's guide. I think I discovered ?ln= (or just ?ln really) by accident (or at least intentional discovery) by seeing what would

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Stephan Beal
On Wed, Aug 27, 2014 at 7:24 PM, Andy Bradford wrote: > Yes, did you know that you don't even need the 0? :-) > Not until Richard posted, which was after i had typed my commit message ;) i only discovered the 0 trick by accident, and found myself using it a lot when creating links for my user's

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Andy Bradford
Thus said Stephan Beal on Wed, 27 Aug 2014 18:00:54 +0200: > but did you know that you can get line numbering without highlighting > by passing the number 0? Yes, did you know that you don't even need the 0? :-) http://fossil-scm.org/index.html/artifact/c6fbb105168d3b7af4541d89175fc76e14917697?

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Stephan Beal
On Wed, Aug 27, 2014 at 6:21 PM, Stephan Beal wrote: > >> (Maybe we should add a menu link to such pages, "show line numbers," >> which simply adds the ln=0 param?) >> > This repo is running with the new option: http://fossil.wanderinghorse.net/repos/cwal/index.cgi/info/af2ff9161d1448eae5fe104cb

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Stephan Beal
On Wed, Aug 27, 2014 at 6:18 PM, Richard Hipp wrote: > The *design* was to show the line numbers if you just include the "ln" > query parameter without any argument at all. > i like the "happy accident" story better ;) > (Maybe we should add a menu link to such pages, "show line numbers," whic

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Richard Hipp
On Wed, Aug 27, 2014 at 12:00 PM, Stephan Beal wrote: > Hi, all! > > You likely already know that you can link to specific sections of code in > a repo by adding "ln=Start-End" to the URL params of the pages which show > file content, e.g.: > > > http://fossil-scm.org/index.html/artifact/c6fbb105

Re: [fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Michai Ramakers
On 27 August 2014 18:00, Stephan Beal wrote: > > You likely already know that you can link to specific sections of code in a > repo by adding "ln=Start-End" to the URL params of the pages which show file > content, e.g.: > > http://fossil-scm.org/index.html/artifact/c6fbb105168d3b7af4541d89175fc76

[fossil-users] Stupid Fossil Tricks #3329 of N: file line numbers

2014-08-27 Thread Stephan Beal
Hi, all! You likely already know that you can link to specific sections of code in a repo by adding "ln=Start-End" to the URL params of the pages which show file content, e.g.: http://fossil-scm.org/index.html/artifact/c6fbb105168d3b7af4541d89175fc76e14917697?ln=10-20 but did you know that you c