Quiver Snippet Manager action

Sharing and discussing custom actions for LaunchBar
Post Reply
raguay
Rank 1
Rank 1
Posts: 33
Joined: Fri Jul 18, 2014 11:08 am

Quiver Snippet Manager action

Post by raguay » Tue Dec 08, 2015 7:50 am

I just created an action to use Quiver (http://happenapps.com/#quiver), a great programmer's notebook, as a snippet manager. You can download it from my GitHub Launchbar Actions Repository (https://github.com/raguay/MyLaunchBarActions). Once downloaded and installed, send your Quiver Library to the action and it will configure the action, load a help file, and a sample Snippets folder. Share some of your snippets here as well.

raguay
Rank 1
Rank 1
Posts: 33
Joined: Fri Jul 18, 2014 11:08 am

Re: Quiver Snippet Manager action

Post by raguay » Tue Dec 08, 2015 9:25 am

BTW: I would like to pass the results through the TextExpander program to use it's functionality for placing the text and moving the cursor to a specified point. I have the applescript for sending it to TextExpander by way of LaunchBar.executeAppleScript() function, but it alway puts the text into Launchbar and not the application I was in. The LaunchBar.paste() works, but I end up without the TextExpander expansion. Any ideas?

raguay
Rank 1
Rank 1
Posts: 33
Joined: Fri Jul 18, 2014 11:08 am

Re: Quiver Snippet Manager action

Post by raguay » Tue Dec 08, 2015 10:07 am

Okay. I just answered my own question. I created a new action called "Paste Through TextExpander". It takes a string and expands it with TextExpander (https://smilesoftware.com/textexpander). It can be useful for other areas as well. You can get it from my GitHub LaunchBar Repository (https://github.com/raguay/MyLaunchBarActions/).

To use with the Quiver action, load it into LaunchBar and reset your Quiver Library or Snippets notebook. It will ask if you want to paste through TextExpander or not. Just select "Yes" and all you snippets will be passed through TextExpander.

Let me know if you have any questions or problems.

raguay
Rank 1
Rank 1
Posts: 33
Joined: Fri Jul 18, 2014 11:08 am

Re: Quiver Snippet Manager action

Post by raguay » Tue Dec 08, 2015 6:08 pm

Just updated them both for a bug. Please redownload them and re-install them. I still can't get the auto update thing to work.

One of the bugs caused the Defaults data to always be kept and not the individual snippet's data file. Also, you can now define the boolean "expandPlain" in your data. If expandPlain is false, everything is passed to TextExpander. If it is true, it is plainly pasted. I set it to "false" in the global Defaults data structure and true in each snippet that doesn't have TextExpander macros.

Please test this all out and let me know if you find any bugs or feature ideas. Thanks!

raguay
Rank 1
Rank 1
Posts: 33
Joined: Fri Jul 18, 2014 11:08 am

Re: Quiver Snippet Manager action

Post by raguay » Tue Mar 29, 2016 10:14 am

I just updated this action to allow for alternate versions of the same snippet by changing the inserted variables. It also has a new companion action Quiver Helper. You can get both actions from my GitHub repository listed in the first post. Let me know if you find any issues with the action. Thanks.

raguay
Rank 1
Rank 1
Posts: 33
Joined: Fri Jul 18, 2014 11:08 am

Re: Quiver Snippet Manager action

Post by raguay » Fri Apr 08, 2016 12:28 pm

I just did a major update to this action. The new features are:

1) Paste through Keyboard Maestro (expanding the %| cursor placement macro).
2) Added the next Handlebar helper for doing relative dates (see the new help file).
3) Added the ability to hook into the Handlebar template engine by adding a JavaScript cell in the Defaults notebook. Now you can add your own helper functions. (see the new help file and new defaults file for examples).

You will need to redownload from the GitHub.

Post Reply