hashp icon indicating copy to clipboard operation
hashp copied to clipboard

Suggestion: #d, #t and #s

Open Kynde opened this issue 5 years ago • 5 comments

How about few more:

  • #d to def it to something suitable for easy access ?
  • #t to print it with some timing information ?
  • #s to spit it to /tmp ?

Kynde avatar Dec 16 '19 09:12 Kynde

I think #s is a little too specific, and while #d and #t both sound useful, I'd need to think about it.

Of course you're always welcome to use hashp as a base for writing your own; I wrote hashp because Spyscope wasn't quite what I wanted.

weavejester avatar Dec 16 '19 12:12 weavejester

True, #s is also a little unnecessary if #d were available.

I like the no b.s. approach with this hashp. I just might investigate into adding them, but just in case some one with more free time available is anxious to add them here as PR or to another project, knowing how much I have free time at my disposal, I'd be cool with that, too.

Kynde avatar Dec 16 '19 13:12 Kynde

In a similar vein what if there were an option to send via tap>, with some known map format? Then the tap listener could do whatever, like spit to /tmp, stuff in an atom for later processing, etc. Don't think you could cover timing with that, though.

sparkofreason avatar Dec 16 '19 19:12 sparkofreason

Took a crack at generalizing this, see https://github.com/sparkofreason/hashtag. Feedback welcome and appreciated.

sparkofreason avatar Dec 22 '19 21:12 sparkofreason

Simple example of #t here: https://github.com/sparkofreason/hash-meta/blob/master/examples/clj/hasht.clj

sparkofreason avatar Jan 02 '20 18:01 sparkofreason