Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3977
    rozenbom
    Member

    Hello. I am interesting if there will be support of real snippets (like in TextMate or Emacs)..
    Current snippets plugin is a little useless, I just could use then by setting different hotkeys for each snippet.
    But AFAIK, snippet is ,when I typing short abbreviation, pressing Ctrl+Space (or smth. else), and get my abbreviation converted to some code.
    Here some examples for Ruby on Rails:
    ase => assert_equal(expected, actual)
    asn => assert_nil(instance)
    asm => assert_match(/expected_pattern/, actual_string)
    It would be very cool, if there will be support for such snippets in EmEditor.

    #3979
    Yutaka Emura
    Keymaster

    Have you tried some auto-complete macros or plug-ins? Some are available in this web site – Library.

    #3986
    kinghoo
    Member

    If I input codes below:
    int abc;
    a

    Then press ctrl+space,the editor will complete abc.
    How can I perform it in Emeditor?

    #3987
    Yutaka Emura
    Keymaster

    You might want to try Auto complete macro using similar word in document, which does exactly what you would expect. You can customize the keyboard so CTRL + Space will run this macro.

    #3990
    kinghoo
    Member

    Thank you.Let me try it out.

    #4011
    rozenbom
    Member

    This is nice macros, but it’s not the thing, I need.
    I am talking about list of predefined snippets, which I could use by typing abbreviation and pressing Ctrl+Space

    #4012
    Yutaka Emura
    Keymaster

    In that case, you might want to try Auto Complete plug-in.

    #4020
    rozenbom
    Member

    Yes, thanks. It looks good.
    Could you help with finding .eac files for this plugin for Ruby and Rails?

    #4024
    Yutaka Emura
    Keymaster

    I have not seen .eac files for Ruby and Rails before. You can define those by yourself by copying other files.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.