Komodo Change memory options "new team"

I am using Komodo Edit 5.2.4. I created a custom "new command" that takes some input from the user and runs a program with it. This works great, but I want the default options to appear in the options selected by the user the last time they executed the command.

I can’t figure out how to do this, although I can see that previous entries are recorded in the combobox itself ... any ideas?

+3
source share
1 answer

Use the tooltip to assign parameters to a variable, then run the command using runEncodedCommand

komodo.assertMacroVersion(2);
if (komodo.view && komodo.view.scintilla) { komodo.view.scintilla.focus(); }

function runmemo()
  {
  if (!this.param)
    {
    this.param = window.prompt("What you really want");
    }
ko.run.runEncodedCommand("window", "echo {1: '"+escape(this.param)+"'}");
  }
runmemo();
0
source

Source: https://habr.com/ru/post/1736510/


All Articles