Modification of an Extension of Brackets

Hello folks,

I am trying to modify the default extension called Brackets-awjzhy-177 which wraps selected text between curly brackets {}. I am trying to edit the config file but I can’t figure out the part where I put my own modification.

My modification would simply do the following: it wrap the selected text with the following

{{c1:: selected text goes in here }}

Then I would upload and tie to the key shortcut to bring up when I need it.

What’s the best way to accomplish.

Thanks,
George

1 Like

Hi George,

this should to the job:

#popclip
name: Cloze
icon: monospaced {{
javascript: popclip.pasteText('{{c1::' + popclip.input.text + '}}')
description: Adds cloze deletion to selection 

(The above block is an extension snippet – select it to install the extension with PopClip)

You can choose any name, description or icon you like, as detailed in the documentation. I just named it Cloze, as it looks you are a fellow Anki user :wink:

1 Like