File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 5050 " ${input:name}" ,
5151 " ${input:categoryQuery}"
5252 ],
53+ "options" : {
54+ "env" : {
55+ "EDITOR" : " code -r" ,
56+ }
57+ },
5358 "presentation" : {
5459 "reveal" : " never" ,
5560 "close" : true
6772 " ${input:name}" ,
6873 " ${input:categoryLibrary}"
6974 ],
75+ "options" : {
76+ "env" : {
77+ "EDITOR" : " code -r"
78+ }
79+ },
7080 "presentation" : {
7181 "reveal" : " never" ,
7282 "close" : true
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
3- # Creates a change note and opens it in VSCode for editing.
3+ # Creates a change note and opens it in $EDITOR (or VSCode if the environment
4+ # variable is not set) for editing.
45
56# Expects to receive the following arguments:
67# - What language the change note is for
5152with open (change_note_file , "w" ) as f :
5253 f .write (change_note )
5354
54- # Open the change note file in VSCode, reusing the existing window if possible
55- os .system (f"code -r { change_note_file } " )
55+ editor = os .environ .get ('EDITOR' , 'code -r' )
56+
57+ os .system (f"{ editor } { change_note_file } " )
You can’t perform that action at this time.
0 commit comments