Search issue/bug?

  • Advertisement ( why? )
     

    Darren777, 28th Aug 2012 11:45 am

    When I search for a word within a document, that word is highlighted and a small green arrow also shows up on the left to indicate which line it's on.

    1) there are also arrows appearing at random next to lines where the word is not present

    2) I thought pressing escape would clear all the highlighted words I just searched for? it doesn't

    3) Is there a way to jump to next - e.g. if I want to change a variable name from $me to $you I'd like to go to the first instance of $me that I searched for, change it, then somehow hot key jump to the next one. I am aware of search and replace (if there is one) but I might not want to change them all for whatever reason.

    If these features already exist I apologise but have searched and not found... could be me though!

    Thanks as always for a superb product Chami!

    Rgds

    Darren

    • bill, 28th Aug 2012 1:50 pm

      On 8/28/2012 12:45 PM, Darren777 wrote:

      When I search for a word within a document, that word is highlighted and a small green arrow also shows up on the left to indicate which line it's on.

      1) there are also arrows appearing at random next to lines where the word is not present

      2) I thought pressing escape would clear all the highlighted words I just searched for? it doesn't

      3) Is there a way to jump to next - e.g. if I want to change a variable name from $me to $you I'd like to go to the first instance of $me that I searched for, change it, then somehow hot key jump to the next one. I am aware of search and replace (if there is one) but I might not want to change them all for whatever reason.

      If these features already exist I apologise but have searched and not found... could be me though!

      Thanks as always for a superb product Chami!

      Rgds

      Darren

      If you ctrl-F you get a search box. when you get the first
      instance click OK - box disappears, make the changes you want and
      then F3 to get to the next instance.

      Not quite what you want as you have to manually make each change.

      • Darren777, 28th Aug 2012 3:10 pm

        Aside from the random green arrow issue and escape not removing the masks that's exactly what i wanted.

        Thanks Bill!!

        One out of three ain't bad.. there's a song there somewhere... Oh, hang on though...

        Darren

        • HTML-Kit Support, 28th Aug 2012 3:26 pm

          On 8/28/2012 3:10 PM, Darren777 wrote:

          Aside from the random green arrow issue and escape not removing the
          masks that's exactly what i wanted.

          Thanks Bill!!

          One out of three ain't bad.. there's a song there somewhere... Oh,
          hang on though...

          Darren

          Hi Darren,

          Let's tackle the remain two... :)

          The green arrows are bookmarks added by you (Ctrl+F2 or clicking line
          numbers), searches (with bookmarks option enabled) and similar functions.

          "Edit > Bookmarks and Marks > Clear All Bookmarks" does the trick.
          Though Escape doesn't clear bookmarks, Ctrl+Shift+F2 does.

          Hope this helps!

          Chami

          • bill, 29th Aug 2012 5:57 am

            On 8/28/2012 4:26 PM, HTML-Kit Support wrote:

            On 8/28/2012 3:10 PM, Darren777 wrote:

            Aside from the random green arrow issue and escape not removing
            the
            masks that's exactly what i wanted.

            Thanks Bill!!

            One out of three ain't bad.. there's a song there somewhere... Oh,
            hang on though...

            Darren

            Hi Darren,

            Let's tackle the remain two... :)

            The green arrows are bookmarks added by you (Ctrl+F2 or clicking
            line numbers), searches (with bookmarks option enabled) and
            similar functions.

            "Edit > Bookmarks and Marks > Clear All Bookmarks" does the
            trick. Though Escape doesn't clear bookmarks, Ctrl+Shift+F2 does.

            Hope this helps!

            Chami

            Chami, it would still be nice to have a "search and replace with
            confirm" function that would search for the next occurrence of
            the find text and then ask "change this one ?" then "next"
            bill

            • HTML-Kit Support, 29th Aug 2012 7:40 pm

              On 8/29/2012 5:57 AM, bill wrote:
              ...

              Chami, it would still be nice to have a "search and replace with
              confirm" function that would search for the next occurrence of the find
              text and then ask "change this one ?" then "next"
              bill

              I agree with you, Bill. There's something in the burner for this, just
              not ready to be served :)

              Chami

              • bill, 30th Aug 2012 5:55 am

                On 8/29/2012 8:40 PM, HTML-Kit Support wrote:

                On 8/29/2012 5:57 AM, bill wrote:
                ...

                Chami, it would still be nice to have a "search and replace with
                confirm" function that would search for the next occurrence of
                the find
                text and then ask "change this one ?" then "next"
                bill

                I agree with you, Bill. There's something in the burner for this,
                just not ready to be served :)

                Chami

                Love those slow cooked foods.

                bill

          • Darren777, 29th Aug 2012 6:57 pm

            "Edit > Bookmarks and Marks > Clear All Bookmarks" does the trick.
            Though Escape doesn't clear bookmarks, Ctrl+Shift+F2 does.

            I meant use escape to clear the mask on searched for words, not bookmarks...

            If I search for echo and its highlighted ten times, how can I clear the highlighting of the word once I have finished doing what I need to do?

            Thanks

            Darren

            • Dave P, 29th Aug 2012 7:42 pm

              On 8/29/2012 7:57 PM, Darren777 wrote:

              "Edit > Bookmarks and Marks > Clear All Bookmarks" does the trick.
              Though Escape doesn't clear bookmarks, Ctrl+Shift+F2 does.

              I meant use escape to clear the mask on searched for words, not bookmarks...

              If I search for echo and its highlighted ten times, how can I clear the highlighting of the word once I have finished doing what I need to do?

              Thanks

              Darren

              I've been using a workaround for this. Open the Find dialog again and
              clear the find criteria field then click "Mark All" and the previously
              found matches will go away.

              I hope that helps, though there probably should be an easier way to
              clear them.

              Dave Pyles

            • HTML-Kit Support, 29th Aug 2012 7:44 pm

              On 8/29/2012 6:57 PM, Darren777 wrote:

              "Edit > Bookmarks and Marks > Clear All Bookmarks" does the trick.
              Though Escape doesn't clear bookmarks, Ctrl+Shift+F2 does.

              I meant use escape to clear the mask on searched for words, not
              bookmarks...

              If I search for echo and its highlighted ten times, how can I clear
              the highlighting of the word once I have finished doing what I need
              to do?

              Thanks

              Darren

              I'm not sure if I'm on the same page... If these are highlights from
              Selection Matching feature (the toggle on the bottom right hand corner),
              then you can use Escape to cancel them. If I'm misunderstanding your
              question, do you have a screenshot that might clarify things for me?

              Chami

              • Darren777, 30th Aug 2012 3:26 am

                I don't think I need to screenshot...(and couldn't find a way to attach something on here)

                Copy the following into a new document:

                curl_setopt($ch, CURLOPT_HEADER, 0);
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set curl to return the data instead of printing it to the browser.
                curl_setopt($ch, CURLOPT_URL, $url);
                curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
                curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

                with that doc open do a search for the word curl and select 'Mark All'

                All entities of the word curl will now be highlighted - how do you get rid of the highlighting is the question.

                Dave Pyles thanks your fix works but a one key solution is really needed for this I think if possible?

                Rgds

                Darren

                • rkluehe, 30th Aug 2012 3:46 am

                  press esc key

                  Rene

                  • Darren777, 30th Aug 2012 5:33 am

                    Rene thanks but:

                    1) please read the question before you answer
                    2) please try what you say before you answer.

                    I already said the escape key does not work and if you had tried it you wouldn't have answered.

                    • rkluehe, 30th Aug 2012 7:12 am

                      hmmm... your curl example...

                      All entities of the word curl will now be highlighted - how do you get rid of the highlighting is the question.

                      you know the answer or you cannot describe your problem.

                      greetings
                      Rene

                    • Dave P, 30th Aug 2012 7:27 am

                      On 8/30/2012 6:33 AM, Darren777 wrote:

                      Rene thanks but:

                      1) please read the question before you answer
                      2) please try what you say before you answer.

                      I already said the escape key does not work and if you had tried it you wouldn't have answered.

                      I agree with Darren, the Esc key does not clear the matches. It clears
                      the "Selection Matching, but not the Find > Mark All matches.

                      Dave Pyles

                      • HTML-Kit Support, 30th Aug 2012 7:38 am

                        On 8/30/2012 7:27 AM, Dave Pyles wrote:

                        On 8/30/2012 6:33 AM, Darren777 wrote:

                        Rene thanks but:

                        1) please read the question before you answer
                        2) please try what you say before you answer.

                        I already said the escape key does not work and if you had tried it
                        you wouldn't have answered.

                        I agree with Darren, the Esc key does not clear the matches. It clears
                        the "Selection Matching, but not the Find > Mark All matches.

                        Dave Pyles

                        I don't think Esc should clear these marks though. In order of temporary
                        to persistent, "Marks" are in the middle:

                        • Selection Matching (cleared by Esc)
                        • Marks (cleared with a shortcut specific to these)
                        • Bookmarks (cleared with a shortcut specific to these)

                        I do agree that there should be a better and more easily discoverable
                        way to clear Marks (and Bookmarks). I'll work on that.

                        Chami

                        • rkluehe, 30th Aug 2012 7:54 am

                          aaah
                          damn crazy thing, it's my colorizer.

                          after switch to the standard colorizer i see the red highlighting to.

                          really funny :)

                          R.

                          • HTML-Kit Support, 30th Aug 2012 8:22 am

                            On 8/30/2012 7:54 AM, rkluehe wrote:

                            aaah
                            damn crazy thing, it's my colorizer.

                            after switch to the standard colorizer i see the red highlighting to.

                            really funny :)

                            R.

                            Ha ha! I knew I should have changed opacity on those colors :)

                            Chami

                    • Charles, 30th Aug 2012 10:41 am

                      On 8/30/2012 6:33 AM, Darren777 wrote:

                      Rene thanks but:

                      1) please read the question before you answer
                      2) please try what you say before you answer.

                      I already said the escape key does not work and if you had tried it you wouldn't have answered.

                      HTML-Kit Tools for Windows 20120815
                      Windows 7 Home Premium Edition Version 6.1 (Build 7600), 64-bit/WOW64
                      IE 9.0.8112.16421, COMCTL32 6.16, SHELL32 6.1.7600.25177, 50727
                      1,117,924 KB out of 4,153,716 KB of physical memory available.
                      .NET Framework 2.0.50727.4971 (r) / v2.0.50727 (clr) / 2.0 SP2, 3.0 SP2,
                      3.5 SP1, 4.0 (i)
                      Monitor: (0, 0, 1366, 768), 32 bpp

                      I've done exactly as you direct. The Esc key does clear all "Match All"
                      highlights. No green arrow bookmarking present before or after.

                      Charles

                      • Charles, 30th Aug 2012 10:44 am

                        On 8/30/2012 11:41 AM, Charles wrote:

                        On 8/30/2012 6:33 AM, Darren777 wrote:

                        Rene thanks but:

                        1) please read the question before you answer
                        2) please try what you say before you answer.

                        I already said the escape key does not work and if you had tried it I
                        you wouldn't have answered.

                        HTML-Kit Tools for Windows 20120815
                        Windows 7 Home Premium Edition Version 6.1 (Build 7600), 64-bit/WOW64
                        IE 9.0.8112.16421, COMCTL32 6.16, SHELL32 6.1.7600.25177, 50727
                        1,117,924 KB out of 4,153,716 KB of physical memory available.
                        .NET Framework 2.0.50727.4971 (r) / v2.0.50727 (clr) / 2.0 SP2, 3.0 SP2,
                        3.5 SP1, 4.0 (i)
                        Monitor: (0, 0, 1366, 768), 32 bpp

                        I've done exactly as you direct. The Esc key does clear all "Match All"
                        highlights. No green arrow bookmarking present before or after.

                        Charles

                        I am using the Copenhagen Nights style.

                        Charles

                        • HTML-Kit Support, 30th Aug 2012 5:28 pm

                          On 8/30/2012 10:44 AM, Charles wrote:

                          On 8/30/2012 11:41 AM, Charles wrote:

                          On 8/30/2012 6:33 AM, Darren777 wrote:

                          Rene thanks but:

                          1) please read the question before you answer
                          2) please try what you say before you answer.

                          I already said the escape key does not work and if you had tried it I
                          you wouldn't have answered.

                          HTML-Kit Tools for Windows 20120815
                          Windows 7 Home Premium Edition Version 6.1 (Build 7600), 64-bit/WOW64
                          IE 9.0.8112.16421, COMCTL32 6.16, SHELL32 6.1.7600.25177, 50727
                          1,117,924 KB out of 4,153,716 KB of physical memory available.
                          .NET Framework 2.0.50727.4971 (r) / v2.0.50727 (clr) / 2.0 SP2, 3.0 SP2,
                          3.5 SP1, 4.0 (i)
                          Monitor: (0, 0, 1366, 768), 32 bpp

                          I've done exactly as you direct. The Esc key does clear all "Match All"
                          highlights. No green arrow bookmarking present before or after.

                          Charles

                          I am using the Copenhagen Nights style.

                          Charles

                          Hi Charles,

                          I didn't make any changes related to this in 20120815 so it's probably
                          the selection matching highlights that are getting cleared.

                          Still thinking about which new key combination to use for clearing
                          marks... actually, might even go with an indicator in the style of
                          "Selection Matching" button on the bottom right hand corner.

                          Chami

                          • bill, 31st Aug 2012 9:37 am

                            On 8/30/2012 6:28 PM, HTML-Kit Support wrote:

                            On 8/30/2012 10:44 AM, Charles wrote:

                            On 8/30/2012 11:41 AM, Charles wrote:

                            On 8/30/2012 6:33 AM, Darren777 wrote:

                            Rene thanks but:

                            1) please read the question before you answer
                            2) please try what you say before you answer.

                            I already said the escape key does not work and if you had
                            tried it I
                            you wouldn't have answered.

                            HTML-Kit Tools for Windows 20120815
                            Windows 7 Home Premium Edition Version 6.1 (Build 7600),
                            64-bit/WOW64
                            IE 9.0.8112.16421, COMCTL32 6.16, SHELL32 6.1.7600.25177, 50727
                            1,117,924 KB out of 4,153,716 KB of physical memory available.
                            .NET Framework 2.0.50727.4971 (r) / v2.0.50727 (clr) / 2.0
                            SP2, 3.0 SP2,
                            3.5 SP1, 4.0 (i)
                            Monitor: (0, 0, 1366, 768), 32 bpp

                            I've done exactly as you direct. The Esc key does clear all
                            "Match All"
                            highlights. No green arrow bookmarking present before or after.

                            Charles

                            I am using the Copenhagen Nights style.

                            Charles

                            Hi Charles,

                            I didn't make any changes related to this in 20120815 so it's
                            probably the selection matching highlights that are getting cleared.

                            Still thinking about which new key combination to use for
                            clearing marks... actually, might even go with an indicator in
                            the style of "Selection Matching" button on the bottom right hand
                            corner.

                            Chami
                            I vote for that - or a checkbox in Find that says - clear all marks.

                            • bill, 31st Aug 2012 10:18 am

                              On 8/31/2012 10:37 AM, bill wrote:

                              On 8/30/2012 6:28 PM, HTML-Kit Support wrote:

                              On 8/30/2012 10:44 AM, Charles wrote:

                              On 8/30/2012 11:41 AM, Charles wrote:

                              On 8/30/2012 6:33 AM, Darren777 wrote:

                              Rene thanks but:

                              1) please read the question before you answer
                              2) please try what you say before you answer.

                              I already said the escape key does not work and if you had
                              tried it I
                              you wouldn't have answered.

                              HTML-Kit Tools for Windows 20120815
                              Windows 7 Home Premium Edition Version 6.1 (Build 7600),
                              64-bit/WOW64
                              IE 9.0.8112.16421, COMCTL32 6.16, SHELL32 6.1.7600.25177, 50727
                              1,117,924 KB out of 4,153,716 KB of physical memory available.
                              .NET Framework 2.0.50727.4971 (r) / v2.0.50727 (clr) / 2.0
                              SP2, 3.0 SP2,
                              3.5 SP1, 4.0 (i)
                              Monitor: (0, 0, 1366, 768), 32 bpp

                              I've done exactly as you direct. The Esc key does clear all
                              "Match All"
                              highlights. No green arrow bookmarking present before or after.

                              Charles

                              I am using the Copenhagen Nights style.

                              Charles

                              Hi Charles,

                              I didn't make any changes related to this in 20120815 so it's
                              probably the selection matching highlights that are getting
                              cleared.

                              Still thinking about which new key combination to use for
                              clearing marks... actually, might even go with an indicator in
                              the style of "Selection Matching" button on the bottom right hand
                              corner.

                              Chami
                              I vote for that - or a checkbox in Find that says - clear all marks.

                              Part of the confusion might be:
                              When you do a Find and accept it, if selection matching is on all
                              instances will be indicated and these highlights can be erased by
                              using the Esc key.

                              The highlights from Mark All look very much the same (in default
                              setup they have a low opacity red background that the selection
                              matching doesn't) but can't be erased by the Esc key.

                              Doesn't bother me - I can see the difference.

                        • Charles, 3rd Sep 2012 4:07 pm

                          On 8/30/2012 11:44 AM, Charles wrote:

                          On 8/30/2012 11:41 AM, Charles wrote:

                          On 8/30/2012 6:33 AM, Darren777 wrote:

                          Rene thanks but:

                          1) please read the question before you answer
                          2) please try what you say before you answer.

                          I already said the escape key does not work and if you had tried it I
                          you wouldn't have answered.

                          HTML-Kit Tools for Windows 20120815
                          Windows 7 Home Premium Edition Version 6.1 (Build 7600), 64-bit/WOW64
                          IE 9.0.8112.16421, COMCTL32 6.16, SHELL32 6.1.7600.25177, 50727
                          1,117,924 KB out of 4,153,716 KB of physical memory available.
                          .NET Framework 2.0.50727.4971 (r) / v2.0.50727 (clr) / 2.0 SP2, 3.0 SP2,
                          3.5 SP1, 4.0 (i)
                          Monitor: (0, 0, 1366, 768), 32 bpp

                          I've done exactly as you direct. The Esc key does clear all "Match All"
                          highlights. No green arrow bookmarking present before or after.

                          Charles

                          I am using the Copenhagen Nights style.

                          Charles

                          I changed the colorizer to the default and I see the pink background
                          indicating the marking. Change back to Copenhagen Nights and it
                          disappears. But --- pressing the Esc key as I did before does nothing.

                          Charles

                • HTML-Kit Support, 30th Aug 2012 7:12 am

                  On 8/30/2012 3:26 AM, Darren777 wrote:

                  I don't think I need to screenshot...(and couldn't find a way to
                  attach something on here)

                  Copy the following into a new document:

                  curl_setopt($ch, CURLOPT_HEADER, 0);
                  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                  //Set curl to return the data instead of printing it to the browser.
                  curl_setopt($ch, CURLOPT_URL, $url);
                  curl_setopt($ch, CURLOPT_USERAGENT,
                  "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
                  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

                  with that doc open do a search for the word curl and select 'Mark
                  All'

                  All entities of the word curl will now be highlighted - how do you
                  get rid of the highlighting is the question.

                  Dave Pyles thanks your fix works but a one key solution is really
                  needed for this I think if possible?

                  Rgds

                  Darren

                  I think "Mark All" is the part we missed. I don't think you mentioned
                  that in previous posts so I was assuming Selection Matching like Rene.

                  You can use "Remove all marks" under "Edit > Bookmarks and marks" to
                  clear these, but you're right... there should be an easier way. Let me
                  work on that.

                  Chami

                  • Darren777, 30th Aug 2012 8:20 am

                    Thanks Chami but the keyboard shortcuts don't work - actually going to the menu does, but not the shortcuts

                    They are exactly what I'm looking for - Ctrl+k & Ctrl+Shift+F2 - Ctrl+k in particular is perfect.

                    Also, I'm not sure about other users but escape key to clear all markers and everything highlighted would be perfect... my workflow is typically that i open a page, work on it, then if i search and change things, pressing escape would essentially reset it so on to next task within that page. Just my 2 cents.

                    Darren

                    • HTML-Kit Support, 30th Aug 2012 8:44 am

                      On 8/30/2012 8:20 AM, Darren777 wrote:

                      Thanks Chami but the keyboard shortcuts don't work - actually going
                      to the menu does, but not the shortcuts

                      They are exactly what I'm looking for - Ctrl+k & Ctrl+Shift+F2 -
                      Ctrl+k in particular is perfect.

                      Please note that this is a two step shortcut. If you press Ctrl+K
                      followed by Ctrl+Shift+F2 it will work.

                      Yes, I know, it's ugly! Another reason to change it. It must have been a
                      temp shortcut since I'm always hesitant to use up easy combinations
                      (scarcity issue).

                      Also, I'm not sure about other users but escape key to clear all
                      markers and everything highlighted would be perfect... my workflow is
                      typically that i open a page, work on it, then if i search and change
                      things, pressing escape would essentially reset it so on to next task
                      within that page. Just my 2 cents.

                      Darren

                      It would be easy to have Esc clear all highlights, but I'm not sure if
                      that would work in all cases. Esc is such a general purpose key that I
                      might hit it by accident or by habit.

                      Selection Matching is temporary and changes as you edit, so using Esc
                      makes sense because even if I hit Esc by accident clearing selection
                      matches wouldn't be a big deal.

                      "Marks" on the other hand have little more weight than selection
                      matching because it takes a little bit more time to create them. There
                      are also other functions that use Marks to highlight pieces of text. I
                      wouldn't want them cleared by accident.

                      I definitely wouldn't want Bookmarks to be cleared with Esc.

                      Keyboard shortcuts make my brain loop! :)

                      Chami

                      • Darren777, 30th Aug 2012 2:25 pm

                        Yeah I hear you - shortcuts are a nightmare.

                        Ctrl+Shift+U doesn't seem to be used for anything (I haven't tried every function so it might be used) and could suggest Un-mark All?

                        Just an idea...

                        Darren

                        • HTML-Kit Support, 30th Aug 2012 5:37 pm

                          On 8/30/2012 2:25 PM, Darren777 wrote:

                          Yeah I hear you - shortcuts are a nightmare.

                          Ctrl+Shift+U doesn't seem to be used for anything (I haven't tried
                          every function so it might be used) and could suggest Un-mark All?

                          Just an idea...

                          Darren

                          I'm actually thinking about a couple of ways to clear marks:

                          1. A drop-down arrow/menu on "Mark All" button (Ctrl+F), with an option
                            to directly clear marks.

                          2. A status indicator, like the one you get for selection matching,
                            which would show up when there's a mark and/or bookmark in the document.
                            You could then click it to clear marks/bookmarks. It could also list
                            lines with marks for quickly jumping to them.

                          Will try to post a TreeHouse build in the next couple of days to try out
                          these.

                          Chami

                          • Darren777, 1st Sep 2012 2:37 am

                            I definitely prefer option 2 - option 1 is about the same as hitting Ctrl+f then clear the search text and hitting mark all - thus marking nothing, but still quite a few clicks.

                            A button/indicator to the left of "Selection Matching" which says "Mark All", which becoesm active on a "Mark All" search and then Un-Marks All when clicked is a great solution if possible. So yes, exactly like the selection matching but for Mark All.

                            Cool!

                            Darren