Friday, October 11, 2013

Enabling Snippets Expander on OS X 10.9 Mavericks

From day to day Apple will release OS X 10.9 Mavericks which will brake Snippets Expander functionality. Snippets is one of the many helpful tools that requires you to "Enable access for assistive devices" to be able to do more than allowed by default. In pre-Mavericks versions you have to go to System Preferences -> Accessibility and check an option named "Enable access for assistive devices".

If you try to do the same on OS X 10.9 you will have difficulties finding this checkbox. It's gone. Well, hopefully they just moved it to another place. Now you have to open System Preferences -> Security & Privacy -> Privacy -> Accessibility and enable Snippets in the listing. You may also need to click on Lock icon and enter your password to unlock preferences from making changes.


Enjoy and happy coding! 

Friday, September 13, 2013

How about using Dropbox or iCloud for sync in Snippets?

Periodically I am asked the same question about using Dropbox or iCloud for sync in Snippets. I decided to give an answer to this question in this blog, so, I can just refer to it when someone asks again.

The short answer is: we are building a product with many benefits for users instead of just an application that can store some bytes of data and sync it between computers.

Now let me explain.

Sync is just one of the benefits of using Snippets. If we had chosen Dropbox or iCloud for sync we would be in the following situation:
  • We would need to sell an app to be able to support further development, because we would have no other way to make money from it. Instead we can give an app for free, have more people using it and make money by charging for the advanced premium features.
  • There are many features that will not be possible when using Dropbox or iCloud for sync. For example, web application, private and public sharing, changes history, access level management, search by publicly shared snippets, open repository of snippets and some other ideas that we don't want to share yet.
Those are limitations from product point of view, and they are the most critical ones. Also, there are many technical limitations that stop us from using these services with Snippets:
  • iCloud is available only for applications that are distributed via Mac App Store. This may be another subject for a discussion, however, Snippets won't be MAC-only.
  • Obviously, iCloud is not available on Windows.
  • I still have doubts about Apple's ability to build viable universal sync service. They failed with such products in the past and they did it multiple times, it's extremely hard to implement universal sync service. 
  • iCloud as well as Dropbox was designed to sync files (Apple likes to call it Documents) which is not a good fit for Snippets. I know there are some workarounds, but workaround is bad by definition.
So, the answer is NO, we won't use either iCloud or Dropbox for synchronization in Snippets.

If you still have any related question, you are welcome to ask them in comments.

Sunday, August 4, 2013

Snippets Distributor for Xcode 5

Snippets Distributor for Xcode now supports Xcode 5 Developer Preview. All you need to do is to update Distributor for Xcode or install it if you haven't yet. To do that open Distributors window by pressing Cmd+Shift+D (or from menu Window->Distributors) and click "Update" or "Install" respectively near the Xcode in listing.

If you are not familiar with Snippets Distributors yet, it is plugin for Snippets that syncs code snippets from its library with the target app's (app that distributor is written for) library, so, these snippets are available for reuse natively in this app.

Here is a quick demo of the Distributor for Xcode:

Tuesday, July 23, 2013

Snippets 0.8 with code syntax highlighting

We are very happy to announce Snippets 0.8 today. This update introduces code syntax highlighting which is most requested feature request in our Ideas section.

Code highlighting is "must have" feature for any tool that deal with the source code, however it's not a core feature for Snippets as it is for code editors. We did not wanted to spend a lot of time creating our own editor, and we did not know any good implementation until recently we discovered Ace Editor.

Ace is an embeddable code editor written in JavaScript which makes it an ideal solution for Snippets that we can use in desktop apps for Mac and Windows and in a web browser for our Web app as well as some other secret tools that are coming out soon. It is the same editor that is used and maintained by Cloud9 IDE, so it's very solid, fast and well tested code editor. During the development it shows great performance and we like it.

Please download/update Snippets and enjoy.

Thursday, July 11, 2013

Snippets Distributors for JetBrains IDEs

We are happy to announce availability of Snippets Distributors for all JetBrains' IDEs. JetBrains is a great company that makes smart IDEs for many languages and technologies. If you don't use them we encourage you at least to try, you will love it.




Here is the full list of supported IDEs:
There is one small thing that makes using Snippets Distributor with all these IDEs (except ReSharper) a bit uncomfortable. If you make any changes in your library or distributor settings, you have to restart IDE in order to reflect these changes.

