Skip to content

Offline Key Model that uses Regular Expression #129

@vironite-23

Description

@vironite-23

This probably a bit much to implement since not everyone understand regex and how it works, but this will be very helpful during offline text editing (even on online LeanType keyboard) on some circumstances.

The way it works is that on key configuration, along with Edit text, Adjust tone, etc, there's an option called Regular Expression. When selecting this option, we can use input and output to create regex for selected text and edit them the way we want.

For example:
Input=(.*)\bquick\b(.*)
Output=$1hurry$2

Now when we used this key on a text like "Please be quick" it'll change to "Please be hurry" and the \b (boundaries) will make sure that word like "quickly" won't change to "hurryly".

I always wanted this feature on G-board (but for dictionary) but it probably never get added.

v3.7.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions