-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
111 lines (111 loc) · 3.19 KB
/
Copy pathpackage.json
File metadata and controls
111 lines (111 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "path-to-terminal",
"displayName": "Path to Terminal",
"description": "Send file paths and line references to the terminal so you can keep building commands without copy-paste friction.",
"version": "0.0.2",
"publisher": "danbi2990",
"license": "MIT",
"packageManager": "pnpm@10.33.2",
"repository": {
"type": "git",
"url": "https://github.com/danbi2990/path-to-terminal.git"
},
"homepage": "https://github.com/danbi2990/path-to-terminal#readme",
"bugs": {
"url": "https://github.com/danbi2990/path-to-terminal/issues"
},
"icon": "resources/icon.png",
"galleryBanner": {
"color": "#1B140F",
"theme": "dark"
},
"engines": {
"vscode": "^1.105.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:path-to-terminal.sendAbsoluteSelectionToTerminal",
"onCommand:path-to-terminal.sendAbsoluteFilePathToTerminal",
"onCommand:path-to-terminal.sendLastActiveFilePathToTerminal"
],
"main": "./out/src/extension.js",
"contributes": {
"commands": [
{
"command": "path-to-terminal.sendAbsoluteSelectionToTerminal",
"title": "Send Selection to Terminal (Absolute Path)"
},
{
"command": "path-to-terminal.sendAbsoluteFilePathToTerminal",
"title": "Send File Path to Terminal (Absolute Path)"
},
{
"command": "path-to-terminal.sendLastActiveFilePathToTerminal",
"title": "Send Last Active File Path to Terminal (Absolute Path)"
}
],
"keybindings": [
{
"command": "path-to-terminal.sendAbsoluteSelectionToTerminal",
"key": "ctrl+l",
"mac": "cmd+l",
"when": "editorTextFocus"
},
{
"command": "path-to-terminal.sendLastActiveFilePathToTerminal",
"key": "ctrl+shift+l",
"mac": "cmd+shift+l"
},
{
"command": "path-to-terminal.sendAbsoluteFilePathToTerminal",
"args": {
"pathSource": "clipboard"
},
"key": "ctrl+l",
"mac": "cmd+l",
"when": "openEditorsFocus && openEditorsSelectedFileOrUntitled && resourceScheme == file"
},
{
"command": "path-to-terminal.sendAbsoluteFilePathToTerminal",
"args": {
"pathSource": "clipboard"
},
"key": "ctrl+l",
"mac": "cmd+l",
"when": "explorerViewletFocus && resourceScheme == file"
}
],
"menus": {
"explorer/context": [
{
"command": "path-to-terminal.sendAbsoluteFilePathToTerminal",
"when": "resourceSet && isFileSystemResource",
"group": "navigation"
}
],
"openEditors/context": [
{
"command": "path-to-terminal.sendAbsoluteFilePathToTerminal",
"when": "resourceSet && isFileSystemResource",
"group": "navigation"
}
]
}
},
"scripts": {
"compile": "tsc -p .",
"watch": "tsc -w -p .",
"test": "tsc -p . && tsx --test test/**/*.test.ts",
"package": "vsce package",
"publish:marketplace": "vsce publish"
},
"devDependencies": {
"@types/node": "^24.6.0",
"@types/vscode": "^1.105.0",
"@vscode/vsce": "^3.6.2",
"tsx": "^4.20.5",
"typescript": "^5.9.3"
}
}