DISQUS

Magnus Holm: Magnus Holm - Copy'n'Paste

  • Johnny Mack · 6 months ago
    Great this works well
  • Andrew · 6 months ago
    And for windows?
  • Brian Cardarella · 6 months ago
    I think that would require command line access to the clipboard, and from what I recall of the last time I was using Windows that doesn't exist out of the box. I could be wrong. And if I am then you should easily be able to modify either example here.
  • cldwalker · 6 months ago
    Take a look at utility_belt's clipboard commands: http://github.com/gilesbowkett/utility-belt/blo...
  • apeiros · 6 months ago
    Personally I use this snippet instead: http://pastie.org/501623
    It copies what you last entered and optionally includes the result via # =>.
    Useful in IRC :)
    I want to do a minifying version for like forever. Would be trivial (simply strip all lines and join with '; ').

    Greets
    apeiros
  • Ben · 6 months ago
    The quotation marks around 'pbcopy' and 'w' are curly quotes... doesn't work if you copy/paste.
  • Magnus Holm · 6 months ago
    Weird. It appears to be a bug in RedCloth which doesn't handle <notextile> properly...
  • cldwalker · 6 months ago
    If you want to eval with the same binding irb uses: IRB.CurrentContext.workspace.evaluate(self, paste)
  • stevenhaddox · 6 months ago
    Looks awesome. Trying it ou now ;)
  • Ingemar Edsborn · 6 months ago
    I've been using something similar for some time now, and I must say it's the best thing I've come up with ever. Totally boost the productivity. Most of the time I use it to get stuff from the readline history. See http://gist.github.com/112129
  • qriva · 4 months ago
    Magnus/Judofyr -- Thanks for all of your great code and support of the community. Now that _why has gone missing I'd just like to say that I've always appreciated your work and hope you stick around with us.

    Thanks for this. It works great and I'd never considered something like it.

    If you're ever looking for an apprentice, give me a buzz.

    You rule.