I've tried to convince guys from JetBrains to implement automatic reloading, but I have no luck. Internally this is not needed for IDE and this is not so small task to implement. Based on our communication, we have two options to improve this:
  1. Implement automatic reloading of settings in Intellij IDEA Community Edition and send pull request. If they accept, it it will spread to all the other IDE since they are bases on Intellij IDEA community edition. Here is the repository.
  2. Vote for this task. We hope that there will be enough votes to get the attention of responsible team to this task. 
To install any of the available distributors, open Distributors window by pressing Cmd+Shift+D on Mac or Ctrl+Shift+D on Windows, find it in Online Gallery listing and click install. You also need to enable it by selecting Enabled checkbox.

If you enjoyed using distributors so far, I’d be very grateful if you’d help it spread by sharing it with your friends on Twitter or Facebook. Thank you!

Thursday, June 27, 2013

Snippets Distributor for Xcode just got better

Today we have a great news for our Xcode users. Recently we published an updated version of distributor for Xcode which now includes a small helper plug-in that reloads code snippets on the go,  restarting Xcode is not required anymore. It just works.

Check out this video.


How do you like it?

Thursday, June 13, 2013

One-click installations and updates for Distributors

Today we've published an update for Snippets 0.7.1 for Mac and 0.7.2 for Windows that introduces one-click updates and installations for distributors from within Distributors window. It looks like this:


As a result we don't bundle any distributor with Snippets distributive anymore.

Code variables with Snippets Expander, Global Search and Snippets Assistant

Now when you reuse snippet's code with Expander, Global search and Assistant we replace code variables with it's values. This is because it makes no sense to insert the whole variable code if editor will not recognize it as a variable. 

However, in Xcode, for example, when you paste code that has a variable in Xcode's format it will recognize it. In this case we do not replace it with its default value but with the variable that Xcode recognizes.

For example snippet with code "Hello ${Name:World}" will be inserted using mentioned earlier instruments into TextEdit or Notepad as "Hello World", but as "Hello <#World#>" into Xcode where <#World#> is a variable.

Some other small features and improvements were introduces as well. Please check out release notes for Windows and Mac clients.

Now it's time to create more distributors. So, stay tuned and happy coding!

Tuesday, May 21, 2013

Snippets 0.7 and Distributors — the new power of Snippets.

In the initial post (actually first post in this blog) where we introduced new Snippets I told about 4 core values of Snippets. We started by creating desktop apps for Mac and Windows which support sync from the box, and continued with integration.

Recently we discussed the fundamental problem of standalone code snippets apps which has not been solved by anyone yet. Well, until now. The reason we raised this question is because we have a solution and today we are very excited to announce our new invention which we call Snippets Distributors.

Distributors are plugins for Snippets that allow you to reuse code snippets from your library in code editor natively. At first glance, it may be hard to understand what it is and how it works, but in reality it is very simple, and once you try it, you will love it.

We've prepared a presentation which explains Distributors with less words. Please take a look:


Distributors are available in Snippets 0.7 on both Mac and Windows. By updating or downloading the latest version of Snippets you will get them all. We've also created a directory of Distributors where you can find all available distributors as well as specific notes to each of them.

Using distributors is very easy. Just download or update currently installed version, open Distributors window by pressing Cmd+Shift+D on Mac or Ctrl+Shift+D on Windows, select distributor on the left side, select “Enable” checkbox and you are done. By default all snippets which has code and tab trigger defined will be available in the editor. Please note that some editors should be restarted in order to make new code snippets available. We recommend to try it with TextMate 2 (Mac only) or Sublime Text 2 (Mac and Windows), these editors will pick up everything automatically without restarting them.
This update also includes some new goodies such as Snippets Assistant and Global Search on Mac (on Windows it’s been available since version 0.5). Also both clients now use SSL encryption when syncing data with the server.

Please try it and let us know what you think.

Tuesday, April 23, 2013

The biggest problem with the code snippets manager apps

When you think about code snippets management there are three instruments available for developers that come to mind.
  • Code editor’s built-in snippets functionality 
  • Standalone code snippets apps such as Snippets 
  • Online code snippets libraries and sharing services 
For today's discussion we will skip the third one.

Сode snippets feature of both editors and standalone apps has its own advantages and disadvantages. I'd say even more, advantages of ones are missing in the second and vice versa. Let me explain what I mean.

Editors with built-in code snippets functionality usually support it natively with features such as placeholders, variables, tabs stops, tab triggers etc. However, most of the time it has poor management interface, all snippets are tied to a single editor and have no sync.

On the other side, standalone code snippets apps have a much better UI with great management as their main feature, very often support synchronization, code snippets are available to any app installed on the system and to the team members (if sharing is supported), but they lack the ability to use native stuff such as placeholders, variables and tab stops.

