HappenApps / Quiver

Quiver documentation and issue tracker
2.26k stars 109 forks source link

Best Way to Get Quiver Code into Mac Script Editor? #250

Open JMichaelTX opened 8 years ago

JMichaelTX commented 8 years ago

Let's say I'm writing code in the Script Editor (SE), and want to pull a code snippet from Quiver. Is there an automated way to:

  1. Search Quiver to identify the snippet -- Ideally I'd like to provide a simple search term, like "display", and the process would show me choices of snippets for the AS or JXA display commands. -- Even better would be to have a label for text expansion of a code cell -- Something like ;as.display -- This is my naming convention in TextExpander. The above means AppleScript (as) Display commands (display), and would popup a list of all snippets that start with that label.
  2. Pull the code from the code cell
  3. Paste into SE

The ideal method would be like that used by TextExpander, which is where I'm currently keeping my most common code snippets.

Thanks.

ylian commented 8 years ago

Any reference to this feature in TextExpander? I agree the current approach is too cumbersome.

JMichaelTX commented 8 years ago

@ylian

Any reference to this feature in TextExpander?

I'm not sure I understand your question. In TextExpander, I can:

I appreciate that TextExpander is a much more expensive app than Quiver, so I don't expect Quiver to have all the features of TE. I could live with something very simple in Quiver: A text expansion code associated with a code cell, that when I typed it, it would be replaced with the code in the code cell

Does this help?

ylian commented 8 years ago

Ah, I see. I was thinking integration with TextExpander, but you meant text expansion but using Quiver's code cells as the database. Very interesting idea. I have to dig more into this to see if it's feasible.

JMichaelTX commented 8 years ago

Thanks. As a related matter, providing support for AppleScript might be a way of doing this. So, if via AS I could search Quiver, find the first code cell, get its contents, then I could paste into the Script Editor.

JMichaelTX commented 8 years ago

text expansion but using Quiver's code cells as the database. Very interesting idea. I have to dig more into this to see if it's feasible.

Ideas for Text Expansion

@ylian , here are some idea for the UI to support text expansion, and also AppleScript (showing Cell#):

image

ylian commented 8 years ago

@JMichaelTX Thanks!

JMichaelTX commented 7 years ago

I could live with something very simple in Quiver: A text expansion code associated with a code cell, that when I typed it, it would be replaced with the code in the code cell

@ylian, it has been over a year now. Any progress or hope for a text expansion feature for Quiver?

ChasManRors commented 7 years ago

There are many of us which want this ability. I want to insert cells into emacs.