It seems to me that a common problem with paste type services such as pastie.textmate.org is that it's a one-way street, which is strange considering a lot of people who use the pastie service are after solutions to problems in the text they have pasted.
I came up with the idea of running a service which would allow people to connect to a server, submit the text and then give them a unique ID. This ID could then be quoted to other users and used to connect to the server remotely, grab the text, and view the paste using a TextMate command. Any changes made to the original could then be saved and re-submitted to the server. The original paster can then query the server at any time to review any changes made to the original along with the names of the users who have made the amendments.
I considered starting on a project which does all this using a fancy tm_dialog UI, but besides being a cute idea I wondered if this is a solution seeking a problem rather than something people would actually use?
On Sat, Feb 17, 2007, Andy Herbert wrote:
I came up with the idea of running a service which would allow people to connect to a server, submit the text and then give them a unique ID. This ID could then be quoted to other users and used to connect to the server remotely, grab the text, and view the paste using a TextMate command. Any changes made to the original could then be saved and re-submitted to the server. The original paster can then query the server at any time to review any changes made to the original along with the names of the users who have made the amendments.
Pastie already does this (as do almost all the other pastie-type services I've seen). For pastie, make a paste. The number in the URL is your ID. Then, go to http://pastie.textmate.org/<number>.txt and you get the plaintext version.
So, say you've got a paste ID 12345. You can select it in TextMate and press some key combination which fetches http://pastie.textmate.org/12345.txt and replaces the selection with it. Done.
Try sticking this in a command:
curl -s http://pastie.textmate.org/%24%7BTM_SELECTED_TEXT%7D.txt
set Input to "Selected Text or Word", Output to "Replace Selected Text", and set a key equivalent.
It could be improved for sure... for instance, if you're not on a valid paste id, you get a huge HTML error message... but it gets the job done.
Hopefully this saves you some time :)
Ben
On Sat, Feb 17, 2007, Andy Herbert wrote:
I came up with the idea of running a service which would allow people to connect to a server, submit the text and then give them a unique ID. This ID could then be quoted to other users and used to connect to the server remotely, grab the text, and view the paste using a TextMate command. Any changes made to the original could then be saved and re-submitted to the server. The original paster can then query the server at any time to review any changes made to the original along with the names of the users who have made the amendments.
Hah. I completely missed the second part of this paragraph. Adding wiki-like change monitoring would be cool!
Ben
On 17 Feb 2007, at 21:27, Ben Bleything wrote:
On Sat, Feb 17, 2007, Andy Herbert wrote:
I came up with the idea of running a service which would allow people to connect to a server, submit the text and then give them a unique ID. This ID could then be quoted to other users and used to connect to the server remotely, grab the text, and view the paste using a TextMate command. Any changes made to the original could then be saved and re-submitted to the server. The original paster can then query the server at any time to review any changes made to the original along with the names of the users who have made the amendments.
Hah. I completely missed the second part of this paragraph. Adding wiki-like change monitoring would be cool!
I don't think I'd want it as complicated as a wiki, just a very simple svn type service for pastes, although judging from the lack of response from the original post I'm not sure it's a feature people actually need :).
On Feb 18, 2007, at 2:00 AM, Andy Herbert wrote:
On 17 Feb 2007, at 21:27, Ben Bleything wrote:
On Sat, Feb 17, 2007, Andy Herbert wrote:
I came up with the idea of running a service which would allow people to connect to a server, submit the text and then give them a unique ID. This ID could then be quoted to other users and used to connect to the server remotely, grab the text, and view the paste using a TextMate command. Any changes made to the original could then be saved and re-submitted to the server. The original paster can then query the server at any time to review any changes made to the original along with the names of the users who have made the amendments.
Hah. I completely missed the second part of this paragraph. Adding wiki-like change monitoring would be cool!
I don't think I'd want it as complicated as a wiki, just a very simple svn type service for pastes, although judging from the lack of response from the original post I'm not sure it's a feature people actually need :).
I only ever use pastie as a way to send code. The only times I ever use it to receive code is when I see a pastie link somewhere.
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors