Dyalog / ride

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

New help commands #648

Closed abrudz closed 3 years ago

abrudz commented 3 years ago

Describe the issue you are having

RIDE is missing a lot of the dynamic Help menu commands that the IDE's Help menu sports. Also note the changes from http to https.

The below changes should do the trick (command codes and names are only suggestions):

/src/hlp.js#L11

    const h = {
      DOX: `https://www.dyalog.com/documentation_${v3}${q}`,
      INDEX: `${helpUri}index${q}`,
      WELCOME: `${p}MiscPages/HelpWelcome${q}`,
      UCMDS: `${p}UserGuide/The APL Environment/User Commands${q}`,
      LANGELEMENTS: `${p}Language/Introduction/Language Elements${q}`,
      MAILTO: `mailto:support@dyalog.com?subject=Dyalog Support Query&body=re: Version: ${version}`,  // best if more version info can be added here
      ENHANCEMENTS: `${helpUri}index.htm#RelNotes${v}/Key Features${q}`,
      README: `https://docs.dyalog.com/${v}/dyalog_readme${q}`,
      THIRDPARTY: `${p}MiscPages/Licences Overview${q}`,
    };

/src/km.js#L56

    DHI() {
      D.openExternal(D.hlp.INDEX);
    },
    LEL() {
      D.openExternal(D.hlp.ENHANCEMENTS);
    },
    EMD() {
      D.openExternal(D.hlp.MAILTO);
    },
    ENH() {
      D.openExternal(D.hlp.ENHANCEMENTS);
    },
    RME() {
      D.openExternal(D.hlp.README);
    },
    TPL() {
      D.openExternal(D.hlp.THIRDPARTY);
    },
    DOX() {
      D.openExternal(D.hlp.DOX);
    },

/src/prf.js#L115

    + '\n&Help'
    + '\n  Getting &Started         =https://dyalog.com/introduction.htm'
    + '\n  -'
    + '\n  Dyalog &Help             =DHI'
    + '\n  &Language Elements       =LEL'
    + '\n  &Documentation Centre    =DOX'
    + '\n  -'
    + '\n  Dyalog &Website          =https://dyalog.com/'
    + '\n  &Email Dyalog            =EMD'
    + '\n  -'
    + '\n  Latest &Enhancements     =ENH'
    + '\n  Read &Me                 =RME'
    + '\n  &Third Party Licences    =TPL'
    + '\n  &About                   =ABT {!mac}'

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

IDE:
  Version: 4.4.3474
  Platform: Win32
  Date: 2021-01-29 17:14:19 +0100
  Git commit: 9105fc792fb7f507a9b66f0265cd436d2b63565f
  Preferences:{
    "selectedExe":"C:\\Program Files\\Dyalog\\Dyalog APL-64 18.0 Unicode\\dyalog.exe",
    "kbdLocale":"en_GB"
  }

Interpreter:
  Version: 18.0.39556
  Platform: Windows-64
  Edition: Unicode/64
  Date: Nov 16 2020 at 20:00:44
e9gille commented 3 years ago

Fixed by #650