Dyalog / ride

Cross-platform IDE for Dyalog APL
https://dyalog.github.io/ride
MIT License
202 stars 31 forks source link

RFE: WIBNI RIDE had a parameter which could be set in the environment and then became part of caption bar text #554

Closed dyavc closed 1 year ago

dyavc commented 4 years ago

Describe the issue you are having

RFE: WIBNI RIDE had a parameter which could be set in the environment and then became part of caption bar text

e.g.

export MYTEXT=hello world

and a {MYTEXT} that could go into the RIDE caption bar in the Edit|Preferences|Title field.

Did you connect to an already running interpreter or start the interpreter from RIDE?

N/A

How do you reproduce the issue?

N/A

Paste the contents of Help → About (Shift+F1)

IDE:
  Version: 4.2.3437
  Platform: Win32
  Date: 2019-08-13 14:55:17 +0200
  Git commit: 691f47856e05a36f70847313b23e061a0cf95392
  Preferences:{
    "connectFav":"3",
    "floatOnTop":"1",
    "floating":"1",
    "indent":"2",
    "indentComments":"1",
    "indentMethods":"2",
    "kbdLocale":"en_GB",
    "keys":"{\"MA\":[\"Ctrl-Alt-R\"]}",
    "matchBrackets":"0",
    "pfkeys":"[\"\",\"\",\"\",\":access Public <ER>\",\":access Public <ER>\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"]",
    "prefixMaps":"{\"en_GB\":\"S[D]\"}",
    "selectedExe":"C:\\Program Files\\Dyalog\\Dyalog APL-64 17.1 Unicode\\dyalog.exe",
    "title":"{WSID}  {VER} PID: {PID} under RIDE {RIDE_VER}",
    "wse":"1"
  }

Interpreter:
  Version: 17.1.36847
  Platform: Windows-64
  Edition: Unicode/64
  Date: Aug 15 2019 at 09:04:32
abrudz commented 1 year ago

Dyalog version 19.0 allows ⎕SE.Caption←'some text' and RIDE reflects this in its window title.

If you want to get the text from an envvar, you can read it at APL startup time and assign to ⎕SE.Caption