Commit Graph
3897 Commits
Author SHA1 Message Date
Max Brunsfeld 45df2e2025 Merge pull request #900 from zed-industries/completion-insert-text
Respect lsp completions' 'insert_text' property when present
2022-04-25 14:36:47 -07:00
Max Brunsfeld a43d10518d Infer completions old ranges based on the syntax tree 2022-04-25 13:14:05 -07:00
Max Brunsfeld 2a221ebf0b Merge pull request #898 from zed-industries/track-window-focus
Focus/blur views when application windows become active/inactive
2022-04-25 08:54:47 -07:00
Nathan Sobo d643955766 Only set the cursor style once per mouse move event
This will hopefully prevent some of the intermittent flickering we seem to be seeing.
2022-04-22 18:57:49 -06:00
Keith Simmons 9e31a770af Merge pull request #891 from zed-industries/solarized
Add solarized dark and light syntax themes
2022-04-22 15:13:52 -07:00
Max Brunsfeld aca8227e7d Remove duplication between windowDid{Become,Resign}Key callbacks 2022-04-22 15:06:50 -07:00
Keith Simmons c33e32bb32 Update solarized theme to match main 2022-04-22 15:04:45 -07:00
Max Brunsfeld 22dcaf31e6 Fix double-borrow crash by calling window activated callback asynchronously 2022-04-22 15:01:19 -07:00
Keith Simmons dd54a5b076 fix solarized element backgrounds 2022-04-22 14:58:45 -07:00
Keith Simmons 3fd5282f5e Add some comments to the theme.ts explaining the logic behind them 2022-04-22 14:58:45 -07:00
Keith Simmons f0fd62ac36 add solarized dark and light syntax themes 2022-04-22 14:58:45 -07:00
Max Brunsfeld 080691ccfa Respect lsp completions' 'insert_text' property when present
Fixes #839
2022-04-22 14:33:13 -07:00
Keith Simmons 0a3ab68c09 Merge pull request #877 from zed-industries/misc-normal-commands
Add inclusive vs exclusive motions to vim mode
2022-04-22 14:25:56 -07:00
Max Brunsfeld ff91709997 Merge pull request #894 from zed-industries/typescript-outline-fixes
Fix missing TypeScript outline entries and breadcrumbs
2022-04-22 14:21:46 -07:00
Max Brunsfeld 71e5de753f Focus/blur views when application windows become active/inactive 2022-04-22 14:18:50 -07:00
Max Brunsfeld 6b73d44d65 Fix missing TypeScript outline entries and breadcrumbs 2022-04-22 13:49:03 -07:00
Max Brunsfeld f9689d1708 Merge pull request #892 from zed-industries/syntax-theme-fixes
Syntax theme fixes
2022-04-22 13:24:31 -07:00
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 Sobo e6cd7a004d Merge pull request #889 from zed-industries/cursor-style-revamp
Apply cursor styles during paint and make editor's cursor an I-Beam
2022-04-22 13:20:31 -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 071bb544a5 Merge pull request #886 from zed-industries/fix-delete-to-beginning-of-line
Delete selected text when deleting to beginning of line, regardless of selection direction
2022-04-22 15:55:51 +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
Nathan Sobo 67d2b05ae9 Map shift-backspace to backspace
A user pointed out that it was weird that this didn't work and violated their muscle memory.
2022-04-22 06:04:12 -06:00
Antonio Scandurra 9f6109c722 Merge pull request #884 from zed-industries/show-project-browser-when-opening-folder
Show project browser when opening folder
2022-04-22 12:04:53 +02: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 c732ae0787 Merge pull request #883 from zed-industries/humanize-underscores
Replace underscores with spaces when humanizing action names
2022-04-22 10:30:17 +02:00
Antonio Scandurra ffdd357ebf Replace underscores with spaces when humanizing action names 2022-04-22 10:24:12 +02:00
Max Brunsfeld 8d5979962c Merge pull request #876 from zed-industries/highlight-toml
Add syntax highlighting for TOML
2022-04-21 16:54:44 -07: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 eef94df394 Merge pull request #875 from zed-industries/keymap-improvements
Keymap improvements
2022-04-21 15:38:43 -07:00
Max Brunsfeld a08f0b90bf 🎨 Tweak order of default key bindings 2022-04-21 15:28:15 -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 6979287f54 Organize default key bindings into categories 2022-04-21 14:07:14 -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