Last active
November 11, 2021 17:06
-
-
Save spdegabrielle/a6c1dc432599591bb7808c01ec04cfdb to your computer and use it in GitHub Desktop.
insert-☯.rkt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang racket/base | |
(require quickscript) | |
(script-help-string "A collection of keyboard shortcuts to support the Qi language.") | |
;; ☯ | |
(define-script insert-☯ | |
#:label "☯" | |
#:help-string "Insert ☯ on c:;" | |
#:menu-path ("Insert") | |
#:shortcut #\; | |
#:shortcut-prefix (ctl) | |
#:output-to selection | |
(λ (selection) | |
"☯")) | |
;; △ and ▽ | |
(define-script insert-△ | |
#:label "△" | |
#:help-string "Insert △ on c:s:m" | |
#:menu-path ("Insert") | |
#:shortcut #\m | |
#:shortcut-prefix (ctl shift) | |
#:output-to selection | |
(λ (selection) | |
"△")) | |
(define-script insert-▽ | |
#:label "▽" | |
#:help-string "Insert ▽ on c:s:v" | |
#:menu-path ("Insert") | |
#:shortcut #\v | |
#:shortcut-prefix (ctl shift) | |
#:output-to selection | |
(λ (selection) | |
"▽")) | |
;; C-= for ⏚ | |
(define-script insert-⏚ | |
#:label "⏚" | |
#:help-string "Insert ⏚ on c:=" | |
#:menu-path ("Insert") | |
#:shortcut #\= | |
#:shortcut-prefix (ctl) | |
#:output-to selection | |
(λ (selection) | |
"⏚")) | |
;; ~> and -< | |
(define-script insert-~> | |
#:label "~>" | |
#:help-string "Insert ~> on c:>" | |
#:menu-path ("Insert") | |
#:shortcut #\> | |
#:shortcut-prefix (ctl) | |
#:output-to selection | |
(λ (selection) | |
"~>")) | |
(define-script insert--< | |
#:label "-<" | |
#:help-string "Insert -< on c:<" | |
#:menu-path ("Insert") | |
#:shortcut #\< | |
#:shortcut-prefix (ctl) | |
#:output-to selection | |
(λ (selection) | |
"-<")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment