From abd683d999cf0ef0d8b583733e9412af473c5dcc Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sat, 16 May 2015 12:29:33 +0100 Subject: Add insertText visual indicator. Conflicts: background_scripts/completion.coffee --- background_scripts/completion.coffee | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'background_scripts') diff --git a/background_scripts/completion.coffee b/background_scripts/completion.coffee index 81f5c3a6..0f55e59c 100644 --- a/background_scripts/completion.coffee +++ b/background_scripts/completion.coffee @@ -45,14 +45,17 @@ class Suggestion return @html if @html relevancyHtml = if @showRelevancy then "#{@computeRelevancy()}" else "" # NOTE(philc): We're using these vimium-specific class names so we don't collide with the page's CSS. + insertTextClass = if @insertText then "vomnibarInsertText" else "vomnibarNoInsertText" + insertTextIndicator = "﹢" # A small plus sign. + insertTextIndicator = "﹥" # A small "greater than" sign. @html = """
- #{@type} + #{insertTextIndicator}#{@type} #{@highlightQueryTerms Utils.escapeHtml @title}
- #{@highlightUrlTerms Utils.escapeHtml @shortenUrl()} + #{insertTextIndicator}#{@highlightUrlTerms Utils.escapeHtml @shortenUrl()} #{relevancyHtml}
""" -- cgit v1.2.3