should confirm post on truncate
Closed this issue · 1 comments
jeremy-w commented
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
Implement as three modes with default and flag:
- Truncate without warning
- Truncate with warning (as seen in previous comment)
- Split into multiple posts