summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Terpstra2011-12-21 17:26:29 -0600
committerBrett Terpstra2011-12-21 17:26:29 -0600
commit17eec8ba3e20f684c24615e48f54afef2567f62e (patch)
tree39d13bb84b10993b4a04bfb96dcbb5124518c522
parent6622502c015bbf00f9bca22e4f01f9cbc3d1539b (diff)
downloadKeyBindings-17eec8ba3e20f684c24615e48f54afef2567f62e.tar.bz2
updating documentation and script to handle first-level notes
-rwxr-xr-xdocument_keybindings.rb4
-rw-r--r--readme.md12
2 files changed, 8 insertions, 8 deletions
diff --git a/document_keybindings.rb b/document_keybindings.rb
index aa7ba8d..1579a01 100755
--- a/document_keybindings.rb
+++ b/document_keybindings.rb
@@ -99,11 +99,11 @@ input.split("\n").each {|line|
next
elsif line =~ /^\s*"([^"]+)"\s*=\s*\(/
command = translate_command($1)
+ note = "(#{note})" if note != ''
if level == 0
- toplevel.push("|#{command}|#{desc}|\n")
+ toplevel.push("|#{command}|#{desc} #{note}|\n")
else
command = prefix + "," + command if prefix
- note = "(#{note})" if note != ''
output += "|#{group_command} |#{subgroup_command} |#{command} |#{desc} #{note}|\n"
end
note = ''
diff --git a/readme.md b/readme.md
index 4c9fc4e..b72634c 100644
--- a/readme.md
+++ b/readme.md
@@ -31,7 +31,7 @@ This documentation is generated automatically from the comments and commands in
<tbody>
<tr>
<td style="text-align:center;">^y</td>
- <td style="text-align:left;">replace yank: command with yankAndSelect for use with the kill ring</td>
+ <td style="text-align:left;">replace yank: command with yankAndSelect for use with the kill ring ( defaults write -g NSTextKillRingSize -string 6)</td>
</tr>
<tr>
<td style="text-align:center;">^⇧u</td>
@@ -131,7 +131,7 @@ This documentation is generated automatically from the comments and commands in
</tr>
<tr>
<td style="text-align:center;">^⌘↑</td>
- <td style="text-align:left;">move line up</td>
+ <td style="text-align:left;">move line up ( same commands but with arrow keys)</td>
</tr>
<tr>
<td style="text-align:center;">^⌘↓</td>
@@ -147,7 +147,7 @@ This documentation is generated automatically from the comments and commands in
</tr>
<tr>
<td style="text-align:center;">^⇧⌘←</td>
- <td style="text-align:left;">Full outdent - Deletes all leading space (or first word) of line/paragraph</td>
+ <td style="text-align:left;">Full outdent - Deletes all leading space (or first word) of line/paragraph ( Control-shift-command-left arrow)</td>
</tr>
<tr>
<td style="text-align:center;">⌘⌥⇧↑</td>
@@ -175,7 +175,7 @@ This documentation is generated automatically from the comments and commands in
</tr>
<tr>
<td style="text-align:center;">⌥_</td>
- <td style="text-align:left;">hyphenate next space and move to next word</td>
+ <td style="text-align:left;">hyphenate next space and move to next word ( this will kill non alphanumeric symbols and punctuation, use only on <em>words</em>)</td>
</tr>
<tr>
<td style="text-align:center;">⌥1</td>
@@ -187,11 +187,11 @@ This documentation is generated automatically from the comments and commands in
</tr>
<tr>
<td style="text-align:center;">⌥⌘↩</td>
- <td style="text-align:left;">Continue a list item with indentation and include the same delimiter</td>
+ <td style="text-align:left;">Continue a list item with indentation and include the same delimiter ( Command Option Enter)</td>
</tr>
<tr>
<td style="text-align:center;">⇧⇥</td>
- <td style="text-align:left;">remove one tab (or character) from start of line (outdent)</td>
+ <td style="text-align:left;">remove one tab (or character) from start of line (outdent) ( Shift Tab)</td>
</tr>
<tr>
<td style="text-align:center;">⌘⌥b</td>