Menu

#349 Search and Replace function

Quesnay
closed
nobody
Kingston (15)
2critical
2017-09-08
2013-09-12
Steve Keen
No

It would be useful to be able to replace instances of one entity name with another on occasions. For example, in my loanable funds model I have debt being recorded in DebtPtoI. I want to change that in a few keystrokes to an endogenous money model, in which debt is debt to the bank and is called Loans. At present I have to look around the canvas for instances of DebtPtoI, delete them, put in Loans instead, and wire it up.

This should not be a global replacement but a "one at a time" (or as is usual, have the option of "replace this instance?" and "replace all?" in the replace box).

There should also be a "find definition" option to locate where a variable is defined, since the models are going to get a lot more complicated as time goes on.

Discussion

  • High Performance Coder

    • Milestone: Mun --> Quesnay
     
  • Steve Keen

    Steve Keen - 2015-09-06
    • priority: 3 --> 2
     
  • High Performance Coder

    • priority: 2 --> 2critical
     
  • High Performance Coder

    • Milestone: Cantillon --> Quesnay
     
  • Steve Keen

    Steve Keen - 2016-06-06
    • labels: --> Kingston
     
  • High Performance Coder

    • status: open --> closed
     
  • High Performance Coder

    I've implemented a "select all instances" and "rename all instances" operation. The reason I didn't go for the query-replace option is not just the complexity of what is required, it also needs indicating on the canvas which variable is the current focus. I think it is just as useful to (say) rename all instance, then do select all instances and decide by inspection which ones require replacing.

     

Anonymous
Anonymous

Add attachments
Cancel