Skip to content

Instantly share code, notes, and snippets.

@spdegabrielle
Last active November 11, 2021 17:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spdegabrielle/a6c1dc432599591bb7808c01ec04cfdb to your computer and use it in GitHub Desktop.
Save spdegabrielle/a6c1dc432599591bb7808c01ec04cfdb to your computer and use it in GitHub Desktop.
insert-☯.rkt
#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