diff --git a/ClipView.cpp b/ClipView.cpp index 950654b..3ef674a 100644 --- a/ClipView.cpp +++ b/ClipView.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2015-2016. All rights reserved. + * Copyright 2015-2018. All rights reserved. * Distributed under the terms of the MIT license. * * Author: @@ -278,7 +278,7 @@ ClipView::_ShowPopUpMenu(BPoint screen) BMessage* msg = NULL; msg = new BMessage(PASTE_SPRUNGE); - BMenuItem* item = new BMenuItem(B_TRANSLATE("Paste to Sprunge.us"), msg, 'P'); + BMenuItem* item = new BMenuItem(B_TRANSLATE("Paste online"), msg, 'P'); menu->AddItem(item); msg = new BMessage(FAV_ADD); diff --git a/Clipdinger.rdef b/Clipdinger.rdef index b6d307f..7f33749 100644 --- a/Clipdinger.rdef +++ b/Clipdinger.rdef @@ -5,6 +5,7 @@ resource app_flags B_SINGLE_LAUNCH; resource app_version { major = 1, middle = 0, + minor = 1, /* 0 = development 1 = alpha 2 = beta 3 = gamma 4 = golden master 5 = final */ diff --git a/Constants.h b/Constants.h index 78de74e..698cc87 100644 --- a/Constants.h +++ b/Constants.h @@ -13,8 +13,8 @@ extern const char* kApplicationSignature; -static const char kVersion[] = "v1.0"; -static const char kCopyright[] = "2015-2016"; +static const char kVersion[] = "v1.0.1"; +static const char kCopyright[] = "2015-2018"; static const char kSettingsFolder[] = "Clipdinger"; static const char kSettingsFile[] = "Clipdinger_settings"; static const char kHistoryFile[] = "Clipdinger_history"; diff --git a/FavView.cpp b/FavView.cpp index 0151707..e251610 100644 --- a/FavView.cpp +++ b/FavView.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2015-2016. All rights reserved. + * Copyright 2015-2018. All rights reserved. * Distributed under the terms of the MIT license. * * Author: @@ -281,7 +281,7 @@ FavView::_ShowPopUpMenu(BPoint screen) BMessage* msg = NULL; msg = new BMessage(PASTE_SPRUNGE); - BMenuItem* item = new BMenuItem(B_TRANSLATE("Paste to Sprunge.us"), msg, 'P'); + BMenuItem* item = new BMenuItem(B_TRANSLATE("Paste online"), msg, 'P'); menu->AddItem(item); msg = new BMessage(EDIT_TITLE); diff --git a/MainWindow.cpp b/MainWindow.cpp index ec5059f..7c2288d 100644 --- a/MainWindow.cpp +++ b/MainWindow.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2015-2016. All rights reserved. + * Copyright 2015-2018. All rights reserved. * Distributed under the terms of the MIT license. * * Author: @@ -345,18 +345,18 @@ MainWindow::MessageReceived(BMessage* message) "if [ -z \"$stat\" ] ; then " // network up in general? "URL='%ERROR%' ; " "else " - "stat=$(echo -e \"GET http://sprunge.us HTTP/1.0\n\n\" | nc sprunge.us 80 | grep HTTP/1 | awk {'print $2'}) ; " - "if [ -z \"$stat\" ] || [ $stat -ne 200 ] ; then " // sprunge.us only accepts GET and PUT - "URL='%ERROR% '$stat ; " - "else " - "URL=$(clipboard -p | curl -F 'sprunge=<-' http://sprunge.us) ; " - "fi ; " +// "stat=$(echo -e \"GET http://ix.io HTTP/1.0\\n\\n\" | nc xi.io 80 | grep HTTP/1 | awk {'print $2'}) ; " +// "if [ -z \"$stat\" ] || [ $stat -ne 200 ] ; then " +// "URL='%ERROR% '$stat ; " +// "else " + "URL=$(clipboard -p | curl -F 'f:1=<-' http://ix.io) ; " +// "fi ; " "fi ; " "echo $URL ; " "clipboard -c \"$URL\" ; " "exit"); command.ReplaceAll("%ERROR%", - B_TRANSLATE("Sprunge.us service not available.")); + B_TRANSLATE("Online paste service not available")); system(command.String()); break; } @@ -503,7 +503,7 @@ MainWindow::_BuildLayout() menuBar->AddItem(menu); menu = new BMenu(B_TRANSLATE("Clip")); - fMenuPaste = new BMenuItem(B_TRANSLATE("Paste to Sprunge.us"), + fMenuPaste = new BMenuItem(B_TRANSLATE("Paste online"), new BMessage(PASTE_SPRUNGE), 'P'); menu->AddItem(fMenuPaste); BMessage* message = new BMessage(FAV_ADD); diff --git a/Makefile b/Makefile index 85cb2f7..cbbe9d2 100644 --- a/Makefile +++ b/Makefile @@ -89,7 +89,7 @@ OPTIMIZE := # will recreate only the "locales/en.catkeys" file. Use it as a template # for creating catkeys for other languages. All localization files must be # placed in the "locales" subdirectory. -LOCALES = de en en_GB ro ru uk +LOCALES = de en en_GB ro ru sv uk # Specify all the preprocessor symbols to be defined. The symbols will not # have their values set automatically; you must supply the value (if any) to diff --git a/ReadMe.html b/ReadMe.html index e11ab44..b16eeec 100644 --- a/ReadMe.html +++ b/ReadMe.html @@ -101,7 +101,7 @@


Clipdinger manages a history of the system clipboard. It solves the problem that you often have to paste some text you've just recently copied to the clipboard, but that has been replaced by something you've copied more recently... It also saves the history so it'll appear just as you left it on the last shutdown.

If you want to paste some text that isn't in the clipboard any more, simply hit SHIFT ALT V to summon the Clipdinger window. Here you can select an entry with the CursorUp/Down keys and put it into the clipboard or auto-paste it by hitting RETURN.

-

After selecting a clip, you can also paste it to the online service Sprunge.us by hitting ALT P. The returned URL for the clip is put into the clipboard for you to paste into your email or IRC channel etc.

+

After selecting a clip, you can also paste it to an online text pasting service by hitting ALT P. The returned URL for the clip is put into the clipboard for you to paste into your email or IRC channel etc.

ESCAPE or ALT W aborts and minimizes the Clipdinger window.

@@ -153,7 +153,7 @@

Tips & Tricks