Skip to content

Commit 1e75ad4

Browse files
committed
v0.0.6: lower adaptive wrap threshold to 40 chars
Shorter wrapped lines (indented list continuations, bullet-point tails) were falling below the previous 50-char threshold and staying unjoined. 40 catches the common case of a 4-space-indented bullet that wraps to a short tail without being so permissive that it misfires on natural short content (whose lines almost always end with a terminator anyway).
1 parent e19b318 commit 1e75ad4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "tidy-paste",
33
"displayName": "Tidy Paste",
44
"description": "Cleans terminal-wrapped text on copy from VS Code's integrated terminal so pasted content arrives without stray line breaks or trailing whitespace.",
5-
"version": "0.0.5",
5+
"version": "0.0.6",
66
"publisher": "miller-joe",
77
"license": "MIT",
88
"repository": {

src/cleaner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const SENTENCE_TERMINATORS = new Set<string>([
5151
* Lines shorter than this are never considered wrap candidates based on
5252
* length alone — a natural short bullet point stays a bullet point.
5353
*/
54-
const MIN_ADAPTIVE_WRAP_LEN = 50;
54+
const MIN_ADAPTIVE_WRAP_LEN = 40;
5555

5656
export function cleanCopiedText(input: string, opts: CleanOptions = {}): CleanResult {
5757
const notes: string[] = [];

0 commit comments

Comments
 (0)