Qi-Quickscripts
1 Installation
2 Scripts
3 Customizing
8.12

Qi-Quickscripts🔗ℹ

Some Quickscript scripts to make it easier to work with Qi in DrRacket.

1 Installation🔗ℹ

In DrRacket, in File|Package manager|Source, enter Qi-Quickscripts.

Or, on the command line, type: raco pkg install Qi-Quickscripts.

If DrRacket is already running, click on Scripts|Manage scripts|Compile scripts.

2 Scripts🔗ℹ

Insert on c:;

Insert on c:u

Insert on c:s:u

Insert on c:=

Insert ~> on c:>

Insert -< on c:<

The notation "c:<key>" used above is a DrRacket convention that indicates pressing Control (Ctrl) together with <key>. On some systems such as Windows, c:; opens the settings dialog by default. In order to avoid this, you may need to uncheck the option Preferences → Editing → General Editing → Enable keybindings in menus. You could also customize this (or any other) keybinding to something else, if you prefer.

3 Customizing🔗ℹ

Scripts can be selectively deactivated from the library (Scripts|Manage scripts|Library).

If you change the source code of a script installed from the Qi-Quickscripts package (or from any package containing quickscripts), you will lose all your modifications when the package is updated. To avoid this, you can use Quickscript’s shadow scripts: The shadow script calls the original script without modifying it, and can be modified to your taste without being modified when the original script is updated.

In particular, if you want to change the default label, menu path or keybinding of a script installed from Qi-Quickscripts, go to Scripts|Manage|Library…, select the Qi-Quickscripts directory, then the script you want, and click on Shadow. This opens a new (shadow) script that calls the original script where you can change what you want.

Note that the shadowed script is deactivated so as to avoid duplicate menu entries and keybindings.