HISE Logo Forum
    • Categories
    • Register
    • Login

    Edit several HISE projects all at once. Meet FAR: a fantastic find and replace tool.

    Scheduled Pinned Locked Moved General Questions
    4 Posts 2 Posters 194 Views
    Loading More Posts
    • 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.
    • gorangroovesG
      gorangrooves
      last edited by gorangrooves

      I found a great and very practical way to change various parameters or pieces of code across several HISE projects.

      Rather than opening each project in HISE, and then tweaking components, you can use a tool called FAR (find and replace) to search for any string in any file within directories and subdirectories, then replace that string with another.

      So, you could just select your main folder that contains all of your HISE projects and replace whatever you need across all projects with a couple of clicks. It is a free tool.

      Link Preview Image
      FAR - Find And Replace

      Search and replace operations on file content accross multiple files within entire directory trees. FAR comes with support for regular expressions over multiple lines, automatic backup and various character encodings. Find And Replace is an open source application. SourceForge provides the world's largest selection of Open Source Software.

      favicon

      (findandreplace.sourceforge.net)

      I updated the matrix of 17 projects from 16-32 channels and all the relevant comboboxes within minutes.

      Goran Rista
      https://gorangrooves.com

      Handy Drums and Handy Grooves
      https://library.gorangrooves.com

      d.healeyD 1 Reply Last reply Reply Quote 2
      • d.healeyD
        d.healey @gorangrooves
        last edited by

        @gorangrooves You can do this in most text editors too. I use Pulsar mostly (was Atom). Sublime, Cuda Text, VSCode, Emacs, LiteXL, can also do this.

        Nice to see a standalone app for it though.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        gorangroovesG 1 Reply Last reply Reply Quote 0
        • gorangroovesG
          gorangrooves @d.healey
          last edited by

          @d-healey But, you can't do with regular text editors what this does. Yes, you can find + replace short strings, but not chunks of code, like 10 lines. Try pasting into the 'find' field anything longer than a single line. It will be truncated and render the function useless for replacing chunks for code.

          FAR can match long sections of code across projects and replace them all at once. Give it a try.

          Goran Rista
          https://gorangrooves.com

          Handy Drums and Handy Grooves
          https://library.gorangrooves.com

          d.healeyD 1 Reply Last reply Reply Quote 1
          • d.healeyD
            d.healey @gorangrooves
            last edited by

            @gorangrooves Aha I didn't realise it can do multiple lines, that's good. It's probably possible in the other editors too, perhaps with addons but I haven't looked. It's rare I would have multiple lines of exactly the same code.

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            20

            Online

            1.7k

            Users

            11.8k

            Topics

            102.5k

            Posts