Skip Menu |

This queue is for tickets about the Twitter-Shell CPAN distribution.

Report information
The Basics
Id: 42435
Status: open
Priority: 0/
Queue: Twitter-Shell

People
Owner: Nobody in particular
Requestors: BARBIE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: timeline - message limit & ordering
Firstly, at the moment doing a timeline command prints a block of messages that can easily scroll off the screen. Could you add the ability to specify a limit, e.g. "twitter> ft 10" to only list the most recent 10 messages? Secondly, can the list from a timeline be inverted. A long list currently puts the oldest at the bottom, just above the command prompt, when you are more likely to want to refer to the newest message, which is now possibly off the screen :( I will try and write a patch for these if I get a bit of free time, but thought they would be worth adding here in case I don't :)
Attached is a patch that contains the above items, plus lots more. From the changes file: - added configuration options for: tag - string added to end of say message. prompt - command line prompt string. order - display message order for timeline commands. limit - display only n messages for timeline commands. - added documentation. - added ability to specify limit for timeline commands on the command line. - set STDOUT to binmode to ensure 'wide character' erroros are suppressed. - added 'quit' and 'q' aliases to the 'exit' command. - added text for help command line documentation. - suppressed useless Config::Any warning message about setting a default! - added tests. I'm now using this modified version, and have not seen any ill effects.

Message body is not shown because it is too large.

Sorry ignore previous patch. Unfortunately I omitted the extra test files, and have just spotted that in a YAML configuration file the '-' causes problems, so have changed tag suppression to '.' instead.

Message body is not shown because it is too large.

hmm, I can't seem to apply the patch. might be something on my end, I'll take another look afterwards. thanks!