ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Bitly

by the0ther ST2

No description provided

Details

  • 0.1.4
  • github.​com
  • github.​com
  • 10 years ago
  • 29 minutes ago
  • 10 years ago

Installs

  • Total 25
  • Win 14
  • Mac 8
  • Linux 3
May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Bit.ly Sublime Plugin

Hello, this is a small plugin I've put together based on a demo I found on the web at Nettuts+.

I find the URL-shortening service Bit.ly to be quite handy. Short URLs are aesthetically pleasing, to be sure. The thing I really like about Bit.ly though are the reports I can get about shortened links I've sent others.

This is an early release.

Contributions are welcome, there are some bugs I'm quite sure. A little short on time here…aren't we all?

Settings

The only settings for this plugin are account-related. You can use this plugin with your own account by using the following settings:

{
    "api_login": "<YOUR_BITLY_USERNAME_HERE>",
    "api_key": "<YOUR_API_KEY_HERE>"
}

To get a new API key from Bit.ly visit this link.

Todos

  • Add instructions for obtaining API from Bit.ly
  • Add in contextual menu, so you can choose 1 URL to shorten
  • Check config, provide user feedback if the user provides invalid username/api-key
  • New Features
    • “Shorten all Markdown formatted links”
  • Rebrand/Rename this as a tool to “Monitor Links”, the way I use it to verify if people bother to look at links I've put into a document.

Issues

  1. Needs tests
  2. The regular expression used to detect URLs is not well-tested.
  3. May change so it ensures no spaces in the highlighted string, as a safety precaution. As it works now a user may select a large string with spaces and this has unpredictable behavior. At least test out what happens and perhaps update the code to prevent it, if that is not already happening.