{"id":750,"date":"2014-08-31T19:11:58","date_gmt":"2014-08-31T19:11:58","guid":{"rendered":"http:\/\/blog.wholetomato.com\/?p=750"},"modified":"2019-05-03T17:28:17","modified_gmt":"2019-05-03T21:28:17","slug":"organize-va-snippets-with-hashtags","status":"publish","type":"post","link":"https:\/\/stage.wholetomato.com\/blog\/organize-va-snippets-with-hashtags\/","title":{"rendered":"Organize VA Snippets with hashtags"},"content":{"rendered":"<p>For a user with a modest\u00c2\u00a0collection of VA Snippets, the built-in type filtering and auto-sorting of the VA Snippet Editor are sufficient tools to manage the collection. Type filtering divides VA Snippets by access method in the UI of Visual Assist, and auto-sorting within a\u00c2\u00a0type\u00c2\u00a0makes scrolling efficient. For the occasional VA Snippet that is hard to locate by type filter, the search capability in the VA Snippet Editor is an ample ancillary\u00c2\u00a0tool.<\/p>\n<p>But for the user who has a massive collection of VA Snippets, built-in type filtering can fail\u00c2\u00a0to divide VA Snippets into manageable subsets. In these instances, hashtags in the descriptions of VA Snippets will tame the collection. You can add multiple hashtags to one VA Snippet, and tell\u00c2\u00a0the VA Snippet Editor to display only VA Snippets\u00c2\u00a0that include a specific hashtag(s).<\/p>\n<p>If hashtags might help you stay organized, start with a reasonable set of hashtags for your collection. Remember, one VA Snippet can have multiple hashtags. For example,\u00c2\u00a0you can specify a language construct, custom type, and author for a single VA Snippet. With your hashtags in hand, scroll through your collection of VA Snippets and add the hashtags\u00c2\u00a0to your descriptions, separating your hashtags with commas or spaces.<\/p>\n<p>Once you&#8217;ve added your hashtags, tell the VA Snippet Editor to\u00c2\u00a0display\u00c2\u00a0only entries containing a\u00c2\u00a0hashtag by:<\/p>\n<ol>\n<li>setting Type to &#8220;Search&#8221;<\/li>\n<li>entering a hashtag in the search field<\/li>\n<li>setting scope to &#8220;Search descriptions&#8221;<\/li>\n<\/ol>\n<p>In the following example, I search for VA Snippets I&#8217;ve tagged as loop constructs. The editor shows only\u00c2\u00a0the five I&#8217;ve tagged:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloop.png?ssl=1\"><img decoding=\"async\" data-attachment-id=\"776\" data-permalink=\"https:\/\/stage.wholetomato.com\/blog\/organize-va-snippets-with-hashtags\/bloghashtagloop-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloop.png?fit=504%2C333&amp;ssl=1\" data-orig-size=\"504,333\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"blogHashtagLoop\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloop.png?fit=300%2C198&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloop.png?fit=504%2C333&amp;ssl=1\" class=\"alignnone size-full wp-image-776\" src=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloop.png?resize=504%2C333&#038;ssl=1\" alt=\"blogHashtagLoop\" width=\"504\" height=\"333\" srcset=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloop.png?w=504&amp;ssl=1 504w, https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloop.png?resize=300%2C198&amp;ssl=1 300w, https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloop.png?resize=360%2C238&amp;ssl=1 360w\" sizes=\"(max-width: 504px) 100vw, 504px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Searches for VA Snippets that include any one of several\u00c2\u00a0tags requires you enable REs in searches\u00c2\u00a0and\u00c2\u00a0separate your hashtags with vertical bars\u00e2\u20ac\u201dthe symbol for &#8220;or&#8221; in an RE. For example, I can search for VA Snippets I&#8217;ve tagged as loop constructs or as switch statements:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtaglooporswitch.png?ssl=1\"><img decoding=\"async\" data-attachment-id=\"777\" data-permalink=\"https:\/\/stage.wholetomato.com\/blog\/organize-va-snippets-with-hashtags\/bloghashtaglooporswitch-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtaglooporswitch.png?fit=504%2C239&amp;ssl=1\" data-orig-size=\"504,239\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"blogHashtagLoopOrSwitch\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtaglooporswitch.png?fit=300%2C142&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtaglooporswitch.png?fit=504%2C239&amp;ssl=1\" class=\"alignnone size-full wp-image-777\" src=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtaglooporswitch.png?resize=504%2C239&#038;ssl=1\" alt=\"blogHashtagLoopOrSwitch\" width=\"504\" height=\"239\" srcset=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtaglooporswitch.png?w=504&amp;ssl=1 504w, https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtaglooporswitch.png?resize=300%2C142&amp;ssl=1 300w, https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtaglooporswitch.png?resize=360%2C171&amp;ssl=1 360w\" sizes=\"(max-width: 504px) 100vw, 504px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>Searches for VA Snippets that include\u00c2\u00a0multiple\u00c2\u00a0tags are\u00c2\u00a0a little trickier. The general pattern of an RE that finds VA Snippets\u00c2\u00a0with multiple tags is:<\/p>\n<pre>(?=.*#tag)(?=.*#tag)(?=.*#tag).+<\/pre>\n<p>In the following example, I find VA Snippets tagged as loop constructs AND authored by Jeff:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloopandjeff.png?ssl=1\"><img decoding=\"async\" data-attachment-id=\"779\" data-permalink=\"https:\/\/stage.wholetomato.com\/blog\/organize-va-snippets-with-hashtags\/bloghashtagloopandjeff-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloopandjeff.png?fit=504%2C239&amp;ssl=1\" data-orig-size=\"504,239\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"blogHashtagLoopAndJeff\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloopandjeff.png?fit=300%2C142&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloopandjeff.png?fit=504%2C239&amp;ssl=1\" class=\"alignnone size-full wp-image-779\" src=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloopandjeff.png?resize=504%2C239&#038;ssl=1\" alt=\"blogHashtagLoopAndJeff\" width=\"504\" height=\"239\" srcset=\"https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloopandjeff.png?w=504&amp;ssl=1 504w, https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloopandjeff.png?resize=300%2C142&amp;ssl=1 300w, https:\/\/i0.wp.com\/stage.wholetomato.com\/blog\/wp-content\/uploads\/2014\/08\/bloghashtagloopandjeff.png?resize=360%2C171&amp;ssl=1 360w\" sizes=\"(max-width: 504px) 100vw, 504px\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>If you have a large collection of VA Snippets, especially if you distribute the collection\u00c2\u00a0to other developers who\u00c2\u00a0browse through it, consider setting aside time to add hashtags. You may\u00c2\u00a0be more productive in the long run.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For a user with a modest\u00c2\u00a0collection of VA Snippets, the built-in type filtering and auto-sorting of the VA Snippet Editor are sufficient tools to manage the collection. Type filtering divides VA Snippets by access method&#8230;<\/p>\n","protected":false},"author":28485711,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[672],"tags":[],"class_list":["post-750","post","type-post","status-publish","format-standard","hentry","category-tips-and-tricks"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pfhqii-c6","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/users\/28485711"}],"replies":[{"embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/comments?post=750"}],"version-history":[{"count":23,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/750\/revisions"}],"predecessor-version":[{"id":780,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/posts\/750\/revisions\/780"}],"wp:attachment":[{"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/media?parent=750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/categories?post=750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stage.wholetomato.com\/blog\/wp-json\/wp\/v2\/tags?post=750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}