-
-
Notifications
You must be signed in to change notification settings - Fork 689
Quickscript Scripts for DrRacket
A collection of scripts for DrRacket's Quickscript.
Scripts can be install either by installing a package, or fetched from a url with url2script for single-file scripts, or merely copy/pasted in a new script.
Below is a list of packages that contain multiple scripts. You can install them with raco pkg install or from File|Install package… in DrRacket. You can disable the scripts you don't want from the Script Library. You can also configure them with shadow scripts.
- quickscript-extra: package with many scripts
- Quickscript Competition 2020: package with many scripts
- Dexter's quickscripts: a personal collection
To install the following scripts, you have 2 options:
- In DrRacket, do Scripts | Manage | New script…, type a name for the script and save. This creates a new quickscript with a default template. Replace the template with the code of the script below. Reload the menu.
- Install the
quickscript-extrapackage (see above) to obtainurl2script. Then, to install any of the scripts below, just copy the url of the script (right-click on the link), then click in DrRacket onScripts|url2script|Fetch script…and paste in the url.
-
classify-position (for debugging purposes)
-
string2unicode (needs the
text-blockandsearch-list-boxpackages) -
transform-s-exp (example to customize)
-
command-palette (needs the
search-list-boxpackage) -
Insert: Insert characters for Qi: A Functional, Flow-Oriented DSL
-
CommonMark render: Render your README.md from DrRacket into the browser (requires
commonmark) -
select-send-sexpr: Select the current s-expression or send it to the interactions window
-
Open recent: Open one or several recently opened files (requires
search-list-box) -
fmt: Reformat (and not just reindent). Requires fmt (
raco pkg install fmt) -
Rectangle selection: Select text in DrRacket as a rectangle. Useful to copy/delete some columns of a table for example (explanatory pictures)
-
Remove trailing spaces on save. Requires Racket 8.10.3 (quickscript hooks).
-
Newline, keep comments Press Ctrl-Enter to move code to the right of the cursor but not line comments to the next line
-
Just one space - Emulation of Emacs' just-one-space command
-
Exports - See and navigate exports of the module name under the cursor (e.g., in a
requireline) -
[add yours here] …
Below is a list of scripts that can't be installed with url2script. So you'll have to do the copy/pasting work yourself.
- Plot Selection (in progress)
- [add yours here] …
