Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-2445

jQuery snippets not firing in some cases

    Details

      Description

      {html}<div><p>Assigned to <a href=
      "http://aptanastudio.tenderapp.com/discussions/questions/1110-jquery-ruble-snippet-triggers">
      Tender discussion #1110</a>. As reported in Tender:</p>
      <blockquote>
      <p>Current system: Aptana Studio 3.0.0 on Win 7 64bit</p>
      <p>I have been working with the jquery ruble a couple of hours to
      get it working.<br>
      I've gotten the menus and code assist work where I want by changing
      the scope but I have a problem with the triggers.</p>
      <p>The Jquery bundled use snippets for both functions and
      snippets.<br>
      A function can be chained and should be triggered on ".add" for
      instance.</p>
      <p>Aptana does however not recognize the trigger when I chain the
      functions as: $(selector).add()<br>
      Aptana only recognize the trigger when there is a space before "
      .add()".</p>
      <p>Is there any way to use a wildcard in the snippet.rb trigger of
      the functions?<br>
      Something like snip.trigger = "*.add" ? The asterix would symbolize
      any number of characters to get aptana to recognize the
      trigger.</p>
      <p>Is there any other way to achieve the same result?</p>
      </blockquote>
      <p>It looks like we need to calculate the potential snippet prefix
      differently. Most likely, we need to calculate prefixes differently
      by language. In an offline discussion, one thought was that we may
      be able to repurpose the activation character list when determining
      this prefix.</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              aptana1 Aptana
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code