Add default quickscripts
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Xem xét API quickscript và tích hợp trình cài đặt DrRacket được mô tả trong issue. Xác minh các script mặc định được đề xuất trên Unix, macOS và Windows; hoàn thành nghĩa là cả hai script đều xuất hiện trong menu Scripts, mở một terminal trong thư mục hiện tại khi được hỗ trợ và mở trang wiki Quickscript.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
One of the features of DrRacket I am enthusiastic about is the Scripts capability.
I think it is fair to say that developers often find value in customising their tools to meet their needs.
The scripts functionality is a safe and beginner friendly way for new developers to do this without the risk of making change that negatively impacts their experience.
The list should be short - I would suggest the following would be sufficient
- Open terminal - opens the terminal in the current folder
- Get more scripts - only the script that opens the wiki page with more scripts to review and install.
The impact on the Racket installer would be minimal:
#lang racket/base
(require racket/system
racket/path
quickscript)
(script-help-string "Open a terminal in the directory of the current file.")
(define-script open-terminal
#:label "Open terminal here"
#:menu-path ("&Utils")
#:os-types (unix macosx windows)
(λ (str #:file f)
(unless f
(set! f (current-directory)))
(define dir (path->string (path-only f)))
(case (system-type 'os)
[(unix)
(system (string-append "gnome-terminal"
" --working-directory=\"" dir "\""
" -t \"" dir "\""
"&"))]
[(macosx)
(system
(string-append "osascript -e 'tell app \"Terminal\" to do script \"cd \\\"" dir "\\\"\"'" ))]
[(windows)
(shell-execute #f "cmd.exe" "" dir 'sw_shownormal)])
#false))
(define-script more-scripts
#:label "Get more scripts (browser)"
#:menu-path ("url2script")
#:help-string "Opens the Racket wiki page for DrRacket Quickscript scripts."
(λ (str)
(send-url "https://github.com/racket/racket/wiki/Quickscript-Scripts-for-DrRacket")
#f))
- Ngôn ngữ chính
- Racket
- Star
- 517
- Fork
- 102
- Merge trung bình
- 5 giờ 19 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của racket/drracket
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
check-syntax
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
Tất cả issue của racket/drracket
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Facepunch/sbox-public#12305 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
分享 JVC DVD+RW 4.7G (铼德代工) 实测标定预设Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
JiaFeiMiao-K-Cat/DiscImageStudio#205 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The Browser tab fails with a Wayland error when Open Terminal runs from a Wayland desktop sessionĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
open-webui/open-terminal#210 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
flyingpie/windows-terminal-quake#419 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Show the per-model weekly limitĐang mởenhancement help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100