{"id":9809,"date":"2026-11-19T12:30:41","date_gmt":"2026-11-19T12:30:41","guid":{"rendered":"https:\/\/www.dyalog.com\/blog\/?p=9809"},"modified":"2026-11-19T12:30:41","modified_gmt":"2026-11-19T12:30:41","slug":"making-the-ide-my-own-part-3-only-windows","status":"publish","type":"post","link":"https:\/\/www.dyalog.com\/blog\/2026\/11\/making-the-ide-my-own-part-3-only-windows\/","title":{"rendered":"Making the IDE My Own \u2013 Part 3 (Only Windows)"},"content":{"rendered":"<p>In <a href=\"https:\/\/www.dyalog.com\/blog\/2026\/06\/making-the-ide-my-own-part-1\/\" target=\"_blank\" rel=\"noopener\">Part 1<\/a>, I built the machinery that runs a folder of small functions at startup, and in <a href=\"https:\/\/www.dyalog.com\/blog\/2026\/09\/making-the-ide-my-own-part-2-mostly-windows\/\" target=\"_blank\" rel=\"noopener\">Part 2<\/a> I used that machinery to tune the Microsoft Windows IDE&#8217;s font, zoom, and keyboard shortcuts. Two extensions remain, and both are about information flowing in and out of the Session at a glance: one makes the title bar tell me exactly what I&#8217;m working with, and the other lets me drop things straight onto the Session.<\/p>\n<h2 id=\"what-am-i-dealing-with\">What Am I Dealing With?<\/h2>\n<p><a href=\"https:\/\/www.dyalog.com\/blog\/2026\/06\/making-the-ide-my-own-part-1\/#a-name-and-a-home\" target=\"_blank\" rel=\"noopener\">As mentioned in Part 1<\/a>, the Session titlebar includes <code>\u2395WSID<\/code> by default, but <code>setCaption<\/code> solves another problem of situational awareness. I test various versions of many things, in particular, Link (I\u2019m one of its main developers) and .NET (which Link uses to keep an eye on the file system). To distinguish my active interpreters, which often use disparate versions of Link and\/or .NET, <code>setCaption<\/code> adds their version information to the Session titlebar while also abbreviating the interpreter characteristics:<\/p>\n<pre class=\"apl\"><code>\u2207 setCaption\n \u235d Set Session caption to include Link and .NET versions\n  \u2395SE.Caption\u2190'{WSID} {NSID} - ',8\u2193\u00af1\u2193,(\n      '(\\d+\\.\\d+)[.\\d]+'\n      ' (\\d*)(-bit)? (.)(nicode|lassic), BuildID \\w+'\n      '\\.NET +\\.NET( Framework)?'\n      '  *'\n  )\u2395R(\n      '\\1'\n      '\\3\\1'\n      '.NET'\n      ' '\n  ),1 3 6\u2282\u235b\u2337\u2395SE.UCMD'TOOLS.Version'\n\u2207<\/code><\/pre>\n<p><code>{WSID}<\/code> and <code>{NSID}<\/code> are caption template fields that Dyalog keeps current in real-time, namely <code>\u2395WSID<\/code> (which <code>autoLink<\/code> sets to a fresh, timestamped working directory, <a href=\"https:\/\/www.dyalog.com\/blog\/2026\/06\/making-the-ide-my-own-part-1\/#a-name-and-a-home\" target=\"_blank\" rel=\"noopener\">as explained in Part 1<\/a>) and <a href=\"https:\/\/docs.dyalog.com\/20.0\/language-reference-guide\/system-functions\/this\/\" target=\"_blank\" rel=\"noopener\"><code>\u2395THIS<\/code> (the current namespace)<\/a>. After the dash comes the compact version string. I run <code>]TOOLS.Version<\/code>, then <code>1 3 6\u2282\u235b\u2337<\/code> plucks lines 1 (interpreter), 3 (Link), and 6 (.NET) out of the report.<\/p>\n<p>An aside on <code>\u2282\u235b\u2337<\/code>: I usually want to select individual elements (major cells) rather than index along multiple axes. <a href=\"https:\/\/dyalog.tv\/Dyalog22\/?v=itGiA56NSl8\" target=\"_blank\" rel=\"noopener\">I\u2019ve suggested adding this as a <em>select<\/em> primitive<\/a> using the glyph <code>\u2287<\/code>; until that is implemented, to achieve this, the left argument of <code>\u2337<\/code> needs to be enclosed. I have, therefore, learnt to read <code>\u2282\u235b\u2337<\/code> as a single unit: <em>select<\/em>.<\/p>\n<p>A small collection of regular expressions in one <code>\u2395R<\/code> then tidies the three lines \u2013 it strips the build ids, abbreviates \u201cUnicode\u201d\/\u201cClassic\u201d to a single letter followed by the bits, squeezes runs of spaces, and collapses \u201c.NET Framework\u201d to \u201c.NET\u201d (\u201cFramework\u201d is implied if the version is 4.x):<\/p>\n<div id=\"attachment_9562\" style=\"width: 1608px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/06\/titlebar.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9562\" class=\"size-full wp-image-9562\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/06\/titlebar.png\" alt=\"Screenshot of Ad\u00e1m's Session showing lots of information in the titlebar.\" width=\"1598\" height=\"340\" srcset=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/06\/titlebar.png 1598w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/06\/titlebar-300x64.png 300w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/06\/titlebar-768x163.png 768w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/06\/titlebar-1024x218.png 1024w, https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/06\/titlebar-500x106.png 500w\" sizes=\"auto, (max-width: 1598px) 100vw, 1598px\" \/><\/a><p id=\"caption-attachment-9562\" class=\"wp-caption-text\">My Session with lots of information in the title bar. Click to enlarge.<\/p><\/div>\n<h2 id=\"drag-drop-done\">Drag, Drop, Done<\/h2>\n<p>I often want to import a function, some data, or even an entire source folder into the workspace. However, I was frustrated by the many ways in which this can be done:<\/p>\n<ul>\n<li><code>\u2395FIX<\/code> can read function\/operator\/object source files<\/li>\n<li><code>\u2395CSV<\/code> can read CSV (Comma-Separated Values) files, but needs variant options set for TSV (Tab-Separated Values), and so on<\/li>\n<li><code>\u2395JSON<\/code> can parse JSON (and with a variant option, <code>JSON5<\/code>), but cannot read files, so I have to first use <code>\u2395NGET<\/code><\/li>\n<li><code>\u2395XML<\/code> can parse XML, but also needs <code>\u2395NGET<\/code><\/li>\n<li><code>\u2395SE.Dyalog.Array.Deserialise<\/code> which handles array notation, as above<\/li>\n<li>Link does source folders<\/li>\n<\/ul>\n<p>In general, how a file should be imported is clear from its file extension (for example, <strong>.aplf<\/strong>, <strong>.csv<\/strong>, <strong>.tsv<\/strong>, <strong>.json<\/strong>, <strong>.json5<\/strong>, <strong>.xml<\/strong>, <strong>.apla<\/strong>), unless it is a folder. So, I wrote down all the file types I could think of with how I\u2019d get their contents into Dyalog. That became the experimental <code>]Get<\/code> user command, which I gave the slogan <em>get pretty much anything from pretty much anywhere<\/em>. Watch <a href=\"https:\/\/www.youtube.com\/watch?v=AGWnBw7VBzg\" target=\"_blank\" rel=\"noopener\">Rich Park\u2019s webinar<\/a> for an explanation of what it can do, or enter <code>]Get -??<\/code> in the Session for its documentation.<\/p>\n<p><code>extStatusBar<\/code> makes the status bar a drop target:<\/p>\n<pre class=\"apl\"><code>\u2207 extStatusBar\n \u235d Extend Status bar to allow dropping files and folders\n  \u2395SE.cbbot.bandsb1.sb.(AcceptFiles onDropFiles)\u21901 'Get'\n\u2207<\/code><\/pre>\n<p><code>AcceptFiles\u21901<\/code> opts the status bar in, and <code>onDropFiles\u2190'Get'<\/code> says which function to run when something lands on it:<\/p>\n<pre class=\"apl\"><code>\u2207 {msg}\u2190Get(object event files item shift)\n  :If 9\u226040 \u2395ATX'get'\n      {}\u2395SE.UCMD'Get ]get'\n  :EndIf\n  \u2395\u2190msg\u2190# get.Get files,shift\n\u2207<\/code><\/pre>\n<p>The function header decomposes the event message, although we only need two of the elements:<\/p>\n<dl>\n<dt><code>files<\/code><\/dt>\n<dd>The list of dropped files and folders.<\/dd>\n<dt><code>shift<\/code><\/dt>\n<dd>The <em>shifting state<\/em> of the keyboard at the moment of the drop, encoded as a sum of <code>1<\/code> for <kbd>Shift<\/kbd>, <code>2<\/code> for <kbd>Ctrl<\/kbd>, and <code>4<\/code> for <kbd>Alt<\/kbd> (so <code>3<\/code> is <kbd>Ctrl<\/kbd>+<kbd>Shift<\/kbd>, and so on).<\/dd>\n<\/dl>\n<p>The first time the handler runs, the <code>get<\/code> namespace it relies on won\u2019t be present \u2013 <code>40 \u2395ATX'get'<\/code> won\u2019t report <code>9<\/code> for \u201cnamespace\u201d \u2013 so I fetch it by running the <code>]Get<\/code> user command on itself! Thereafter, <code>get.Get<\/code> brings the dropped files into the workspace root (<code>#<\/code>). Fortunately, <code>get.Get<\/code> already used an encoded parameter, so I didn\u2019t need to map the shifting state, just pass it on:<\/p>\n<ul>\n<li>Holding <kbd>Shift<\/kbd> is equivalent to <code>]Get -sync<\/code>: for example, a <code>Link.Create<\/code> rather than a plain <code>Link.Import<\/code>, which means that edits in the workspace are written back to disk (and vice versa where possible).<\/li>\n<li>Holding <kbd>Ctrl<\/kbd> is <code>]Get -unpack<\/code>: the contents are put directly into <code>#<\/code>, instead of into a namespace named after the dropped file or folder.<\/li>\n<li><kbd>Alt<\/kbd> does nothing yet, but I\u2019m thinking of making it ask you how to import: <code>]Get<\/code> allows a filename (or URL) to be followed by a colon and a file extension that overrides the existing extension. For example, <code>]Get data.csv:txt<\/code> will import a CSV file as text rather than as a matrix. Let me know in a comment if you have a better idea!<\/li>\n<\/ul>\n<p>With this, I can drop files, folders, and even zip files of data or code on the status bar, and everything simply appears in the workspace. Magical!<\/p>\n<div id=\"attachment_9647\" style=\"width: 1654px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/09\/drag-and-drop.gif\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-9647\" class=\"size-full wp-image-9647\" src=\"https:\/\/www.dyalog.com\/blog\/wp-content\/uploads\/2026\/09\/drag-and-drop.gif\" alt=\"Screen recording showing drag-and-drop in action\" width=\"1644\" height=\"912\" \/><\/a><p id=\"caption-attachment-9647\" class=\"wp-caption-text\">Drag-and-drop of a data file, two code files, and a folder of code files.<\/p><\/div>\n<h2 id=\"keep-it-up\">Keep It Up!<\/h2>\n<p>That rounds out the series. In <a href=\"https:\/\/www.dyalog.com\/blog\/2026\/06\/making-the-ide-my-own-part-1\/\" target=\"_blank\" rel=\"noopener\">Part 1<\/a> I laid down the startup machinery, in <a href=\"https:\/\/www.dyalog.com\/blog\/2026\/09\/making-the-ide-my-own-part-2-mostly-windows\/\" target=\"_blank\" rel=\"noopener\">Part 2<\/a> I tuned the font, zoom, and keys, and here I\u2019ve made the title bar informative and the status bar a drop target.<\/p>\n<p>In my next, and final, entry in this series, I\u2019ll show you how to simplify some of this code using the new features of the <a href=\"https:\/\/docs.dyalog.com\/21.0\/release-notes\/new-enhanced\/\" target=\"_blank\" rel=\"noopener\">recently released Dyalog v21.0<\/a>. In the meantime, the easiest way to install everything is to paste all the function definitions from this series into a clear workspace and enter (with <a href=\"https:\/\/www.dyalog.com\/blog\/2026\/06\/making-the-ide-my-own-part-1\/#the-startupsession-folder\" target=\"_blank\" rel=\"noopener\">the directory that\u2019s appropriate for you<\/a>):<\/p>\n<pre><code>]LINK.Export # C:\\Users\\adam\\Documents\\Dyalog APL-64 20.0 Unicode Files\\StartupSession\\seext<\/code><\/pre>\n<p>Adding the next idea is a matter of writing a lowercase niladic function and dropping it in the folder (maybe together with some uppercase utilities for the functionality). And there is always a next idea; while writing these posts, I started thinking that I\u2019d quite like to add a toolbar button that toggles <code>]Rows on<\/code> and <code>off<\/code>&#8230;<\/p>\n<p>Please comment if this was useful, and let me know if you have an idea for additional Session extensions!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Part 1, I built the machinery that runs a folder of small functions at startup, and in Part 2 I used that machinery to tune the Microsoft Windows IDE&#8217;s font, zoom, and keyboard shortcuts. Two extensions remain, and both &hellip; <a href=\"https:\/\/www.dyalog.com\/blog\/2026\/11\/making-the-ide-my-own-part-3-only-windows\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,15],"tags":[],"class_list":["post-9809","post","type-post","status-publish","format-standard","hentry","category-tips-tricks","category-windows"],"_links":{"self":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/9809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/comments?post=9809"}],"version-history":[{"count":9,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/9809\/revisions"}],"predecessor-version":[{"id":9887,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/posts\/9809\/revisions\/9887"}],"wp:attachment":[{"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/media?parent=9809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/categories?post=9809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dyalog.com\/blog\/wp-json\/wp\/v2\/tags?post=9809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}