{"id":955,"date":"2017-02-15T23:16:43","date_gmt":"2017-02-15T23:16:43","guid":{"rendered":"http:\/\/entrian.com\/blog\/?p=955"},"modified":"2021-07-01T07:19:53","modified_gmt":"2021-07-01T07:19:53","slug":"ess-174-wildcards-andcoloring","status":"publish","type":"post","link":"https:\/\/entrian.com\/blog\/ess-174-wildcards-andcoloring\/","title":{"rendered":"Entrian Source Search 1.7.4: Multi-token wildcards; query and result coloring"},"content":{"rendered":"<p>I&#8217;m very pleased to announce Entrian Source Search 1.7.4, which comes with a pile of cool new features:<\/p>\n<ul>\n<li>Multi-token wildcards. \u00a0There are now\u00a0three kinds of wildcards:\n<ol>\n<li>Single-token wildcard: <span style=\"background-color: #ffa; border: 1px solid #dda; padding: 0 0.2em;\">wild*<\/span> &#8211; the asterisk is next to an alphanumeric character, and expands to a single token, eg. <code>wild<\/code>, <code>wildcard<\/code>, <code>wilderness<\/code>. Asterisks in a single-token wildcard can appear <span style=\"background-color: #ffa; border: 1px solid #dda; padding: 0 0.2em;\">*any*where*<\/span> in the word.  (Source Search has supported this type of wildcard since 2008.)<\/li>\n<li>Single-line multi-token wildcard: <span style=\"background-color: #ffa; border: 1px solid #dda; padding: 0 0.2em;\">this * that<\/span> &#8211; the asterisk is on its own, and matches any number of tokens on the same line.<\/li>\n<li>Multi-line multi-token wildcard: <span style=\"background-color: #ffa; border: 1px solid #dda; padding: 0 0.2em;\">this *:10 that<\/span> &#8211; rather than being limited to a single line, these wildcards are explicitly limited to a number of tokens, and can span multiple lines.<\/li>\n<\/ol>\n<p>Here&#8217;s how you might find all the <code>std::vector<\/code>s concerning selections:<\/p>\n<p><a href=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/wilcards.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-958\" src=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/wilcards.png\" alt=\"\" width=\"619\" height=\"173\" srcset=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/wilcards.png 619w, https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/wilcards-300x84.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><br \/>\n<\/a><br \/>\nThanks, Chris and Vincent.<\/li>\n<li>Query syntax coloring, and results coloring: in the Search box, positive filters are now shown in green text, negative filters are shown in red text, and multiple search phrases are shown with different colored backgrounds with matching colors in the results list.\n<p>Here&#8217;s how you might find the places where your Python code uses a list or a dict as the default value for a function parameter:<a href=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/results-coloring.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-960\" src=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/results-coloring.png\" alt=\"\" width=\"619\" height=\"161\" srcset=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/results-coloring.png 619w, https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/results-coloring-300x78.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/results-coloring.png\"> <\/a><a href=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/results-coloring.png\"><\/a>Thanks, Chris.<\/li>\n<li>In the results list, the line numbers for lines with multiple matches (via the &#8220;Work like grep&#8221; option) now tell you how many matches there are on the line:<a href=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/line-counts.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-967\" src=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/line-counts.png\" alt=\"\" width=\"619\" height=\"162\" srcset=\"https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/line-counts.png 619w, https:\/\/entrian.com\/blog\/wp-content\/uploads\/2017\/02\/line-counts-300x79.png 300w\" sizes=\"auto, (max-width: 619px) 100vw, 619px\" \/><\/a><\/li>\n<li>Source Search now displays syntax highlighting for both Python and PHP source files in the results list. \u00a0Thanks, Patrice.(Note: Python and PHP syntax coloring will only be present after the relevant files are re-indexed; that will happen automatically when you start up this version of Source Search.)<\/li>\n<li>The <span class=\"keystroke\">Ctrl<\/span>+<span class=\"keystroke\">Alt<\/span>+<span class=\"keystroke\">C<\/span> shortcut key in the results list or the search box copies the result list to the clipboard as text. \u00a0Thanks, Anders.<\/li>\n<li><span class=\"keystroke\">Ctrl<\/span>+<span class=\"keystroke\">Del<\/span> in the Search box does delete-word-forward. \u00a0Thanks, Dylan.<\/li>\n<li>The existing <span class=\"keystroke\">Ctrl<\/span>+<span class=\"keystroke\">H<\/span> and <span class=\"keystroke\">Ctrl<\/span>+<span class=\"keystroke\">L<\/span> shortcuts for History Back and History Forward now appear in the tooltips. \u00a0Thanks, Martin.<\/li>\n<li>The match-highlight background rectangles in the results list no longer escape their bounds and paint over the other columns when &#8220;Work like grep&#8221; is enabled and the results list is narrow.<\/li>\n<\/ul>\n<p>You can download this new version from\u00a0<a href=\"http:\/\/entrian.com\/source-search\/download.html\">the download page<\/a> or\u00a0<a href=\"https:\/\/visualstudiogallery.msdn.microsoft.com\/e39a6996-ea46-459a-9f1e-9629547868bc\">the gallery<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m very pleased to announce Entrian Source Search 1.7.4, which comes with a pile of cool new features: Multi-token wildcards. \u00a0There are now\u00a0three kinds of wildcards: Single-token wildcard: wild* &#8211; the asterisk is next to an alphanumeric character, and expands to a single token, eg. wild, wildcard, wilderness. Asterisks in a single-token wildcard can appear [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-955","post","type-post","status-publish","format-standard","hentry","category-30days","category-changelog"],"_links":{"self":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts\/955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/comments?post=955"}],"version-history":[{"count":1,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts\/955\/revisions"}],"predecessor-version":[{"id":1291,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/posts\/955\/revisions\/1291"}],"wp:attachment":[{"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/media?parent=955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/categories?post=955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/entrian.com\/blog\/wp-json\/wp\/v2\/tags?post=955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}