Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
127 changes: 127 additions & 0 deletions bun.lock

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions src/cm/scrollPastEnd.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
import { type Extension } from "@codemirror/state";
import { EditorView, ViewPlugin, type ViewUpdate } from "@codemirror/view";

/**
* Adds space after the longest line so unwrapped text can scroll away from the
* right edge of the viewport. CodeMirror's line-wrapping class is placed on the
* content element, which lets the same extension disable the extra width when
* wrapping is enabled.
*/
export function horizontalScrollPastEnd(distance: number): Extension {
const width = Number.isFinite(distance)
? Math.max(0, Math.round(distance))
: 0;
if (width === 0) return [];

return EditorView.theme({
".cm-content:not(.cm-lineWrapping)": {
paddingRight: `${width}px`,
},
});
}

/**
* Returns an extension that adds a customizable bottom margin to the editor.
* @param factor The scaling factor for the margin (e.g., 0.25 for small, 0.5 for medium, 1.0 for full).
Expand Down
4 changes: 3 additions & 1 deletion src/lang/ar-ye.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
Comment thread
bajrangCoder marked this conversation as resolved.
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/be-by.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/bn-bd.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/cs-cz.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/de-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"diff sec": "{sec}s ago",
"command": "Command",
"managed": "Managed",
"acode service": "Acode Service"
"acode service": "Acode Service",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/es-sv.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/fr-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/he-il.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/hi-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/hu-hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Az xterm görgetősávjának megjelenítése a terminál mellett.",
"terminal:show scrollbar": "Görgetősáv megjelenítése",
"apply exclusions when copying": "Kizárások használata másoláskor",
"settings-info-app-use-file-operation-exclusions": "A kizárási mintáknak megfelelő fájlok és mappák kihagyása másoláskor és beillesztéskor."
"settings-info-app-use-file-operation-exclusions": "A kizárási mintáknak megfelelő fájlok és mappák kihagyása másoláskor és beillesztéskor.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/id-id.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
2 changes: 2 additions & 0 deletions src/lang/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,8 @@ declare type LangStrings = {
"command": string;
"managed": string;
"acode service": string;
"horizontal scroll margin": string;
"settings-info-horizontal-scroll-margin": string;
};

declare var strings: LangStrings;
4 changes: 3 additions & 1 deletion src/lang/ir-fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/it-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/ja-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/ko-kr.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/ml-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/mm-unicode.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/mm-zawgyi.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/pl-pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/pt-br.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/pu-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/ru-ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/tl-ph.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/tr-tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/uk-ua.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
4 changes: 3 additions & 1 deletion src/lang/uz-uz.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,5 +833,7 @@
"info-terminal-show-scrollbar": "Show the xterm scrollbar beside the terminal.",
"terminal:show scrollbar": "Show Scrollbar",
"apply exclusions when copying": "Apply exclusions when copying",
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations."
"settings-info-app-use-file-operation-exclusions": "Skip files and folders matching the exclusion patterns during copy and paste operations.",
"horizontal scroll margin": "Horizontal scroll margin",
"settings-info-horizontal-scroll-margin": "Adds empty space after the longest line when word wrap is off. Enter any non-negative whole-pixel value."
}
Loading