Permalink
Browse files

change default method to list and default string to list 5*5

  • Loading branch information...
1 parent 9fb4c1a commit b3a7412db11205cb1dd343ed14a160db504a39f2 @fmarcia committed May 21, 2010
Showing with 6 additions and 3 deletions.
  1. +5 −2 zencoding/lorem_ipsum.py
  2. +1 −1 zencoding/zen_editor.py
View
@@ -27,7 +27,10 @@
l[ist] [case] [number_of_words_1 [number_of_words_2 [...]]]
where case is { u[pper] | lo[wer] | t[itle] }
- and number_of_words is an integer or a multiplication (n*m)
+ and number_of_words is an integer or a multiplication (for example '3*6')
+
+ commands can be shorten by using initials. For example, "wt 9" is equivalent
+ to "words title 9"
see examples at the end of this script
@@ -177,7 +180,7 @@ def parse(args):
method, case, params = parse(args)
if method is None:
- method = get_characters
+ method = get_list
return method(case, params)
if __name__ == '__main__':
View
@@ -33,7 +33,7 @@ class ZenEditor():
def __init__(self):
self.last_wrap = ''
self.last_expand = ''
- self.last_lorem_ipsum = 's 11 9 15'
+ self.last_lorem_ipsum = 'list 5*5'
zen_core.set_caret_placeholder('')
self.html_navigation = None

0 comments on commit b3a7412

Please sign in to comment.