Commit Graph
31406 Commits
Author SHA1 Message Date
Max Brunsfeld 7c3fe041d8 Avoid spurious highlight runs in Language::highlight_text 2022-04-22 13:13:54 -07:00
Max BrunsfeldandKeith Simmons 085ebeb1b7 Allow each theme to style all aspects of syntax highlighting
Previously, some syntax highlights were controlled in editor.ts,
and shared across all themes.

Co-authored-by: Keith Simmons <keith@zed.dev>
2022-04-22 12:43:01 -07:00
Nathan SoboandAntonio Scandurra b20fba5289 WIP: Get compiling with Tokio by commenting almost everything
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2022-04-22 13:33:19 -06:00
Max BrunsfeldandKeith Simmons 64f99eef44 Highlight punctuation uniformly in all supported languages
Co-authored-by: Keith Simmons <keith@zed.dev>
2022-04-22 12:16:49 -07:00
Max BrunsfeldandKeith Simmons 6076904b9b Update languages' highlight mapppings when the theme changes
Co-authored-by: Keith Simmons <keith@zed.dev>
2022-04-22 12:09:14 -07:00
Nathan SoboandAntonio Scandurra 73c0d58830 Apply cursor styles during paint
This makes the editor's cursor an IBeam and properly deals with nested cursor styles.

Co-Authored-By: Antonio Scandurra <me@as-cii.com>
2022-04-22 10:54:18 -06:00
Antonio Scandurra 873e654e28 Merge pull request #887 from zed-industries/fix-typescript-rename
Use document highlights to prepare rename if LSP doesn't support it
2022-04-22 16:37:13 +02:00
Antonio Scandurra 620f0dcda0 Fix rpc::tests::test_collaborating_with_renames 2022-04-22 16:29:28 +02:00
Antonio Scandurra fb8f17bc80 Fix Project::test_rename 2022-04-22 15:59:20 +02:00
Antonio Scandurra e551cf0636 Use document highlights to prepare rename if LSP doesn't support it 2022-04-22 15:43:57 +02:00
Antonio Scandurra fdfcbaa63b Return None when prepare rename is not available on language server 2022-04-22 15:43:23 +02:00
Nathan Sobo 9a8cb43695 Delete selected text when deleting to beginning of line 2022-04-22 06:04:14 -06:00
Antonio Scandurra 4afa8c8931 Avoid flicker when toggling project browser on workspace open 2022-04-22 11:53:45 +02:00
Antonio Scandurra 129f1ec634 Move project browser toggling logic in workspace::open_paths 2022-04-22 11:25:23 +02:00
Antonio Scandurra e724671336 Add only one worktree when running zed /dir /dir/file 2022-04-22 11:06:17 +02:00
Antonio Scandurra 4cdd9a9d35 Show project panel when opening a folder via the CLI 2022-04-22 10:45:46 +02:00
Antonio Scandurra ffdd357ebf Replace underscores with spaces when humanizing action names 2022-04-22 10:24:12 +02:00
Keith Simmons 8e7fcb3b05 Add inclusive vs exclusive motions to vim mode 2022-04-21 16:50:23 -07:00
Max Brunsfeld 4b678aabfa Add syntax highlighting for TOML 2022-04-21 16:39:49 -07:00
Max Brunsfeld f6cdcbefdc Reuse Confirm action in chat panel, go-to-line, and project search 2022-04-21 15:24:05 -07:00
Max Brunsfeld b374e41d9f Allow toggling line comments in JSON 2022-04-21 14:12:17 -07:00
Max Brunsfeld 20903e9130 Restructure KeyMap file, make it easy to edit in Zed
Add a JSON schema for this file so that autocomplete can be used for the actions.
2022-04-21 13:35:10 -07:00
Max Brunsfeld fee4a096ff Use the 'jsonc' language id for all JSON files
This way, comments are allowed by the language server.
2022-04-21 12:08:16 -07:00
Max Brunsfeld 4a2c73a556 Allow comments in setting and keymap JSON files 2022-04-21 11:58:18 -07:00
Max Brunsfeld 6e1ac77977 Merge pull request #864 from zed-industries/polish-project-panel
Sort directories before files in a case-insensitive manner
2022-04-21 11:48:04 -07:00
Max Brunsfeld a73559afb1 Merge pull request #866 from zed-industries/max-line-len-2
Always wrap lines that are wider than 512 em advances
2022-04-21 11:23:29 -07:00
Antonio ScandurraandMax Brunsfeld 6956f6199c Always wrap lines that are wider than 512 em advances
We went with a more conservative upper bound so that the number of
characters (hopefully) never exceeds `MAX_LINE_LEN` (1024) when laying
out text.

