TagSpaces is an offline, open source, document manager with tagging support
feat: adding help for the extended search options
Ilian Sapundshiev693d3911a3b8
diff --git a/src/renderer/components/SearchPopover.tsx b/src/renderer/components/SearchPopover.tsxindex 2d4ca24ff..b6dc3186a 100644--- a/src/renderer/components/SearchPopover.tsx+++ b/src/renderer/components/SearchPopover.tsx@@ -30,6 +30,8 @@ import Grid from '@mui/material/Grid';import OutlinedInput from '@mui/material/OutlinedInput';import TextField from '@mui/material/TextField';import InputLabel from '@mui/material/InputLabel';+import InputAdornment from '@mui/material/InputAdornment';+import { InfoTooltipIcon } from '-/components/CommonIcons';import IconButton from '@mui/material/IconButton';import Select from '@mui/material/Select';import FormControl from '@mui/material/FormControl';@@ -603,11 +605,49 @@ function SearchPopover(props: Props) {<Grid item xs={12}><TextFieldid="searchTerm"- label={t('core:searchHasTheWords')}+ label={t('core:searchQueryInfo')}value={props.textQuery}onChange={handleSearchTermChange}onKeyDown={startSearch}style={{ width: '100%' }}+ InputProps={{+ endAdornment: (+ <InputAdornment position="end">+ <Tooltip+ title={+ <>+ <Typography variant="subtitle1" color="inherit">+ Tips for the extended search+ </Typography>+ <Typography variant="subtitle2" color="inherit">+ ⦿ <b>{'sun'}</b> - will match entries having the+ word sun but also san or sum in the name+ <br />⦿ <b>{'=sun'}</b> - will match entries having+ exactly the word sun in the name+ <br />⦿ <b>{'"sun and beach"'}</b> - will match+ entries having `sun and beach´ in the name+ <br />⦿ <b>{"'sun 'beach"}</b> - will match entries+ having sun or beach in the name+ <br />⦿ <b>{'!sun'}</b> - will match entries which+ do not contain sun+ <br />⦿ <b>{'^sun'}</b> - will match entries+ beginning with sun+ <br />⦿ <b>{'!^sun'}</b> - will match entries witch+ do not begin with sun+ <br />⦿ <b>{'.pdf$'}</b> - will match entries ending+ with .pdf+ <br />⦿ <b>{'!.pdf$'}</b> - will match entries not+ ending with .pdf+ <br />+ </Typography>+ </>+ }+ >+ <InfoTooltipIcon />+ </Tooltip>+ </InputAdornment>+ ),+ }}/></Grid></Grid>diff --git a/src/renderer/locales/en/core.json b/src/renderer/locales/en/core.jsonindex 1978f35cc..8f5b4e920 100644--- a/src/renderer/locales/en/core.json+++ b/src/renderer/locales/en/core.json@@ -832,5 +832,6 @@"copyIdToClipboard": "Copy entry ID to the clipboard","entryIdCopied": "Entry ID copied","entryIdTooltip": "Entry ID is used for sharing links",+ "searchQueryInfo": "Query - see tooltip of the info icon for help","-": "-"}