Page 1 of 1

PASTA

Posted: Mon Apr 14, 2014 1:19 pm
by hidnplayr
Pasta is a program that uploads the contents of the clipboard to http://paste.kolibrios.org
It's also possible to upload the contents of a file. To do this, specify the path to the file as a parameter when running the program.

The program has no interface, but uses @notify to notify user of result.
On success, the URL to the paste created is shown by @notify, but also copied to the clipboard.

Example:
I want to share the contents of boardlog.txt with somebody on IRC.
  • -Copy the contents of boardlog.txt using your favorite text editor in KolibriOS.
    -Run pasta.
    -Paste the URL in IRCc and hit enter.
OR:
  • -Run the command '/sys/network/pasta /sys/boardlog.txt'
    -Paste the URL in IRCc and hit enter.

Re: PASTA

Posted: Mon Apr 14, 2014 2:08 pm
by hidnplayr
Demo screenshot:
Spoiler:
kolibrios.png
kolibrios.png (52.74 KiB)
Viewed 7667 times

Re: PASTA

Posted: Mon Apr 14, 2014 2:58 pm
by Leency
"Pasta" should be title. Flag -t for @notify.
If it just uploads text from buffer to Pasta, then better to write:
"Pasta
Text from buffer was successfully uploaded to
link".

Usefull program.
Good job.

Re: PASTA

Posted: Mon Apr 14, 2014 3:17 pm
by hidnplayr
Yes, I realised it only after comitting to SVN.

I'm thinking about the following implementation:
When program is run, try to upload text from clipboard to server.
On succes, remove original text from clipboard and place the URL to paste on clipboard.
Display sucess message with @notify

When the program is run with parameters, take the input from a file instead of clipboard.
(Then it will be possible to implement an option 'send to pasta' in filemanagers for txt and log files)

Re: PASTA

Posted: Mon Apr 14, 2014 4:05 pm
by e-andrew
It is very cool!!! I think you can add some button to TinyPad and TEdit, which will send text to pasta.

Re: PASTA

Posted: Tue Apr 15, 2014 5:22 pm
by Wildwest
Image

So, can we make your own Twitter with blackjack and hookers?

Re: PASTA

Posted: Tue Apr 15, 2014 7:04 pm
by hidnplayr
Wildwest wrote:
Spoiler:Image
So, we can make your own Twitter with blackjack and hookers?
Yes, very helpfull, thanks.