Co-Authored-By: Max Brunsfeld <max@zed.dev>
2022-04-21 19:29:37 +02:00
Nathan Sobo ca774beea8 Merge pull request #865 from zed-industries/remove-web-frontend
Remove web frontend from collab server
2022-04-21 11:17:21 -06:00
Nathan Sobo b6dc658c89 Drop signups table 2022-04-21 10:59:13 -06:00
Nathan Sobo c655a2802c Remove signups-related methods from Db trait 2022-04-21 10:55:32 -06:00
Nathan Sobo 7ff40c141d Remove remaining bits of web front-end 2022-04-21 09:30:08 -06:00
Nathan Sobo f74ca5c384 Remove more files supporting the old web front-end 2022-04-21 09:06:34 -06:00
Nathan Sobo c592be3a8c Remove more unused code related to GitHub auth and errors 2022-04-21 08:57:49 -06:00
Antonio Scandurra 823f34556b Sort (case-insensitive) directories before files 2022-04-21 15:08:45 +02:00
Antonio Scandurra 55d4d44865 Store visible entries in project panel by id rather than offset 2022-04-21 13:37:57 +02:00
Antonio Scandurra 372f2fc6a6 Merge branch 'main' into auto-update 2022-04-21 09:53:06 +02:00
Max Brunsfeld 2f37c6c44c v0.29.0 2022-04-20 16:10:07 -07:00
Max Brunsfeld 5d6b99f544 Merge pull request #863 from zed-industries/fix-project-symbols-crash
Fix project symbols crash
2022-04-20 16:09:25 -07:00
Max Brunsfeld d40bea2dd8 Always notify a Picker when its delegate notifies 2022-04-20 16:03:11 -07:00
Max Brunsfeld 9197aba310 Add unit test for project symbols that demonstrates crash 2022-04-20 16:02:37 -07:00
Nathan Sobo 85e520ce91 Remove some user-facing routes 2022-04-20 15:39:39 -06:00
Keith Simmons ffdac25b7b Merge pull request #851 from zed-industries/vim-delete-jk-fix
Linewise motions fix
2022-04-20 14:34:05 -07:00
Nate Butler 51167e57ac Merge pull request #846 from zed-industries/update-themes-04-19
Update theme for command palette, inputs, tabs, autocomplete
2022-04-20 12:05:00 -04:00
Nate Butler 83a45e5dd0 Increase min-width for all Pickers, minor style changes
- Increases the Picker min-width from 500 to 540
- Makes some changes to the styling of keyboard shortcuts in the command palette
2022-04-20 11:54:57 -04:00
Antonio ScandurraandNathan Sobo ef015a350e Remove App::on_open_files, as it's a subset of on_open_urls
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-04-20 17:36:27 +02:00
Antonio ScandurraandNathan Sobo 318b64d2bc 💄
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-04-20 17:36:03 +02:00
Antonio ScandurraandNathan Sobo 387f450fa4 Locate app bundle based on location of CLI binary
The app bundle can also be specified via `-b` or `--bundle-path`.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-04-20 17:29:12 +02:00
Antonio ScandurraandNathan Sobo c6578f3b56 Add application menu to install CLI
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-04-20 17:29:10 +02:00
Antonio ScandurraandNathan Sobo 41b7498c98 Implement zed --version
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-04-20 17:28:31 +02:00
Antonio Scandurra 4b871fad6a Remove stray dbg 2022-04-20 17:28:31 +02:00