Code completion

  • Advertisement ( why? )
     

    vonsita, 3rd Sep 2012 1:25 pm

    Hi Chami, I've been toying with the idea of improving the code-completion proposals HKT currently has. Are they in a file? so that they can be manually added?

    As a heavy user of HKT this weekend discovered a small gremlin. When the caret is inside a closing tag (
    -->
    </script></pre> in this case) and press ctrl-space (to get code completion) HKT quits suddendly. I know it's unlikely somebody will look for code completion assist when in a closing tag, but if by accident you hit that key combination (as I did) you may lose a small amount of work.

    ooooorrrr.....is it a small secret feature I didn't know about? (just kidding).

    Thank you very much!

    Alfredo.

    • Chuck P, 4th Sep 2012 6:59 am

      On 3-Sep-2012, vonsita <e10305030803080306030c0308030@-> wrote:

      As a heavy user of HKT this weekend discovered a small gremlin. When the
      caret is inside a closing tag (
      -->
      </script></pre> in this case) and press
      ctrl-space (to get code completion) HKT quits suddendly. I know it's
      unlikely somebody will look for code completion assist when in a closing
      tag, but if by accident you hit that key combination (as I did) you may
      lose a small amount of work.

      Can not confirm that here ... calling code completion with ctrl+space from
      within a closing tag works perfectly for me.

      --
      Bald

      • Dave P, 4th Sep 2012 8:40 am

        On 9/4/2012 7:59 AM, Chuck Putnam wrote:

        On 3-Sep-2012, vonsita <e10305030803080306030c0308030@-> wrote:

        As a heavy user of HKT this weekend discovered a small gremlin. When the
        caret is inside a closing tag (
        -->
        </script></pre> in this case) and press
        ctrl-space (to get code completion) HKT quits suddendly. I know it's
        unlikely somebody will look for code completion assist when in a closing
        tag, but if by accident you hit that key combination (as I did) you may
        lose a small amount of work.

        Can not confirm that here ... calling code completion with ctrl+space from
        within a closing tag works perfectly for me.

        Just to add a "It works OK for me, too."
        Dave Pyles

    • HTML-Kit Support, 4th Sep 2012 10:52 am

      Hi Alfredo,

      On 9/3/2012 1:25 PM, vonsita wrote:

      Hi Chami, I've been toying with the idea of improving the
      code-completion proposals HKT currently has. Are they in a file? so
      that they can be manually added?

      They're not in a separate file (Tools tries to keep the number of
      external files low). So this would have to be added as a plugin manager,
      which I plan on doing.

      As a heavy user of HKT this weekend discovered a small gremlin. When
      the caret is inside a closing tag (
      -->
      </script></pre> in this case) and press
      ctrl-space (to get code completion) HKT quits suddendly. I know it's
      unlikely somebody will look for code completion assist when in a
      closing tag, but if by accident you hit that key combination (as I
      did) you may lose a small amount of work.

      ooooorrrr.....is it a small secret feature I didn't know about?
      (just kidding).

      Thank you very much!

      Alfredo.

      I also couldn't reproduce this but if you're still able to, please let
      me know the exact steps or other information that might help.

      Chami

      • vonsita, 5th Sep 2012 2:35 pm

        Confirmed (with a correction) if press crtl+space inside </> with caret between the forward slash and the greater-than symbol...HKT ----> gone, at least for me...I dont know...

        Ok I'll wait for you to include them...I'm just about to complete the article remember? I had little trouble again with local servers, this time with MS's IIS blocking everything but it's now up and running so I'll be able to preview on device and take some screenshots!

        Thank you!

        Alfredo.

        P.D. What's the diff between HKT '815a and '817a ?

        • HTML-Kit Support, 6th Sep 2012 7:20 am

          On 9/5/2012 2:35 PM, vonsita wrote:

          Confirmed (with a correction) if press crtl+space inside </> with
          caret between the forward slash and the greater-than symbol...HKT
          ----> gone, at least for me...I dont know...

          Hmm... a quick test this morning didn't reproduce this for me but I'll
          try again.

          Ok I'll wait for you to include them...I'm just about to complete the
          article remember? I had little trouble again with local servers,
          this time with MS's IIS blocking everything but it's now up and
          running so I'll be able to preview on device and take some
          screenshots!

          Thank you!

          Alfredo.

          Yay! I'm looking forward to reading your article, Alfredo. Where would I
          see it (whenever you're ready)?

          P.D. What's the diff between HKT '815a and '817a ?

          Not much, I think it was a build for a specific question/request.

          I hope to post a new build today. Though it's not directly related to
          the work you're doing, I think you might still find it interesting :)

          Chami

          • Dave P, 6th Sep 2012 8:05 am

            On 9/6/2012 8:20 AM, HTML-Kit Support wrote:

            On 9/5/2012 2:35 PM, vonsita wrote:

            Confirmed (with a correction) if press crtl+space inside </> with
            caret between the forward slash and the greater-than symbol...HKT
            ----> gone, at least for me...I dont know...

            Hmm... a quick test this morning didn't reproduce this for me but I'll
            try again.

            Ok I'll wait for you to include them...I'm just about to complete the
            article remember? I had little trouble again with local servers,
            this time with MS's IIS blocking everything but it's now up and
            running so I'll be able to preview on device and take some
            screenshots!

            Thank you!

            Alfredo.

            Yay! I'm looking forward to reading your article, Alfredo. Where would I
            see it (whenever you're ready)?

            P.D. What's the diff between HKT '815a and '817a ?

            Not much, I think it was a build for a specific question/request.

            I hope to post a new build today. Though it's not directly related to
            the work you're doing, I think you might still find it interesting :)

            Chami

            I can confirm that in this situation the machine shuts down when you hit
            ctrl+space: You have </> and you put the cursor between the / and the >
            and hit ctrl+space, the program shuts down.

            It only shuts down in that particular circumstance. It does not shut
            down if, for instance, you have </p> and hit ctrl+space with the cursor
            either before ot after the p.

            Dave Pyles

            • HTML-Kit Support, 6th Sep 2012 8:23 am

              On 9/6/2012 8:05 AM, Dave Pyles wrote:

              On 9/6/2012 8:20 AM, HTML-Kit Support wrote:

              On 9/5/2012 2:35 PM, vonsita wrote:

              Confirmed (with a correction) if press crtl+space inside </>
              with caret between the forward slash and the greater-than
              symbol...HKT ----> gone, at least for me...I dont know...

              Hmm... a quick test this morning didn't reproduce this for me but
              I'll try again.

              ...

              I can confirm that in this situation the machine shuts down when you
              hit ctrl+space: You have </> and you put the cursor between the / and
              the > and hit ctrl+space, the program shuts down.

              I'm sure it was a minor typo but just to avoid any confusion for anyone
              else reading this, we're talking about the program NOT the machine
              shutting down :)

              It only shuts down in that particular circumstance. It does not shut
              down if, for instance, you have </p> and hit ctrl+space with the cursor
              either before ot after the p.

              Dave Pyles

              I'm still unable to reproduce this so there must be something else I'm
              missing. In build 20120817 I created a new HTML5 doc using the template,
              typed </>, moved between / and >, and hit Ctrl+Space.

              Chami

              • Dave P, 6th Sep 2012 9:04 am

                On 9/6/2012 9:23 AM, HTML-Kit Support wrote:

                On 9/6/2012 8:05 AM, Dave Pyles wrote:

                On 9/6/2012 8:20 AM, HTML-Kit Support wrote:

                On 9/5/2012 2:35 PM, vonsita wrote:

                Confirmed (with a correction) if press crtl+space inside </>
                with caret between the forward slash and the greater-than
                symbol...HKT ----> gone, at least for me...I dont know...

                Hmm... a quick test this morning didn't reproduce this for me but
                I'll try again.

                ...

                I can confirm that in this situation the machine shuts down when you
                hit ctrl+space: You have </> and you put the cursor between the / and
                the > and hit ctrl+space, the program shuts down.

                I'm sure it was a minor typo but just to avoid any confusion for anyone
                else reading this, we're talking about the program NOT the machine
                shutting down :)

                It only shuts down in that particular circumstance. It does not shut
                down if, for instance, you have </p> and hit ctrl+space with the cursor
                either before ot after the p.

                Dave Pyles

                I'm still unable to reproduce this so there must be something else I'm
                missing. In build 20120817 I created a new HTML5 doc using the template,
                typed </>, moved between / and >, and hit Ctrl+Space.

                Chami

                Sorry about that. Yes, the program.

                I was using just a blank new document before, but I tried it using the
                HTML 5 template and the program still shut down for me when I Ctrl+Space
                in a </> tag with the cursor between / and >.

                Dave

                • vonsita, 6th Sep 2012 11:58 am

                  That's correct! This came up when trying to get code completion in a

                  <

                  pre><script><!--
                  tag. Sometimes code completion does not come up to the recue so hit cntrl + space to get help and....what?....where?...gone (the program) and yes is a HTML5 doc (the only thing I write today).

                  Thank you!!

                  Alfredo.

                  • HTML-Kit Support, 7th Sep 2012 6:01 pm

                    On 9/6/2012 11:58 AM, vonsita wrote:

                    That's correct! This came up when trying to get code completion in a

                    <

                    pre><script><!--
                    tag. Sometimes code completion does not come up to the recue

                    so hit cntrl + space to get help and....what?....where?...gone (the
                    program) and yes is a HTML5 doc (the only thing I write today).

                    Thank you!!

                    Alfredo.

                    For some reason I wasn't able to reproduce this even with </> but I can
                    see how it can happen and have added code to handle scenarios like this.

                    The fix didn't make it to 20120902 build. It'll be in the next.

                    Thank you very much!!

                    Chami

                    • patyoung, 10th Sep 2012 6:39 pm

                      i read this topic, but can't figure out how to get code completion to work at all. it sounds very handy. is it an option in the setup ? i couldn't find it in preferences. 20120705.

                      • HTML-Kit Support, 11th Sep 2012 11:31 am

                        Hi,

                        On 9/10/2012 6:39 PM, patyoung wrote:

                        i read this topic, but can't figure out how to get code completion
                        to work at all. it sounds very handy. is it an option in the setup ?
                        i couldn't find it in preferences. 20120705.

                        When you're editing a HTML document, typing < (and pausing for a second)
                        should bring up the TagsReminder.

                        You can also place the caret inside a tag like

                        <

                        div | > and hit space to
                        bring up the HTML TagsReminder :)

                        Chami