-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
133 lines (133 loc) · 4.37 KB
/
Copy pathpackage.json
File metadata and controls
133 lines (133 loc) · 4.37 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
{
"name": "tidy-paste",
"displayName": "Tidy Paste",
"description": "Cleans terminal-wrapped text on copy from VS Code's integrated terminal so pasted content arrives without stray line breaks or trailing whitespace.",
"version": "0.1.2",
"publisher": "miller-joe",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/miller-joe/tidy-paste.git"
},
"bugs": {
"url": "https://github.com/miller-joe/tidy-paste/issues"
},
"homepage": "https://github.com/miller-joe/tidy-paste#readme",
"engines": {
"vscode": "^1.80.0"
},
"categories": ["Other"],
"keywords": [
"terminal",
"clipboard",
"copy",
"paste",
"wrap",
"whitespace",
"llm",
"claude code"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "tidy-paste.terminalCopyClean",
"title": "Tidy Paste: Copy Cleaned (terminal)"
},
{
"command": "tidy-paste.cleanSelection",
"title": "Tidy Paste: Clean Selection (editor)"
},
{
"command": "tidy-paste.showOutput",
"title": "Tidy Paste: Show Debug Output"
},
{
"command": "tidy-paste.restoreRaw",
"title": "Tidy Paste: Restore Raw Clipboard (undo last clean)"
}
],
"keybindings": [
{
"command": "tidy-paste.terminalCopyClean",
"key": "ctrl+c",
"mac": "cmd+c",
"when": "terminalFocus && terminalTextSelected"
},
{
"command": "tidy-paste.restoreRaw",
"key": "ctrl+alt+z",
"mac": "cmd+alt+z"
}
],
"configuration": {
"title": "Tidy Paste",
"properties": {
"tidyPaste.enabled": {
"type": "boolean",
"default": true,
"description": "Master switch. When off, terminal copy behaves as default."
},
"tidyPaste.watchClipboard": {
"type": "boolean",
"default": true,
"description": "Watch the clipboard for changes and clean wrapped content automatically. Works regardless of how you copied (Ctrl+C, right-click, mouse-select). Turn off if you only want the manual command."
},
"tidyPaste.watchIntervalMs": {
"type": "number",
"default": 1000,
"description": "How often to check the clipboard for changes, in milliseconds. Lower = more responsive but uses more CPU. 1000ms is the default because 300ms caused noticeable editor lag in real testing."
},
"tidyPaste.appWrapColumn": {
"type": "number",
"default": 80,
"description": "Extra fixed column width to detect as an application-side hard wrap (e.g. 80 for many CLIs). Set to 0 to disable app-wrap detection and only use the current terminal width."
},
"tidyPaste.minWrapLines": {
"type": "number",
"default": 2,
"description": "Minimum consecutive candidate lines required to treat a block as wrapped. Raises the bar to avoid false positives on lists or short prose."
},
"tidyPaste.stripTrailingWhitespace": {
"type": "boolean",
"default": true,
"description": "Strip trailing whitespace from every line in the copied selection."
},
"tidyPaste.preserveCodeFences": {
"type": "boolean",
"default": true,
"description": "Never rewrap text inside a ``` fenced code block."
},
"tidyPaste.dedent": {
"type": "boolean",
"default": true,
"description": "Strip the common leading indent shared by all non-blank lines. Removes terminal-renderer indentation artifacts (Claude Code indents markdown) while preserving relative indentation for nested lists and code."
},
"tidyPaste.debug": {
"type": "boolean",
"default": false,
"description": "Log rewrite decisions to the Output panel (Tidy Paste channel)."
}
}
}
},
"scripts": {
"build": "tsc",
"watch": "tsc -w",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"package": "vsce package",
"vscode:prepublish": "npm run build"
},
"devDependencies": {
"@types/node": "^20.12.0",
"@types/vscode": "^1.80.0",
"@vscode/vsce": "^2.24.0",
"typescript": "^5.4.0",
"vitest": "^1.6.0"
}
}