flpvn / wittytwitter

Automatically exported from code.google.com/p/wittytwitter
0 stars 0 forks source link

compact long urls on the fly #88

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
it's hard to tell whether you exceeded the 140 character limit when you
have a long url. To improve usability, we can compact the url on the fly
when the text exceeds 140 chars.

Original issue reported on code.google.com by alan...@gmail.com on 13 Mar 2008 at 5:34

GoogleCodeExporter commented 9 years ago

Original comment by alan...@gmail.com on 13 Mar 2008 at 6:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
2nd try at this comment.  :)

I Like this thought.  I take this would be done in conjunction with issue 80? 

Original comment by Humanava...@gmail.com on 13 Apr 2008 at 9:59

GoogleCodeExporter commented 9 years ago
How about just compacting the URL period?

Original comment by jeff.gie...@gmail.com on 14 May 2008 at 4:23

GoogleCodeExporter commented 9 years ago
Compacted-url == A url created by tinyurl, is.gd, or any other url compaction 
service.

Not sure about anyone else, but a "Compacted-url" does not seem very 
user-friendly to me.

We could compact the url by default, but I would then think that we should 
provide a
way to view the true url for verification by the writer -- I have copied too 
many
incomplete or incorrect urls in the past and will do so again.

My vote would be to leave the compaction until it is needed.  If the author 
does not
write enough to require the url to be compacted, then a "Compacted-url" is not 
burned
if it is not needed.

The other option is to compact immediately, provide a way for the author to 
view the
original url.  The upside of the second approach is the author has more room to 
work
with, if needed, and we could place the original url back into the string if the
author leaves enough space (Potentially burning a "Compacted-url" in the 
process).

Just my thoughts.

Comments?  Anyone?

Original comment by Humanava...@gmail.com on 20 May 2008 at 12:05

GoogleCodeExporter commented 9 years ago
I was going to write a patch for this but see you are already on it!

With regard to "when to compact".  I would guess that most, if not all URLs 
that you
would WANT to compact, will be pasted in (rather than typed).  So, what do you 
think
to doing compaction "On Paste"?  More specifically on Ctrl+Shift+V rather than
Ctrl+V?  i.e. it would be a kind of Paste Special.

Original comment by ben.tayl...@gmail.com on 4 Oct 2008 at 10:40

GoogleCodeExporter commented 9 years ago
I agree with Ben. We could shorten the URL's on the fly when the message is 
longer 
than 140 characters. And maybe have a setting in options to always shorten URLs 
longer than x. 

I actually implemented this so have to code if you want to.

Original comment by bramveen...@gmail.com on 9 Jan 2009 at 5:43

GoogleCodeExporter commented 9 years ago
@bramveenhof - Can you attach a patch? I think it makes sense to just compact 
when 
the full tweet would be longer than 140 characters as the default behavior, 
since 
that's what Witty does now. You could add other configuration options, but I'd 
start 
with that behavior.

Original comment by jongallo...@gmail.com on 9 Jan 2009 at 6:14

GoogleCodeExporter commented 9 years ago
Here is the patch which does just that. Shorten URLs if the tweet is longer 
than 140 
characters after you stopped typing for 2 seconds. I'm going to look at the 
actual 
URLShorteningService now.

Original comment by bramveen...@gmail.com on 9 Jan 2009 at 11:50

Attachments:

GoogleCodeExporter commented 9 years ago
Yes, please add this functionality. It is hard for me to use Witty as my 
primary 
Twitter client when it doesn't auto-shorten. I want it to either auto-shorten, 
or 
have a button right next to the Update button that lets me shorten and insert a 
URL.

Original comment by judahgab...@gmail.com on 29 Jan 2009 at 4:05

GoogleCodeExporter commented 9 years ago

Original comment by jongallo...@gmail.com on 31 Jan 2009 at 9:14

GoogleCodeExporter commented 9 years ago
Committed on 1/31/2009 by Ben Griswold

Original comment by bgrisw...@gmail.com on 1 Feb 2009 at 6:32

GoogleCodeExporter commented 9 years ago
Checked in a couple of tweaks - autodetect URL's when pasted so we don't 
require 
hitting spacebar. Also modified the typed URL case to simplify it a bit, but 
mostly 
because my typed URL's weren't being shortened with the previous code.

Original comment by jongallo...@gmail.com on 2 Feb 2009 at 10:05