hoop33 / wry

App.net command-line client for Mac OS X
http://grailbox.com/wry
MIT License
43 stars 6 forks source link

should confirm post on truncate #48

Closed jeremy-w closed 10 years ago

jeremy-w commented 11 years ago

Currently, wry post truncates without warning when the post content is too long.

Instead, it could do something like this:

% wry post 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef out of space already?
Warning: Post exceeds 256-character limit by 21 characters.

Post would include:

    123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 
    123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 
    123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 
    123456789abcdef 123456789abcdef 123456789abcdef 123456789abcdef 

Post would omit 21 characters:

    out of space already?

Post anyway? (y/n)
hoop33 commented 11 years ago

Implement as three modes with default and flag: