Skip to content

Not compatible with Zsh #117

Description

@Nerian

Hello,

The Rake task for creating a new post seems to be not compatible with Zsh.

rake new_post["Zombie Ninjas Attack: A survivor's retrospective"]   
zsh: no matches found: new_post[Zombie Ninjas Attack: A survivor's retrospective]

Activity

  1. zanshin commented on Aug 25, 2011

    @zanshin
    Contributor

    You need to create an alias for rake in your .zshrc. Like this:

    alias rake="noglob rake"

    With that in place you'll be good to go.

  2. imathis commented on Aug 25, 2011

    @imathis
    Owner

    Thanks @zan5hin! I should add that to the setup docs!

  3. mysteriouspants commented on Aug 25, 2011

    @mysteriouspants
    Contributor

    If you don't feel like not globbing, the following works fairly well, too:

      rake "new_post[Zombie Ninjas Attack: A Pastafarian's Retrospective]"
    

    It probably dies on a lot of characters, but if you're in a bind, it's better than nothing.

  4. Merovex commented on Sep 10, 2011

    @Merovex

    Had the same problem, the .zshrc fix did not work, but @nserror comment worked.

  5. imathis commented on Sep 10, 2011

    @imathis
    Owner

    That's pretty awful. Perhaps I should ditch the inline variable and make it a dialog?

    rake new_post
    Enter a post title:
    
  6. Nerian commented on Sep 10, 2011

    @Nerian
    Author

    I like that idea

  7. imathis commented on Sep 18, 2011

    @imathis
    Owner

    I'm sorry for the annoyance, I didn't realize rake was so poor at arguments. This is on the list of coming attractions.

  8. zanshin commented on Sep 19, 2011

    @zanshin
    Contributor

    I'm not able to create a posting with a comma either. Using a \ to escape the comma didn't help. If you do add a prompt for the post name, could that be optional? I.e., if I enter rake new_post["Some title"] have it work as it does not, but if I just enter rake new_post have it prompt me for the title?

  9. imathis commented on Sep 19, 2011

    @imathis
    Owner

    Yeah I don't want everyone to have to relearn how to post. If the args are empty it'll ask for a title. Good thought.

  10. mysteriouspants commented on Sep 19, 2011

    @mysteriouspants
    Contributor

    Calling downcase on the title when making the filename might be a good idea, too. ;-)

  11. mrcasals commented on Sep 28, 2011

    @mrcasals

    I'm having the same trouble, and if I write rake new_post it just creates a new post titled "New post" and doesn't ask for the title as @imathis suggested... Any idea on when will it be implemented? :)

  12. imathis commented on Sep 28, 2011

    @imathis
    Owner

    I'm currently working full steam on getting the 2.1 release ready. It's going to be in there. Sorry for the delay. I'm hoping to have it up this weekend.

  13. 10 remaining items

  14. added a commit that references this issue on May 21, 2012
    bfa5255
  15. heymichaelp commented on Jul 29, 2012

    @heymichaelp

    Definitely appreciate the .zshrc alias comment. Fixed the issue for me, too.

  16. westonplatter commented on Aug 7, 2012

    @westonplatter

    @imathis per your bfa5255 commit, I tried, rake new_post and was not prompted for a title, but rather the title was automatically "new post" and the file was <date>-new-post.markdown.

    Did you change this?

  17. imathis commented on Aug 18, 2012

    @imathis
    Owner

    @westonplatter Rake new_post has had defaults for a long time.

  18. atmosx commented on Sep 11, 2012

    @atmosx

    Latest version, used here with oh-my-zsh, some issues still persist:

    ➜  .octopress git:(master) ✗ rake new_post[\"test"\]
    dquote>
    ➜  .octopress git:(master) ✗ rake "new_post[test]"
    mkdir -p source/_posts
    Creating new post: source/_posts/2012-09-11-test.markdown
    ➜  .octopress git:(master) ✗ rm source/_posts/2012-09-11-* 
    ➜  .octopress git:(master) ✗ rake "new_post[karida loaded!]"
    zsh: event not found: ]
    ➜  .octopress git:(master) ✗ rake "new_post[karida loaded]"
    mkdir -p source/_posts
    Creating new post: source/_posts/2012-09-11-karida-loaded.markdown
    ➜  .octopress git:(master) ✗ 
    

    I can't put special chars like: $!@#%^&.. in the title. But it's okay...

  19. zanshin commented on Sep 11, 2012

    @zanshin
    Contributor

    Try creating an alias like this alias rake="noglob rake".

  20. atmosx commented on Sep 11, 2012

    @atmosx

    Already did that.

  21. kud commented on Sep 29, 2012

    @kud

    +1 for zsh support.

  22. chrishough commented on Dec 30, 2012

    @chrishough

    the alias rake="noglob rake" worked for me with iterm2 (zsh)

  23. freme commented on Oct 18, 2013

    @freme

    bundle exec rake "new_post[no special characters]"
    was what i needed to run with rake 0.9.6 (using a oh-my-zsh and iterm2)

  24. ridwanahmedkhan commented on Aug 22, 2014

    @ridwanahmedkhan

    Had the same problem, the .zshrc fix did not work, but @nserror comment worked.thanks.

  25. strivingboy commented on Jun 17, 2015

    @strivingboy

    thanks good work for me

  26. liuyix commented on Oct 20, 2015

    @liuyix

    I have the same problem, but using the alias rake="noglob rake" works fine. Putting this suggestion in the doc may be helpful for many folks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions