# Feature SSI-261 - Add leading character to pattern input to initiate search

Project: Stream Storage Integrations
Status: closed
URL: https://community.openproject.org/work_packages/SSI-261

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 16.0.0 |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Use cases

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| SSI-263 | Sanitize html content with "zerowidthspace", if any token is not padded with whitespace | Implementation | closed |  |  |  |
| SSI-264 | Inserting a token must place the cursor behind the token, not inside | Implementation | closed |  |  |  |
| SSI-265 | display text contains parent and project context | Implementation | closed |  |  |  |
| SSI-266 | Implement leading character functionality | Implementation | closed |  |  |  |
| SSI-273 | Parent/Project prefix should not be part of search when replacing tokens | Implementation | closed |  |  |  |

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups | https://www.figma.com/design/I2IVNb97j1fNNCs32H6p2m/Automatic-generated-subjects?node-id=581-3217 |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers | Eric Schubert |
| Designer | Marc Alcobé |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** an admin  
**I want to** have full control over the search input while writing subject patterns  
**so that** I can search with white spaces and decide when to start searching

**Acceptance criteria**

  - If a user types any text into the input, no completion must be triggered.

  - If the user types a `/`, the completion must be triggered.

  - Any character between the `/` and the cursor must be used for the search term.
    
      - If there is no matching attribute for the search give the user the option to add the written as plain text.

  - If the user types a white space directly after the `/` the search and completion is cancelled.
    
      - (background: early escape as an alternative to press `Esc` and also, search terms do never start nor end with white space, they'd be trimmed either way.)

  - If the cursor is inside a token, the completion is triggered and the search term is everything from the beginning of the token til the cursor.

  - If a completion is selected when the cursor is inside a token, the token gets replaced by the new token.

QA

  - Known issues:
    
      - on FF you can get "before" the ZWSP, and hence having it located in between text nodes
        
          - this leads to unexpected clicking double click selections
        
          - this leads to "double" arrow key navigation needed to overcome the ZWSP
    
      - on chrome, you cannot get "before" any character (except it is the very first of the input), hence, you can use "DEL" on the first character of a token only from outside a token
        
          - this leads to the token being repaired directly
