Skip to content

Commit e0036b9

Browse files
committed
Use humanized names for command palette-related instructions
Motivation: copy-pasting a command which is not humanized into the command palette will result in an empty list of matches. So lets tell users what they should type.
1 parent 7548339 commit e0036b9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

book/03-hacking-atom/sections/03-modify-buffer.asc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ Next we insert a string into the current text editor with the https://atom.io/do
6161

6262
===== Reload the Package
6363

64-
Before we can trigger `ascii-art:convert`, we need to load the latest code for our package by reloading the window. Run the command `window:reload` from the command palette or by pressing `ctrl-alt-cmd-l`.
64+
Before we can trigger `ascii-art:convert`, we need to load the latest code for our package by reloading the window. Run the command "Window: Reload" from the command palette or by pressing `ctrl-alt-cmd-l`.
6565

6666
===== Trigger the Command
6767

68-
Now open the command panel and search for the `ascii-art:convert` command. But it's not there! To fix this, open _package.json_ and find the property called `activationCommands`. Activation Events speed up load time by allowing Atom to delay a package's activation until it's needed. So remove the existing command and add `ascii-art:convert` to the `activationCommands` array:
68+
Now open the command panel and search for the "Ascii Art: Convert" command. But it's not there! To fix this, open _package.json_ and find the property called `activationCommands`. Activation commands speed up load time by allowing Atom to delay a package's activation until it's needed. So remove the existing command and use `ascii-art:convert` in `activationCommands`:
6969

7070
```json
7171
"activationCommands": {
7272
"atom-workspace": "ascii-art:convert"
7373
}
7474
```
7575

76-
First, reload the window by running the command `window:reload`. Now when you run the `ascii-art:convert` command it will output 'Hello, World!'
76+
First, reload the window by running the command "Window: Reload" from the command palette. Now when you run the "Ascii Art: Convert" command it will output 'Hello, World!'
7777

7878
===== Add a Key Binding
7979

@@ -98,8 +98,7 @@ Now we need to convert the selected text to ASCII art. To do this we will use th
9898
}
9999
```
100100

101-
After saving the file, run the command 'update-package-dependencies:update' from
102-
the Command Palette. This will install the package's node module dependencies, only figlet in this case. You will need to run 'update-package-dependencies:update' whenever you update the dependencies field in your _package.json_ file.
101+
After saving the file, run the command "Update Package Dependencies: Update" from the Command Palette. This will install the package's node module dependencies, only figlet in this case. You will need to run "Update Package Dependencies: Update" whenever you update the dependencies field in your _package.json_ file.
103102

104103
If for some reason this doesn't work, you'll see a message saying ``Failed to update package dependencies'' and you will find a new `npm-debug.log` file in your directory. That file should give you some idea as to what went wrong.
105104

0 commit comments

Comments
 (0)