espanso icon indicating copy to clipboard operation
espanso copied to clipboard

Allow user to mark some word that won't be uppercased with "uppercase_style: capitalize_words"

Open fredericofqd opened this issue 1 year ago • 0 comments

Description

Create a new uppercase_style mode in which the user can exclude some words from been capitalized.

Motivation

Useful for multi-word replacements that include terms like "of", "a", "an", etc.

We should be able to mark in the replacement text which words should not be capitalizes.

Exemple:

trigger: bab replace: bread $and butter uppercase_style: capitalize_words propagate_case: true

#### The '$' symbol (or any other) means that the 'and' word should not be capitalized with "uppercase_style: capitalize_words" Result

bab -> bread and butter Bab -> Bread and Butter BAB -> BREAD AND BUTTER

Alternatives

No response

Have you tried building it? Or would you like it?

  • [ ] I'd be willing to contribute this feature to Espanso myself.

fredericofqd avatar Jun 26 '24 21:06 fredericofqd