-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c977885
commit 58c8c5c
Showing
3 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
94 changes: 94 additions & 0 deletions
94
srcpkgs/zed/patches/0001-tweak-default-conf-for-privacy.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
diff --git a/assets/settings/default.json b/assets/settings/default.json | ||
index 743ec54..47b356c 100644 | ||
--- a/assets/settings/default.json | ||
+++ b/assets/settings/default.json | ||
@@ -21,8 +21,10 @@ | ||
"base_keymap": "VSCode", | ||
// Features that can be globally enabled or disabled | ||
"features": { | ||
+ //disables copilot by default | ||
+ "copilot": false, | ||
// Which inline completion provider to use. | ||
- "inline_completion_provider": "copilot" | ||
+ "inline_completion_provider": "none" | ||
}, | ||
// The name of a font to use for rendering text in the editor | ||
"buffer_font_family": "Zed Plex Mono", | ||
@@ -377,7 +379,7 @@ | ||
// Version of this setting. | ||
"version": "2", | ||
// Whether the assistant is enabled. | ||
- "enabled": true, | ||
+ "enabled": false, | ||
// Whether to show the assistant panel button in the status bar. | ||
"button": true, | ||
// Where to dock the assistant panel. Can be 'left', 'right' or 'bottom'. | ||
@@ -497,13 +499,13 @@ | ||
// Control what info is collected by Zed. | ||
"telemetry": { | ||
// Send debug info like crash reports. | ||
- "diagnostics": true, | ||
+ "diagnostics": false, | ||
// Send anonymized usage data like what languages you're using Zed with. | ||
- "metrics": true | ||
+ "metrics": false | ||
}, | ||
// Automatically update Zed. This setting may be ignored on Linux if | ||
// installed through a package manager. | ||
- "auto_update": true, | ||
+ "auto_update": false, | ||
// Diagnostics configuration. | ||
"diagnostics": { | ||
// Whether to show warnings or not by default. | ||
@@ -559,7 +561,7 @@ | ||
// May take 2 values: | ||
// 1. hour12 | ||
// 2. hour24 | ||
- "hour_format": "hour12" | ||
+ "hour_format": "hour24" | ||
}, | ||
// Settings specific to the terminal | ||
"terminal": { | ||
diff --git a/assets/settings/initial_user_settings.json b/assets/settings/initial_user_settings.json | ||
index 705dc30..eee9d55 100644 | ||
--- a/assets/settings/initial_user_settings.json | ||
+++ b/assets/settings/initial_user_settings.json | ||
@@ -7,11 +7,38 @@ | ||
// custom settings, run the `zed: Open Default Settings` command | ||
// from the command palette | ||
{ | ||
+ //The default font size for text in the UI | ||
"ui_font_size": 16, | ||
+ //The default font size for text in the editor | ||
"buffer_font_size": 16, | ||
"theme": { | ||
"mode": "system", | ||
"light": "One Light", | ||
"dark": "One Dark" | ||
} | ||
+ | ||
+// The following settings have been changed from the upstream defaults to | ||
+// improve security and privacy. Here are the upstream defaults, you can | ||
+// uncomment them if you like. | ||
+// | ||
+// "features": { | ||
+// // Enable copilot (provided by an online service). | ||
+// "copilot": true, | ||
+// "inline_completion_provider": "copilot" | ||
+// }, | ||
+// "assistant": { | ||
+// "version": "1", | ||
+// // Enable the assistant (provided by an online service). | ||
+// "enabled": true | ||
+// }, | ||
+// "telemetry": { | ||
+// // Send debug info like crash reports to Zed Industries. | ||
+// "diagnostics": true, | ||
+// // Send anonymized usage data like what languages you're using Zed with | ||
+// // to Zed Industries. | ||
+// "metrics": true | ||
+// }, | ||
+// "journal": { | ||
+// "hour_format": "hour12" | ||
+// } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.toml | ||
index 54d16da..1ced68d 100644 | ||
--- a/crates/zed/Cargo.toml | ||
+++ b/crates/zed/Cargo.toml | ||
@@ -11,7 +11,7 @@ authors = ["Zed Team <hi@zed.dev>"] | ||
workspace = true | ||
|
||
[[bin]] | ||
-name = "zed" | ||
+name = "zedit" | ||
path = "src/main.rs" | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Template file for 'zed' | ||
pkgname=zed | ||
version=0.154.3 | ||
revision=1 | ||
archs="x86_64* aarch64*" | ||
build_style=cargo | ||
make_install_args="--path crates/zed" | ||
make_check_args="-- --test-threads 1" | ||
hostmakedepends="pkg-config protobuf gettext mold clang18 cmake" | ||
makedepends="alsa-lib-devel fontconfig-devel libxcb-devel libxkbcommon-devel | ||
libzstd-devel wayland-devel vulkan-loader openssl-devel libgit2-1.8-devel | ||
sqlite-devel" | ||
depends="git" | ||
checkdepends="noto-fonts-ttf" | ||
short_desc="High-performance, multiplayer code editor" | ||
maintainer="SpidFightFR <spidfight@swisscows.email>" | ||
license="GPL-3.0-or-later, Apache-2.0, AGPL-3.0-or-later" | ||
homepage="https://zed.dev/" | ||
distfiles="https://github.com/zed-industries/zed/archive/v${version}.tar.gz" | ||
checksum="ece12921b74d0a0dd120c2cab0e970da4cb5eeffb4d408662386d0c7b79e7ce5" | ||
|
||
post_install() { | ||
vlicense ${wrksrc}/LICENSE-AGPL | ||
APP_NAME="Zed" DO_STARTUP_NOTIFY="true" APP_ICON="zed" APP_CLI="zedit" envsubst < ${wrksrc}/crates/zed/resources/zed.desktop.in > ${wrksrc}/crates/zed/resources/zed.desktop | ||
vinstall ${wrksrc}/crates/zed/resources/zed.desktop 644 usr/share/applications/ | ||
vinstall ${wrksrc}/crates/zed/resources/app-icon.png 644 usr/share/icons/hicolor/512x512/apps/ zed.png | ||
} |