Skip to content

A small quoting issue with %CONTENT% in snippets custom commands #240

@AttackButton

Description

@AttackButton

Hi. Small note about snippets custom commands: if %CONTENT% is wrapped in quotes inside command, the pasted result may include literal single quotes at the start and end. It worked correctly for me when using %CONTENT% without extra quotes.

command = "bash -lc 'printf %s "$1" | wl-copy && wtype -M ctrl v -m ctrl' _ %CONTENT%"
delay = 150

Maybe worth a small note in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions