Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: EmEditor Professional 8.00 beta 2 #6270
    jonhutch24
    Member

    zhouzh2 wrote:
    Do you have any plan to make the snippet plug-in more powerful (like TextMate’s bundle system):

    Type

    for[TAB] 

    get:

    for (unsigned int i = 0; i < count; i ++) 
    {
    ^
    }

    The first Tab stays on “unsigned int”, a second Tab stays on “i”, if you change “i” to “idx”, then the following “i”s changes to “idx” too. A third Tab go to “count”, a fourth tab let the cursor goes to “^”‘s position and close snippet mode therefore you can insert Tab normally.

    I just tested TextMate on my friend’s computer and this so-called “bundle” is quite amazing.

    This feature has be requested for some time now. But please feel free to keep hounding them about it! Hopefully we can get enough people to push it then he’ll implement it :-)

    jonhutch24
    Member

    Just checking on the status of this and wondering if we’ll be seeing these features anytime soon?

    jonhutch24
    Member

    blackhawk wrote:
    I agree. So long as when you replace the first one, it does all the rest, then moves to the next tag.

    Good catch blackhawk! I knew I was forgetting something in that last example. :-? Yes, it would need to move on to the next unaltered tag when you hit tab. :-)

    Edit: I just realized that this thread may not be the best place to do this. This thread (I believe) was started in regards to the autocomplete plugin. My requests are more snippet plug-in oriented. If you need us to move this to a new thread, I’ll be more than happy to copy and paste (or retype if necessary) everything others and myself have requested the snippet plugin do.

    jonhutch24
    Member

    YAR! (Yet another Request)

    Along with everything mentioned above, the ability to complete multiple tab stops by naming them the same and only typing over one.

    Example (since I suck at explaining things):

    I have the snippet:

    while $var1$ = $answer$ continue
    msgbox(“The user answered:” & $answer$)
    end while

    so when I fire it up (maybe by typing “mywhile” and hitting tab ;) ) I type something like this:
    userAnswer -> TAB -> “Forty two” -> TAB

    and the string “Forty two” is put in both places where $answer$ is so in the end it looks like:

    while userAnswer = “Forty two” continue
    msgbox(“The user answered:” & “Forty two” )
    end while

    Does this make sense? I know I’m asking a lot from this snippet plug in. But it’s a VERY useful feature when doing a lot of repetitive coding… Thanks so much for your input and time!
    :-D

    jonhutch24
    Member

    Another request for the snippets, is text expansion.

    Take my last example for instance:
    The snippet is:
    if $con1$ = $con2$ then
    $expression$
    end if

    It would be nice if I could assign a command to type (in this example “ifstate”) and type something like:
    ifstate -> TAB

    And then have the snippet put the entire snippet in with $con1$ already highlighted. Not sure if this interferes with any of the other systems already in place, but it would be SUPER useful instead of having to go back and forth to the snippet pane. :D Thanks for the great product!

    jonhutch24
    Member

    Sorry, let me show you an example

    Let’s say I make a snippet and it looks like this (this is just in theory):

    if $con1$ = $con2$ then
    $expression$
    end if

    Now when I run the snippet I’d like $con1$ already highlighted so I could just write over it, and when when I hit the tab key, it would move to $con2$ and highlight it so I could write over it, and when I hit tab again it would move to $expression$ and highlight it so I could type over it.

    So my typing would look something like this:
    Run the snippet
    var1 -> TAB -> 23 -> TAB -> writeline(“It’s 23!”)

    and the text editor in the end would have:
    if var1 = 23 then
    writeline(“It’s 23!”)
    end if

    does this make any more sense? Sorry, I’m not very good at explaining things some times… :-?

    jonhutch24
    Member

    Ok what I would REALLY like is tab stops in the snippets. That’s my request! :)

    in reply to: Snippets Enhancement Request #5553
    jonhutch24
    Member

    The features I really need mirror the functionality found in the snippet component found in Visual Studio 2005.

    What I would like to see would be to have a template like this:

    Public ReadOnly Property $PropName As $PropType
    Get
    Return $ProbField
    End Get
    End Property

    Where when you insert the snippet, you can tab through the $tags and insert the text you want.

    in reply to: Voting for Hex Editor #5552
    jonhutch24
    Member

    Always a useful feature. I cast my vote for this functionality as well.

    jonhutch24
    Member

    I second that motion. This kind of functionality would make EmEditor nearly invaluable to me as a programmer.

Viewing 10 posts - 1 through 10 (of 10 total)