PastebinGTK 1.1

This is a fairly large release, considering the last one was back in July. I didn’t have any particular focus for this, so the changes are sort of all over; there are lots of little changes, some major new features, and some large internal changes.

Changes (Features)

  • Added a feature to list recently created pastes. There’s no feature in the pastebin.com API to do this, however, so I had to resort to scraping one of the webpages.
  • Get Paste will now parse out the paste key if the user inputs a link instead.
  • Create Paste will now check if the paste triggered the automatic spam filter, and tell the user if so.
  • List Trending Pastes no longer shows the pastes’ formats, due to that value getting removed from the API. No documentation has changed regarding this, however, so I’m not entirely certain that pastebin meant for this to happen. Might change back in the future.
  • Get User’s Details will now display everything in a certain order, instead of randomly.
  • Delete Paste now asks for confirmation.
  • Font is now set to monospaced, for easier reading of code. Sometime in the future I’ll probably add an option to set the font to whatever.
  • Get Paste will now let the user know that private pastes cannot be loaded (due to API restrictions).
  • Removed command line arguments. I don’t normally remove features, but I felt that the command line interface didn’t really fit with the goal of the application. There are already better command line clients for pastebin, and I didn’t think there was a reason to duplicate the effort. (Also, it was more trouble than it was worth to keep updating the CLI as the rest of the program changed.)
  • Added option to select how many pastes to show in List User’s Pastes.

Changes (Technical)

  • Bit of a code clean-up.
  • Created a new API wrapper (https://github.com/achesak/python-pastebin). I didn’t really like the previous one’s way of doing things, and I also wanted to extend it with some things of my own, so I figured this was the best solution. (Also, licensing on the previous wrapper wasn’t clear.) This is really just a Python port of my pastebin API wrapper for Nim with a few new features added.

Changes (Bugfixes)

  • Open from File now sets the cursor to the beginning of the text box.
  • Login now checks if a user is already logged in. This sounds really minor, and it was, but it caused tons of issues regarding the features that required a logged-in user.
  • Changed keybindings to be more sensible.
  • Fixed options now being able to be saved. Oops. Not sure how I missed this before.
  • Anonymous users are no longer allowed to create private pastes. This is not my restriction, but something that pastebin.com doesn’t allow. Previously PastebinGTK would report that the paste was successfully created, and show a link, but the paste wasn’t actually created.

Download

Downloads can be found on the Github repository.

Advertisements