Bug#307576: should allow wrapping

2005-05-20 Thread Martin Michlmayr
* Emanuele Rocca [EMAIL PROTECTED] [2005-05-19 21:24]:
   cursor, i.e. pressing up on the first line should go to the last
   line.  I frequently have to open the last URL in a list and this
   feature would be very helpful.
 
 Do you still find this wishlist useful?

Yes, I do.  Here's a patch.

 Now that #307577 is fixed it is possible to use page up and page
 down to go through the list also with only a few urls.

That's nice, but I think also adding my patch would make it even
better.


diff -urN urlview-0.9.orig~/urlview.c urlview-0.9.orig/urlview.c
--- urlview-0.9.orig~/urlview.c 2005-05-20 17:25:53.718507240 +0100
+++ urlview-0.9.orig/urlview.c  2005-05-20 17:57:50.546105152 +0100
@@ -427,7 +427,16 @@
redraw = MOTION;
}
else
- beep ();
+   {
+ current = 0;
+ if (current  top)
+ {
+   top = current - current % PAGELEN;
+   redraw = INDEX;
+ }
+ else
+   redraw = MOTION;
+   }
break;
   case KEY_UP:
   case 'k':
@@ -443,7 +452,16 @@
redraw = MOTION;
}
else
- beep ();
+   {
+ current = urlcount - 1;
+ if (current  top + PAGELEN - 1)
+ {
+   top = current - current % PAGELEN;
+   redraw = INDEX;
+ }
+ else
+   redraw = MOTION;
+   }
break;
   case KEY_HOME:
   case '=':

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#307576: should allow wrapping

2005-05-19 Thread Emanuele Rocca
Hello Martin,

* Martin Michlmayr [EMAIL PROTECTED], [2005-05-04  1:59 +0100]:
  It would be nice if urlview would allow to wrap around lines using the
  cursor, i.e. pressing up on the first line should go to the last
  line.  I frequently have to open the last URL in a list and this
  feature would be very helpful.

Do you still find this wishlist useful?

Now that #307577 is fixed it is possible to use page up and page down to
go through the list also with only a few urls.

However, I am thinking about documenting the 'jump-at' feature.

Maybe changing the urlview sentence to something like this:

UrlView 0.9: (N matches) Press 1-N to jump to an url, Q or Ctrl-C to Quit!

Well, not very nice, but it's a start.

I consider that this change could be more useful.
What's your opinion?

Thanks.
ciao,   
ema


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#307576: should allow wrapping

2005-05-16 Thread Martin Michlmayr
* Emanuele Rocca [EMAIL PROTECTED] [2005-05-15 13:14]:
 I'll try to see what I can do to implement your whishlist; in the
 meanwhile, do you know that you can press the url number to 'jump' to
 it?

Thank's for that hint, I wasn't aware of this.  I'll see whether I can
submit a patch for my wishlist bug for I'm not particularly good with
C.  But we'll see.
-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#307576: should allow wrapping

2005-05-15 Thread Emanuele Rocca
Hello Martin,

* Martin Michlmayr [EMAIL PROTECTED], [2005-05-04  1:59 +0100]:
  It would be nice if urlview would allow to wrap around lines using the
  cursor, i.e. pressing up on the first line should go to the last
  line.  I frequently have to open the last URL in a list and this
  feature would be very helpful.

Urlview is almost dead upstream, so there's no point in forwarding your
request.
I'll try to see what I can do to implement your whishlist; in the
meanwhile, do you know that you can press the url number to 'jump' to
it?

If you've got 42 matches, you can jump to the last one simply typing
'42'.

HTH.
ciao,   
ema


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#307576: should allow wrapping

2005-05-03 Thread Martin Michlmayr
Package: urlview
Version: 0.9-11
Severity: wishlist

It would be nice if urlview would allow to wrap around lines using the
cursor, i.e. pressing up on the first line should go to the last
line.  I frequently have to open the last URL in a list and this
feature would be very helpful.



-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages urlview depends on:
ii  libc6   2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libncurses5 5.4-4Shared libraries for terminal hand

-- no debconf information

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]