[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

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 sgb...@googlemail.com 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.:

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 sgb...@googlemail.com 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.:

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 d...@sqlite.org 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

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 sgb...@googlemail.com 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:

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 amb-fos...@bradfords.org 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

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:38 PM, Andy Bradford amb-fos...@bradfords.org 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

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 sgb...@googlemail.com 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.

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 amb-fos...@bradfords.org 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

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 ronw.m...@gmail.com wrote: On Wed, Aug 27, 2014 at 1:49 PM, Stephan Beal sgb...@googlemail.com 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

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 ronw.m...@gmail.com 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.

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 sgb...@googlemail.com wrote: On Wed, Aug 27, 2014 at 9:57 PM, Ron W ronw.m...@gmail.com 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

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 ronw.m...@gmail.com 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

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 sgb...@googlemail.com 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

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 sgb...@googlemail.com 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

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 sgb...@googlemail.com 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