Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124371 - ufed should wrap long descriptions
Summary: ufed should wrap long descriptions
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Sven Eden
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-28 00:42 UTC by Ervin Peters
Modified: 2014-03-21 15:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ervin Peters 2006-02-28 00:42:38 UTC
Sometimes the flag descriptions are long, longer than the available space in dialog.
Can anyone make ufed wrapping the description at right margin of that dialog-box?

It is not really worth to look at the description if there is only 1/3 to read, and IMHO it is unconvienient to scroll 2 or more times right or left, because you have to scroll back to read the next line.

maybe it is an option to use a command-line parameter --wrap to toggle this behaviour, to keep the default behavier for those who love that.

might that be an Idea to enhance ufed?

ervin
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2006-02-28 01:33:42 UTC
Wrapping is a bit hard to do, especially because ufed has to cope with terms the size of which can change after ufed's started. It's definitely a good idea, and I'll see if I can add it, but it'll take a while (especially since I would rather see filtering working first), so at this moment I'm more interested in a workaround.

> because you have to scroll back to read the next line.

You can use <Up><Down> (or anything else that changes which flag is selected) for this for now; it probably would be good to have a cleaner way for this though. Would having faster horizontal scrolling keys, similar to PgUp/PgDn for vertical scrolling, be good enough for now?
Comment 2 Sven Eden 2013-01-03 16:52:00 UTC
To give some feedback on this bug, as I have it on my todo list, I will implement this feature.

But I have to ask for some patience. The ufed code handling the ncurses display is built upon the current "one item per row"-design. Yes, this means I have to change, or at least alter, some details of the core design of the display handling.

While this is not that difficult, the whole code is, unfortunately, almost completely free of comments, and consists of names (variables and such) that do not really speak for themselves.

So before I go juggling around lines of code, I'll see to the code being commented and described, first. This'll make things a lot easier in the future.

My plan is to have at least a testing version including the line wrapping of the descriptions ready this months. Sorry for being this vague, but it is difficult to plan.
Comment 3 Roman Žilka 2013-01-22 14:44:12 UTC
Hi, Sven! My name is Roman and I'm a user of ufed. How do you do! :)

Personally, I don't like the idea of wrapping, but I'd love to have a key combo (like Ctrl+arrowkey) to fast-scroll left/right in the description. By "fast-scroll" I mean word-by-word or perhaps by the full width of the space available for the description. That might be easy to do.
Comment 4 Sven Eden 2013-01-22 15:47:37 UTC
(In reply to comment #3)
> Hi, Sven! My name is Roman and I'm a user of ufed. How do you do! :)
> 
> Personally, I don't like the idea of wrapping, but I'd love to have a key
> combo (like Ctrl+arrowkey) to fast-scroll left/right in the description. By
> "fast-scroll" I mean word-by-word or perhaps by the full width of the space
> available for the description. That might be easy to do.

That is a great idea! And yes, it is easier to implement, of course. But the line wrapping (optional, not turned on by default, or a lot of user would fall off their chairs! ;)) will make it into ufed, too. As I have written in bug 388377 I have added more flexibility to the display design to not have blank lines in the list when certain filters are turned on/off. These changes will, eventually, allow to wrap lines.

Wrapping the descriptions, some are quite lengthy, would drive any user with a low res display nuts. But if you have a large xterm (or similar) but have to scroll horizontally now and so often, it is easier to read wrapped lines.

In the meantime I guess two key combos for the left and right arrow keys like CTRL for per word and SHIFT for per window width scrolling would be a start. I really like that idea. :)
Comment 5 Sven Eden 2013-02-01 11:07:50 UTC
(In reply to comment #3)
> Personally, I don't like the idea of wrapping, but I'd love to have a key
> combo (like Ctrl+arrowkey) to fast-scroll left/right in the description. By
> "fast-scroll" I mean word-by-word or perhaps by the full width of the space
> available for the description. That might be easy to do.

Another reply, because I did some searching to "just-put-it-in" but have found this:

"curses doesn't do that"

Source:
http://invisible-island.net/ncurses/ncurses.faq.html#modified_keys

However there are "workarounds", but I'll have to do some research on those first.
Comment 6 Sven Eden 2013-03-29 20:22:07 UTC
Quick note: This is on my todo list now that the 0.90_rc1 is out. Meta-keys are out, but the scrolling has been sped up, and the optional line wrapping will come.
The interface code has been restructured so that this can be supported.
Comment 7 Sven Eden 2013-09-20 08:48:03 UTC
Today is wrapping day! (Took only seven and a half years... ;) )

The current live version of ufed has a new key (F11) enabled that will wrap the descriptions, and behave nicely, even when you resize your terminal window.

However, although I am pretty sure to have tested all relevant combinations (Package list left or right, full or stripped descriptions, local and global descriptions), this is an experimental feature.

Have fun wrapping!
Comment 8 Sven Eden 2014-03-21 15:26:54 UTC
This feature has been added to the new version 0.91 in the tree.