Antonio Scandurra
3b345cba67
Allow providing an external format in format_on_save setting
2022-07-07 11:04:03 +02:00
Antonio Scandurra
57d6cb29b4
Honor Autosave setting in Editor
2022-07-05 17:51:01 +02:00
Antonio Scandurra
b0ecd7d483
Introduce a new, language-overridable Autosave setting
2022-07-05 09:25:22 +02:00
Keith Simmons
38c6b275a8
add hover popover setting
2022-06-27 16:21:22 -07:00
Keith Simmons
5c67560264
Use NonZeroU32 to ensure settings tabsize cannot be zero
2022-06-23 12:55:38 -07:00
Antonio Scandurra and Nathan Sobo
c737c7c3f7
Don't override top-level settings with language defaults
...
Co-Authored-By: Nathan Sobo <nathan@zed.dev >
2022-06-23 16:40:57 +02:00
Max Brunsfeld
2e11995a75
Merge pull request #1155 from zed-industries/golang
...
Add Go support
2022-06-09 14:18:37 -07:00
Antonio Scandurra
f7fcf5064b
Introduce a new language-overrideable enable_language_server setting
2022-06-09 10:07:31 +02:00
Max Brunsfeld
60335c5d1c
Add support for hard tabs
...
* Add a `hard_tabs` setting that causes indentation to be performed
using a tab instead of multiple spaces.
* Change Buffer's indentation-related APIs to return an `IndentSize`
struct with a length and a kind, instead of just a single u32.
* Use hard tabs by default in Go.
2022-06-08 18:30:10 -07:00
Max Brunsfeld
6830c4ef76
Add setting to make projects online/offline by default
2022-06-03 17:01:15 -07:00
Antonio Scandurra
025f9af73b
Cap MessageStream buffer size to 1MB
...
We temporarily let it grow when the message size exceed the limit,
but restore the buffer's capacity shortly after. This ensures that,
for each connection in its entire lifetime, we only ever use 1MB.
2022-05-31 11:16:32 +02:00
Max Brunsfeld
a5d0e3096a
Add "Reset Zoom" action and application menu item
2022-05-27 13:06:12 -07:00
Antonio Scandurra
ce06f5ef2a
Pretty-print JSON of server snapshot
2022-05-26 09:34:39 +02:00
Max Brunsfeld and Nathan Sobo
65c8bea372
Distinguish between singleton and non-singleton workspace items
...
* Prompt to save singleton items before non-singleton ones
* Don't prompt to save multi-buffers if they contain excerpts to items that are open elsewhere and not being closed.
Co-authored-by: Nathan Sobo <nathan@zed.dev >
2022-05-23 16:03:00 -07:00
Max Brunsfeld
538046d5dc
Add format_on_save setting
...
This lets you turn of formatting on save for specific languages.
2022-04-28 14:31:06 -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
4a2c73a556
Allow comments in setting and keymap JSON files
2022-04-21 11:58:18 -07:00
Max Brunsfeld and Keith Simmons
4111c83b90
Use '*' to represent the default context in keymap files
...
Co-authored-by: Keith Simmons <keith@zed.dev >
2022-04-11 17:17:03 -07:00
Max Brunsfeld and Keith Simmons
6693b3ed13
Use the word 'keymap' more consistently
...
Co-authored-by: Keith Simmons <keith@zed.dev >
2022-04-11 17:02:16 -07:00
Max Brunsfeld and Keith Simmons
3787b3b5be
Watch ~/.zed/bindings.json file for custom key bindings
...
Co-authored-by: Keith Simmons <keith@zed.dev >
2022-04-11 16:50:44 -07:00
Max Brunsfeld
a4e5dafea4
Merge branch 'main' into load-keymaps
2022-04-11 15:55:10 -07:00
Max Brunsfeld and Keith Simmons
f75211df7d
Move assets to their own crate, load keymaps in vim tests
...
Also, move assets folder to the top-level.
Co-authored-by: Keith Simmons <keith@zed.dev >
2022-04-11 15:54:52 -07:00
Max Brunsfeld and Keith Simmons <keith@zed.dev
4353d8f0f7
Move keymap_file module into settings crate
...
Co-authored-by: Keith Simmons <keith@zed.dev
2022-04-11 15:22:18 -07:00
Nathan Sobo
f2a2639c48
Remove unused imports
2022-04-09 07:55:23 -06:00
Keith Simmons
55f328e6a8
dynamically inject theme names and language properties into schema
2022-04-07 18:15:02 -07:00
Keith Simmons
3ea362af37
Add explicit types for LanguageOverrides and Themes to SettingsFileContent in order to improve completions in zed settings file
2022-04-07 16:00:51 -07:00
Keith Simmons
b6f15ecc50
Tab size is pulled properly from settings instead of hardcoded
2022-04-06 10:23:37 -07:00
Max Brunsfeld and Keith Simmons
dce66e6f9e
Move Settings to its own crate
...
Co-authored-by: Keith Simmons <keith@zed.dev >
2022-04-06 10:23:33 -07:00