Dyalog / ride

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

AC (Align Comments) is broken #745

Open aplteam opened 3 years ago

aplteam commented 3 years ago

Describe the issue you are having

In the ODE the AC command (align comments) affects only lines that also carry code. In other words, lines that consists of nothing but comments are left alone, and that's what one usually wants.

The ODE does allow aligning pure comment lines by selecting them before issuing AC, but his is AFAIC less important though nice to have.

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

IDE:
  Version: 4.4.3537
  Platform: Win32
  Date: 2021-06-22 15:56:53 +0100
  Git commit: 87b8ce6c167ca8851ea247a93f4e0c4dc6c04bdb
  Preferences:{
    "autoCloseBrackets":"0",
    "autoPW":"1",
    "autocompletionDelay":"150",
    "classicMode":"1",
    "colourScheme":"Kai",
    "colourSchemes":"[{\"name\":\"Kai\",\"theme\":\"dark\",\"styles\":\"asgn=fg:#00ff00 com=fg:b cur=bc:f00,fg:#ffffff dfn2=fg:#00ff00 dfn3=fg:#00ff00 dfn4=fg:#00ff00 dfn5=fg:#00ff00 dfn=fg:a7b diam=fg:#ffff00 err=fg:#ff3e3e,bg:822,bgo:0.5 fn=fg:0f0 idm=fg:#00ffff glb=B,fg:#ffffff kw=fg:#00ff00 lbl=bg:#000000,bgo:0.5 lnum=fg:b94,bg:010,bgo:0 mod=bg:7,bgo:0.5 mtch=fg:0,bg:ff8,bgo:0.75 norm=fg:#00ff00,bg:0,bgo:1 num=fg:#00ff00 op1=fg:#00ff00 op2=fg:#00ff00 sel=bg:#ffffff,bgo:0.5 semi=fg:#00ff00 sqbr=fg:8 srch=bg:b96,bgo:0.75,fg:0 str=fg:dae tc=bg:1,bgo:1 tcpe=bg:2,bgo:1 zld=fg:#00ff00,B scmd=fg:0ff ucmd=fg:f80,B vtip=bg:733,fg:ff0,bgo:1,bc:900 vtt=bc:f80 ca=bg:828282,bgo:1,fg:0f0 cm=bg:0,bgo:1,fg:0f0 cv=bg:f,bgo:1,fg:0 cvv=bg:0,bgo:1,fg:0ff ma=bg:828282,bgo:1,fg:0ff na=bg:828282,bgo:1,fg:f qor=bg:f00,bgo:1,fg:f dfn1=fg:#00ff00 acsl=bg:#ffff00 cubr=bgo:1 qdl=fg:#ffffff\"}]",
    "connectFav":"3",
    "editWins":"{\"width\":1502,\"height\":1174,\"x\":2192,\"y\":103,\"ox\":0,\"oy\":0}",
    "editWinsRememberPos":"1",
    "floating":"1",
    "ime":"0",
    "kbdLocale":"en_GB",
    "keys":"{\"DK\":[\"Ctrl-Delete\"],\"FX\":[\"Ctrl-S\"],\"JSC\":[\"Ctrl-Shift-I\"],\"LOG\":[\"Ctrl-Shift-L\"],\"MA\":[\"F6\"],\"NX\":[\"F3\"],\"RD\":[\"Ctrl-F8\"],\"RP\":[\"Ctrl-R\"],\"SI\":[\"Ctrl-Shift-PauseBreak\"],\"TL\":[\"Ctrl-L\"],\"ZMI\":[\"Ctrl-NumPad_Add\"],\"ZMO\":[\"Ctrl-NumPad_Subtract\"],\"ZMR\":[\"Ctrl-NumPad0\"],\"PF3\":[],\"PF6\":[],\"PF12\":[\"F12\"],\"PF30\":[],\"PF32\":[],\"PF36\":[\"Ctrl-F12\"]}",
    "minimapEnabled":"1",
    "minimapShowSlider":"always",
    "pauseOnError":"1",
    "persistentHistorySize":"800",
    "pfkeys":"[\"\",\"\",\"<FT>\",\"<NX>\",\"⎕SE.aplteam.Display \",\"<AO>→⎕LC+1 <ER>\",\"<AO>→⎕LC ⍝<ER>\",\"⍎⎕SE.aplteam.GotoQLC_AndSetStopVector'<ER>\",\"⍎⎕SE.aplteam.GotoQLC_AndDropStop'<ER>\",\"<BH>\",\"⎕THIS<ER>\",\"\",\"<AO><ER>\",\"\",\"\",\"\",\"<DO>\",\"<AO>\",\"\",\"\",\"<LBR>\",\")Reset<ER>\",\"\",\"⎕DMX.(⍪{⍵(⍎⍵)}¨⎕NL-2) ⍝<ER>\",\"]OpenMyAcreProject <ER>\",\"⎕SE.aplteam.StartTotalCommanderOnCurrentDir<ER>\",\"<TT>\",\"<PV>\",\"<GL>\",\"<AC>\",\"\",\"<BP>\",\"<RD>\",\"<PL>\",\" ⍝TODO⍝\",\"⎕SE.aplteam.RemoveAllStopVectors<ER>\",\"<LOG>\",\"⎕SE.aplteam.snippets.∆List<ER>\",\"⎕SE.FilesAndDirs.PolishCurrentDir <ER>\",\"]ListObjects  <ER>\",\"]Fire<ER>\",\"⎕se.SALTUtils.EditorFix''Start'' ⍝ Establish SALT fix handler\",\"⎕SE.aplteam.CreateAplcore<ER>\",\"]Latest 10 \",\"⎕se.aplteam.FKeys.ShowFunctionKeysInBrowser ⍬ <ER>\",\"⎕SE.aplteam.snippets.∆List<ER>\",\"{{⍵}(#.⎕NS'').(⎕ED⍠('ReadOnly' 1)&{'ed'}ed←⍵)} \",\"]acre.  \",\")CLEAR \"]",
    "renderLineHighlight":"line",
    "selectedExe":"C:\\Program Files\\Dyalog\\Dyalog APL-64 18.0 Unicode\\dyalog.exe",
    "selectionHighlight":"1",
    "singleTrace":"1",
    "title":"{PID} {WSID} - {VER}-{BITS}; (Ride {RIDE_VER}) - {HOST}:{PORT}",
    "valueTips":"0",
    "zoom":"3"
  }

Interpreter:
  Version: unknown
  Platform: unknown
  Edition: unknown
  Date: unknown
abrudz commented 2 years ago

For example, define: ⎕FX' foo' (⎕ucs 9053 32 9484) (,'⍝') ' s ⍝ savsad' (' vdsa ⍝ ',(⎕ucs 9496))

)ed foo

 foo
⍝ ┌
⍝ 
     s   ⍝  savsad
 vdsa    ⍝   ┘

Drag mouse from ┌ to ┘ and hit AC. Observe doubled ⍝ on first line. Hit AC repeatedly for mangled code.4