Applied and compiled. didn't work. I can contribute at least $150 for a proper 
implementation of this feature. 

 It should work exactly like have explained. up/down arrows go up/down and will 
not move right/left. They will skip all the lines that do not contain a link. 
And they will stop on a line that contains a link, even if the actual location 
that the cursor is in doesn't have a link.

 THanks.



On Fri, Aug 10, 2007 at 07:53:41PM +0200, Witold Filipczyk wrote:
> Use this patch:
> diff --git a/src/document/renderer.c b/src/document/renderer.c
> index 90fcc80..8b80d73 100644
> --- a/src/document/renderer.c
> +++ b/src/document/renderer.c
> @@ -499,6 +499,7 @@ render_document_frames(struct session *ses, int no_cache)
>       }
>  }
>  
> +#if 0
>  static int
>  comp_links(struct link *l1, struct link *l2)
>  {
> @@ -506,6 +507,20 @@ comp_links(struct link *l1, struct link *l2)
>       if_assert_failed return 0;
>       return (l1->number - l2->number);
>  }
> +#endif
> +
> +static int
> +comp_links(struct link *l1, struct link *l2)
> +{
> +     int res;
> +
> +     assert(l1 && l2 && l1->points && l2->points);
> +     if_assert_failed return 0;
> +     res = l1->points[0].y - l2->points[0].y;
> +     if (res)
> +             return res;
> +     return l1->points[0].x - l2->points[0].x;       
> +}
>  
>  void
>  sort_links(struct document *document)
> 
> 
> and these keybindings:
> 
> bind "main" "up" = "move-link-up"
> bind "main" "down" = "move-link-down"
> bind "main" "left" = "move-link-prev"
> bind "main" "right" = "move-link-next"
> 
> You pay 5$ :)
> _______________________________________________
> elinks-dev mailing list
> [email protected]
> http://linuxfromscratch.org/mailman/listinfo/elinks-dev
_______________________________________________
elinks-dev mailing list
[email protected]
http://linuxfromscratch.org/mailman/listinfo/elinks-dev

Reply via email to