This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.
Here are the required steps to create a command:
-
Create a new Gist with a
command.js
andcommand.json
file. -
Put the JavaScript that should be executed when the command is run in
command.js
. This will be injected into the page the user is currently on. -
Add some metadata to the
command.json
file:
- name: The name of the command.
- description: A short sentence about what the command does.
- icon (optional): A link to a 60x60 PNG icon.
- link (optional): A link to a related home page.
-
Copy the id of your Gist from the URL. (The ID of this command is
6859173
) -
Paste the id into the custom commands field in the Backtick settings. You can easily access the settings by clicking the Backtick icon on the command execution console.
You can suggest to add one of your own commands to the list of predefined commands that are included with Backtick, just contact me on Twitter (@JoelBesada) with a link to your command Gist.