So, obviously, it’s impossible to utilize the advantages of both components by using them together and it’s not quite handy to use them separately. It’s just not as efficient as it could be.
From my point of view, it is a huge issue with code snippets managers. And Snippets is not an exception. Of course, developers are trying to invent workarounds to solve it. For example, Snippets has Snippets Expander feature that allows you to insert a code snippet into the editor’s window by typing its tab string but without variables, tab stops, etc. Dash developers created a popup window with an editor that allows you to define variables prior to insertion.

Do you see the same issue? How do you solve it? Please share your experience.

Wednesday, November 28, 2012

Snippets for Windows 0.6.1

We've just released a minor update for Snippets for Windows. In addition to small bug fixes this update fixes the way it works with the terminal-like apps on Windows.

The problem is that Snippets simulates pressing Ctrl+V when pastes snippets' code whether you use SnippetsAssistant (through global search or Task Bar) or SnippetsExpander. However, terminal apps on Windows do not allow to use Ctrl+C and Ctrl+V for Copy/Paste functionality. Instead Ctrl+Insert and Shift+Insert should be used.

We decided to make it configurable, so you can tell Snippets which keystroke to use in particular application. There is a config file at C:\Users\Username\AppData\Local\Snippets\UserSettings.xml. Content of this file is fairly self-explanatory, feel free to edit this file. Relaunch of Snippets is required to apply the changes.

Thanks to Rachik Bouanani for the report and collaboration on this problem.

Check for updates and enjoy :).

Thursday, November 8, 2012

Snippets 0.6 for Mac and Windows

Yesterday we released a new update of Snippets for Mac and Windows. It brings quite a few minor features, all the major changes are under the hood. It improves performance and stability of the synchronisation.

This release also switches to the new version of the sync API which was slightly changed from the previous one. If you were using the older version you should update, otherwise sync won't work.

Now that known sync issues have been fixed we are going to send invites to all who requested them. If you not received it during this day (Nov 7th) please make sure you requested one here.

Thursday, July 19, 2012

Some clarifications about old and new Snippets

Since we announced the new project there has been a bit of misunderstanding and confusion. So, I decided to explain in more details to avoid misunderstanding in the future and answer to the questions.

At some point I realized that a single code snippets manager for a single platform is nothing in the view what it could be so that anyone can benefit. There should be something more than that. 

Wednesday, June 20, 2012

Having both versions of Snippets installed

I forgot to mention about installing new Snippets when you are still using the old one. While it's not yet recommended to replace old Snippets with the new version you should be able to install and run both of them.

To do this you have to rename the app bundle of the old version in Applications directory. Just open Applications directory in Finder, locate Snippets, press enter and type the new name. I use "Snippets 1", you may choose whatever you want. 

Monday, June 18, 2012

Welcome to the new Snippets

We've had a long and difficult year working on a new project. Now I think it's time to tell you about it and draw your attention to a new Snippets.
After two years on the market with award-winning and simply best code snippets manager — Snippets for Mac — we've got a lot of feedback from you, and I'd like to thank you all for that. Now we understand the core value of such application much better. Taken them all into consideration we've built a new Snippets and we think you'll love it.
Snippets is a set of tools and services designed for collecting, organizing, reusing and sharing of code snippets.


Taken your feedback and our experience with Snippets we've identified core value we have laid the basis of the new Snippets:
  1. Sync. It doesn't require any explanation, it must have feature of the modern app that manages any kind of data.
  2. Collaboration. Snippets is used by teams a lot. So, it's essential to share any set of snippets either privately or publicly.
  3. Integration. We should integrate with OS and Tools such as IDEs and editors so that Snippets can be used much easier.
  4. Cross platform. Macs are great, but the reality is that mac-only teams are rare and to be useful for teams we must have Snippets for Windows too.
Today we are announcing availability of Mac and Windows versions of Snippets that supports synchronization and sharing over the cloud. They doesn't have a lot of features. At this stage our intend was to implement cloud sync natively. Until he have problems with sync we will be adding a new features quite fast.


Desktop clients for Mac and Windows are free apps. Our services will be subscription based and will include free and premium accounts. We will be announcing prices and features set for the premium accounts a bit later.


It's still not ready for the public use however we are excited to announce that Snippets is opened for an invite-only registration. You can request your invitation here and we will send you on "first in first out" basis. Snippets for Mac and Windows can be downloaded here.

Google Analytics

Custom css