Skip to content

Commit

Permalink
Merge pull request #111 from lordfanger/search-preview
Browse files Browse the repository at this point in the history
Enable rainbow braces is all-in-on search results preview
[release]
  • Loading branch information
madskristensen authored Mar 18, 2024
2 parents a87cfaa + d442ea0 commit e5d6656
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Helper/CustomTextViewRoles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ internal static class CustomTextViewRoles
/// TextView role for Read–eval–print loop.
/// </summary>
public const string Repl = "REPL";

/// <summary>
/// TextView role for preview of all-in-one search result.
/// </summary>
public const string SearchResultPreview = "SEARCH_RESULT_PREVIEW";
}
}
1 change: 1 addition & 0 deletions src/Tagger/RainbowTaggerProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ namespace RainbowBraces
[TextViewRole(CustomTextViewRoles.StickyScroll)]
[TextViewRole(CustomTextViewRoles.Diff)]
[TextViewRole(CustomTextViewRoles.Repl)]
[TextViewRole(CustomTextViewRoles.SearchResultPreview)]
[TagType(typeof(IClassificationTag))]
public class CreationListener : IViewTaggerProvider
{
Expand Down

0 comments on commit e5d6656

Please sign in to comment.