diff --git a/.gitignore b/.gitignore
index 677ea8b..0234127 100644
--- a/.gitignore
+++ b/.gitignore
@@ -116,4 +116,6 @@ settings.json
resources/**
lsp/**
*.zip
-scripts/**
\ No newline at end of file
+scripts/**
+
+run_todesktop.sh
\ No newline at end of file
diff --git a/README.md b/README.md
index ab29a43..e4e5069 100644
--- a/README.md
+++ b/README.md
@@ -1,32 +1,54 @@
+
# Cursor
-This is the repo for [Cursor](https://www.cursor.so), an editor built for pair programming with AI.
+[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/getcursor/cursor/blob/main/LICENSE) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)]() [![](https://dcbadge.vercel.app/api/server/PJEgRywgRy?style=flat&compact=true)](https://discord.gg/PJEgRywgRy)
-Feel free to file tickets for bugs or feature requests. Upvote 👍 the ones you'd like us to prioritize.
+**[Cursor](cursor.so) is an editor made for programming with AI.** It's early days, but right now Cursor can help you with a few things...
+
+- **Write**: Generate 10-100 lines of code with an AI that's smarter than Copilot
+- **Diff**: Ask the AI to edit a block of code, see only proposed changes
+- **Chat**: ChatGPT-style interface that understands your current file
+- **And more**: ask to fix lint errors, generate tests/comments on hover, etc.
+
+
Text Wrapping
diff --git a/src/features/window/state.ts b/src/features/window/state.ts
index e6dddcc..5a386bb 100644
--- a/src/features/window/state.ts
+++ b/src/features/window/state.ts
@@ -300,6 +300,7 @@ export interface Settings {
useFour: string
contextType: string
textWrapping: string
+ tabSize?: string
}
export interface SettingsState {
@@ -400,6 +401,7 @@ export const initialSettingsState = {
useFour: 'disabled',
contextType: 'none',
textWrapping: 'disabled',
+ tabSize: undefined
},
}
diff --git a/src/index.css b/src/index.css
index 837fa81..0dc2f0b 100644
--- a/src/index.css
+++ b/src/index.css
@@ -128,6 +128,10 @@ body {
min-width: 140ch;
}
+.display_text_wrapping {
+ width: 100%;
+}
+
.display_text_wrapping .cm_content {
min-width: 100%;
}
@@ -542,6 +546,10 @@ li.rta__item--selected mark {
overflow-y: auto;
}
+.cover-bar {
+ pointer-events: none;
+}
+
.window__editorcontainer .cover-bar {
background-color: var(--background);
right: 0px;
diff --git a/src/main/lsp.ts b/src/main/lsp.ts
index 59dfa75..067bc81 100644
--- a/src/main/lsp.ts
+++ b/src/main/lsp.ts
@@ -34,6 +34,10 @@ const lspDir = app.isPackaged
? path.join(process.resourcesPath, 'lsp')
: path.join(__dirname, '..', '..', 'lsp')
+ if (!fs.existsSync(lspDir)) {
+ fs.mkdirSync(lspDir)
+}
+
// Get the architecture and osType from electron
// architecture can take the values of 'arm', 'arm64', 'ia32', or 'x64'
const architecture = process.arch
@@ -419,7 +423,7 @@ class LSPManager {
case 'c':
let cVersion = await getLatestVersion(
- 'https://api.github.com/clangd/clangd/releases/latest'
+ 'https://api.github.com/repos/clangd/clangd/releases/latest'
)
if (osType === 'Darwin') {
remoteUrl = `https://github.com/clangd/clangd/releases/download/${cVersion}/clangd-mac-${cVersion}.zip`
@@ -434,7 +438,6 @@ class LSPManager {
if (!fs.existsSync(cDir)) {
fs.mkdirSync(cDir)
}
-
// fetch and download it
downloadPath = path.join(lspDir, 'c', 'clangd.zip')
await downloadFile(remoteUrl, downloadPath)
diff --git a/src/main/main.ts b/src/main/main.ts
index 0fb15a0..4a4bc27 100644
--- a/src/main/main.ts
+++ b/src/main/main.ts
@@ -108,6 +108,7 @@ process.on('unhandledRejection', (error) => {
})
const createWindow = () => {
+ const width = 1500, height = 800;
// Create the browser window.
const main_window = new BrowserWindow({
...(process.platform === 'darwin'
@@ -117,8 +118,10 @@ const createWindow = () => {
trafficLightPosition: { x: 10, y: 10 },
}
: { frame: false }),
- width: 1500,
- height: 800,
+ width: width,
+ height: height,
+ minWidth: width / 2
+ minHeight: height / 2,
title: 'Cursor',
webPreferences: {
// @ts-ignore