Skip to content

Instantly share code, notes, and snippets.

@Metaxal
Last active March 22, 2021 14:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Metaxal/10392f64b3860599f4a4643ea3a6978d to your computer and use it in GitHub Desktop.
Save Metaxal/10392f64b3860599f4a4643ea3a6978d to your computer and use it in GitHub Desktop.
A quickscript to change the selection to upcase
#lang racket/base
(require quickscript)
;; Returns a replacement string for the selected string `selection`
;; ("" if no text is selected), or `#f` to leave the selection as is.
(define-script upcase
#:label "upcase"
(λ (selection)
(string-upcase selection)))
;; This is a really cool script! Oh folly…
(module url2script-info racket/base
(provide filename url)
(define filename "upcase.rkt")
(define url "https://gist.github.com/Metaxal/10392f64b3860599f4a4643ea3a6978d/raw"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment