Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator Search and Replace
Forum Updated to NodeBB v4.3 + New Features

Qt Creator Search and Replace

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
21 Posts 5 Posters 3.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Patrick Fromberg
    26 Jan 2020, 05:45

    @JonB , good point. Do you know by any chance where they are stored so I can restore my previous state?

    J Offline
    J Offline
    JonB
    wrote on 26 Jan 2020, 08:43 last edited by JonB
    #12

    @Patrick-Fromberg
    Unfortunately not, because as I said I don't really use QtCreator, and if I do I don't have any plugins! However a quick Google gives, say, https://doc.qt.io/qtcreator/creator-faq.html

    You can disable the Qt Creator plugins, at the expense of losing functionality:

    Launch Qt Creator from command line, with the -noload QmlProfiler -noload QuickDesigner arguments.

    Disable the plugins permanently by selecting Help > About Plugins.

    or https://doc.qt.io/qtcreator/creator-cli.html, ah ha there I see:

    -noload all Disables all plugins.

    ? So you don't have to move them, you can just run up a session without loading any?

    1 Reply Last reply
    2
    • P Offline
      P Offline
      Patrick Fromberg
      wrote on 26 Jan 2020, 09:35 last edited by
      #13

      @JonB , thanks, I did not know qtcreator -noload all -load Core -load CppEditor . Unfortunately it did not solve the problem but it was worth a try.

      But I believe I know a bit more now about the Help problem. "Blocked by extension" probably refers not to a QtCreator extension but to a browser extension hence not really anything to do with QtCreator.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Patrick Fromberg
        wrote on 26 Jan 2020, 09:36 last edited by
        #14

        @aha_1980 , are you using KDE or something else?

        A 1 Reply Last reply 26 Jan 2020, 09:46
        0
        • P Patrick Fromberg
          26 Jan 2020, 09:36

          @aha_1980 , are you using KDE or something else?

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 26 Jan 2020, 09:46 last edited by
          #15

          Hi @Patrick-Fromberg,

          As I wrote, Ubuntu Unity.

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • P Offline
            P Offline
            Patrick Fromberg
            wrote on 28 Jan 2020, 17:16 last edited by
            #16

            Ok, QtCreator passes Ctrl+F3 to KDE for desktop selection while other applications capture that shortcut for themselves (Kate for e.g.). When I disable the shortcut in KDE, then it works in QtCreator

            Regarding Search&Replace with selection scope, it is sadly not supported for Advanced Search. I probably remembered wrongly that it once worked. This is really strange because search and replace in a selection is a really common task.

            A 1 Reply Last reply 28 Jan 2020, 17:52
            0
            • P Patrick Fromberg
              28 Jan 2020, 17:16

              Ok, QtCreator passes Ctrl+F3 to KDE for desktop selection while other applications capture that shortcut for themselves (Kate for e.g.). When I disable the shortcut in KDE, then it works in QtCreator

              Regarding Search&Replace with selection scope, it is sadly not supported for Advanced Search. I probably remembered wrongly that it once worked. This is really strange because search and replace in a selection is a really common task.

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 28 Jan 2020, 17:52 last edited by
              #17

              Hi @Patrick-Fromberg,

              Regarding Search&Replace with selection scope, it is sadly not supported for Advanced Search. I probably remembered wrongly that it once worked. This is really strange because search and replace in a selection is a really common task.

              I'm not sure why you need the advaced find for that if it works with normal search&replace? Symmetry?

              Otherwise, creating a suggestion for that is easy to do ;) - please post a link here if you do so.

              Regards

              Qt has to stay free or it will die.

              P 1 Reply Last reply 31 Jan 2020, 18:19
              0
              • A aha_1980
                28 Jan 2020, 17:52

                Hi @Patrick-Fromberg,

                Regarding Search&Replace with selection scope, it is sadly not supported for Advanced Search. I probably remembered wrongly that it once worked. This is really strange because search and replace in a selection is a really common task.

                I'm not sure why you need the advaced find for that if it works with normal search&replace? Symmetry?

                Otherwise, creating a suggestion for that is easy to do ;) - please post a link here if you do so.

                Regards

                P Offline
                P Offline
                Patrick Fromberg
                wrote on 31 Jan 2020, 18:19 last edited by
                #18

                @aha_1980 No, normal search&replace does not work with regular expressions. But I can actually do search and replace with regex limited to selection scope if I use FakeVim.

                A 1 Reply Last reply 31 Jan 2020, 20:38
                0
                • P Patrick Fromberg
                  31 Jan 2020, 18:19

                  @aha_1980 No, normal search&replace does not work with regular expressions. But I can actually do search and replace with regex limited to selection scope if I use FakeVim.

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 31 Jan 2020, 20:38 last edited by
                  #19

                  @Patrick-Fromberg

                  No, normal search&replace does not work with regular expressions.

                  It does. Hint: the small icon in the left corner of the search text.

                  Regards

                  Qt has to stay free or it will die.

                  P 1 Reply Last reply 3 Feb 2020, 20:47
                  5
                  • A aha_1980
                    31 Jan 2020, 20:38

                    @Patrick-Fromberg

                    No, normal search&replace does not work with regular expressions.

                    It does. Hint: the small icon in the left corner of the search text.

                    Regards

                    P Offline
                    P Offline
                    Patrick Fromberg
                    wrote on 3 Feb 2020, 20:47 last edited by
                    #20

                    @aha_1980 Oh yes indeed. Clicking the mini-magnifier gives me regex. Great!

                    1 Reply Last reply
                    1
                    • osirisgothraO Offline
                      osirisgothraO Offline
                      osirisgothra
                      wrote on 3 Mar 2025, 20:12 last edited by osirisgothra 3 Mar 2025, 20:29
                      #21

                      Important tips:

                      • In-Selection Search and Replace does not work on a partial line - you must have at least one newline selected (The selection overlapping into the next line even if no text is selected).
                      • Regular expressions must be properly escaped if you wish to use the mode to find certain strings be sure to read up on regex, every symbol can be escaped to do normal text matches but you may just want to turn it off temporarily.
                      • This is important for workflows and fast-paced usage: Go into your text editor options and find the search scope highlight colors, set it to something super-obvious. For me I went with black text on yellow background. This way you are never mistaken on just what is going to get replaced. This way, if I don't see the black-on-yellow test I know right off the bat its gonna be a whole-file search. Use your subconscious powers to your advantage :3
                      • Finally, to clarify about regular expressions, they do in fact work (at least now they do) with selection-scoped searches unlike what it used to be. As long as the search scope is showing, the selection will be replaced.
                      • Be sure to set the selected text highligting (not the search scope highlighting, the one that higlights every occurance) to something less distracting or your mind might confuse it with 'search highlight'. I see a lot of themes/styles can cause this, so be careful about that.
                        To review: 1) selection scope is based on the highlight, be sure to set it up (many themes set this to a not-so-useful setting, so check it) 2) use highlights to guide you and you'll soon be able to make decisions about searches without thinking based on why you see

                      I'm truly glad you r/offmychess t finally, but please don't go too far, because you r/beyondvoxels and that implies that u r/donewithlife. Oh well time to git back to the lab, because azure sea here, I have a lot of work to do...

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved