Skip to content

Commit 837921c

Browse files
committed
remove default scripts to fix #79.
1 parent 8039f06 commit 837921c

File tree

4 files changed

+3
-142
lines changed

4 files changed

+3
-142
lines changed

base.rkt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -174,23 +174,6 @@
174174
help-str2
175175
help-str))
176176

177-
;======================;
178-
;=== Initialization ===;
179-
;======================;
180-
181-
(define-runtime-path qs-package-script-dir "scripts")
182-
183-
;; If user-script-dir does not exist, create it and add some default scripts to it,
184-
;; from the quickscript package's script directory.
185-
(define (ensure-user-script-dir-exists!)
186-
(unless (directory-exists? user-script-dir)
187-
(make-directory* user-script-dir)
188-
(for ([f (in-list (directory-list qs-package-script-dir #:build? #f))]
189-
#:when (path-has-extension? f #".rkt"))
190-
(define target (build-path user-script-dir f))
191-
(unless (file-exists? target)
192-
(copy-file (build-path qs-package-script-dir f) target)))))
193-
194177
;===================;
195178
;=== Compilation ===;
196179
;===================;

scripts/eyes.rkt

Lines changed: 0 additions & 93 deletions
This file was deleted.

scripts/open-terminal.rkt

Lines changed: 0 additions & 27 deletions
This file was deleted.

tool.rkt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ The maximize button of the frame also disappears, as if the X11 maximize propert
8686
(define (property-dict-hook? props)
8787
(not (prop-dict-ref props 'label)))
8888

89-
(define (insert-to-text text str)
89+
(define (text-insert text str)
9090
; Inserts the text, possibly overwriting the selection:
9191
(send text begin-edit-sequence)
9292
(send text insert str)
@@ -264,9 +264,9 @@ The maximize button of the frame also disappears, as if the X11 maximize propert
264264
(create-new-tab)
265265
(define new-defs (get-definitions-text))
266266
(send new-defs select-all) ; get the newly created text
267-
(insert-to-text new-defs script-result)]
267+
(text-insert new-defs script-result)]
268268
[(selection)
269-
(insert-to-text editor script-result)]
269+
(text-insert editor script-result)]
270270
[(message-box)
271271
(when (string? script-result)
272272
(message-box "Output" script-result this))]
@@ -554,8 +554,6 @@ The maximize button of the frame also disappears, as if the X11 maximize propert
554554
(define (phase1) (void))
555555
(define (phase2) (void))
556556

557-
; Make sure the user-script dir exists and if not populate it with default scripts.
558-
(ensure-user-script-dir-exists!)
559557

560558
; Silently recompile for the new version if necessary, at the start up of DrRacket.
561559
; This must be done before building the menus.

0 commit comments

Comments
 (0)