|
|
|
@ -1,3 +1,4 @@ |
|
|
|
|
import { CustomTooltip } from '@remix-ui/helper' |
|
|
|
|
import React, { useContext, useEffect, useRef, useState } from 'react' |
|
|
|
|
import { SearchContext } from '../context/context' |
|
|
|
|
|
|
|
|
@ -42,9 +43,14 @@ export const Find = () => { |
|
|
|
|
onKeyUp={handleKeypress} |
|
|
|
|
></input> |
|
|
|
|
<div className="search_plugin_controls"> |
|
|
|
|
<CustomTooltip |
|
|
|
|
tooltipText="Match Case" |
|
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
|
tooltipId="searchCaseSensitiveTooltip" |
|
|
|
|
placement="top-start" |
|
|
|
|
> |
|
|
|
|
<div |
|
|
|
|
data-id="search_case_sensitive" |
|
|
|
|
title="Match Case" |
|
|
|
|
className={`monaco-custom-checkbox codicon codicon-case-sensitive ${ |
|
|
|
|
state.casesensitive ? 'checked' : '' |
|
|
|
|
}`}
|
|
|
|
@ -56,9 +62,15 @@ export const Find = () => { |
|
|
|
|
toggleCaseSensitive() |
|
|
|
|
}} |
|
|
|
|
></div> |
|
|
|
|
</CustomTooltip> |
|
|
|
|
<CustomTooltip |
|
|
|
|
tooltipText="Match Whole Word" |
|
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
|
tooltipId="searchWholeWordTooltip" |
|
|
|
|
placement="top-start" |
|
|
|
|
> |
|
|
|
|
<div |
|
|
|
|
data-id="search_whole_word" |
|
|
|
|
title="Match Whole Word" |
|
|
|
|
className={`monaco-custom-checkbox codicon codicon-whole-word ${ |
|
|
|
|
state.matchWord ? 'checked' : '' |
|
|
|
|
}`}
|
|
|
|
@ -70,9 +82,15 @@ export const Find = () => { |
|
|
|
|
toggleMatchWholeWord() |
|
|
|
|
}} |
|
|
|
|
></div> |
|
|
|
|
</CustomTooltip> |
|
|
|
|
<CustomTooltip |
|
|
|
|
tooltipText="Use Regular Expression" |
|
|
|
|
tooltipClasses="text-nowrap" |
|
|
|
|
tooltipId="useRegularExpressionTooltip" |
|
|
|
|
placement="bottom-start" |
|
|
|
|
> |
|
|
|
|
<div |
|
|
|
|
data-id="search_use_regex" |
|
|
|
|
title="Use Regular Expression" |
|
|
|
|
className={`monaco-custom-checkbox codicon codicon-regex ${ |
|
|
|
|
state.useRegExp ? 'checked' : '' |
|
|
|
|
}`}
|
|
|
|
@ -84,6 +102,7 @@ export const Find = () => { |
|
|
|
|
toggleUseRegex() |
|
|
|
|
}} |
|
|
|
|
></div> |
|
|
|
|
</CustomTooltip> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|