From 17eec8ba3e20f684c24615e48f54afef2567f62e Mon Sep 17 00:00:00 2001 From: Brett Terpstra Date: Wed, 21 Dec 2011 17:26:29 -0600 Subject: updating documentation and script to handle first-level notes --- document_keybindings.rb | 4 ++-- readme.md | 12 ++++++------ 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 ^y - replace yank: command with yankAndSelect for use with the kill ring + replace yank: command with yankAndSelect for use with the kill ring ( defaults write -g NSTextKillRingSize -string 6) ^⇧u @@ -131,7 +131,7 @@ This documentation is generated automatically from the comments and commands in ^⌘↑ - move line up + move line up ( same commands but with arrow keys) ^⌘↓ @@ -147,7 +147,7 @@ This documentation is generated automatically from the comments and commands in ^⇧⌘← - Full outdent - Deletes all leading space (or first word) of line/paragraph + Full outdent - Deletes all leading space (or first word) of line/paragraph ( Control-shift-command-left arrow) ⌘⌥⇧↑ @@ -175,7 +175,7 @@ This documentation is generated automatically from the comments and commands in ⌥_ - hyphenate next space and move to next word + hyphenate next space and move to next word ( this will kill non alphanumeric symbols and punctuation, use only on words) ⌥1 @@ -187,11 +187,11 @@ This documentation is generated automatically from the comments and commands in ⌥⌘↩ - Continue a list item with indentation and include the same delimiter + Continue a list item with indentation and include the same delimiter ( Command Option Enter) ⇧⇥ - remove one tab (or character) from start of line (outdent) + remove one tab (or character) from start of line (outdent) ( Shift Tab) ⌘⌥b -- cgit v1.2.3