Commit Graph
100 Commits
Author SHA1 Message Date
Peter Tripp 6b8b8ab73b ci: Add shellcheck for scripts (#20631)
Fixes shellcheck errors in script/*
Adds a couple trailing newlines.
Adds `script/shellcheck-scripts` and associated CI machinery.
Current set ultra-conservative, does not output warnings, only errors.
2024-11-18 16:41:22 -05:00
Peter Tripp f91bb7b181 Improve install-cmake script (#20836)
- Don't output junk to stderr when cmake unavailable
- Kitware PPA does not include up to date bins for all distros (e.g.
Ubuntu 24 only has 3.30.2 although 3.30.4 has been out for a while) so
don't try to force install a specific version. Take the best we can get.
2024-11-18 16:39:57 -05:00
Peter Tripp f2761bd0ab docs: Add Language extension config TBDs (To Be Documented) (#20829)
Release Notes:

- N/A
2024-11-18 13:31:24 -05:00
Peter Tripp 88e2bc30ba Support for Back/Forward multimedia keys (#20695)
- Added Support for Back/Forward multimedia keys (Linux)
2024-11-18 09:36:08 -05:00
Peter Tripp 35d3727447 docs: More language extension config.toml key documentation (#20818)
Release Notes:

- N/A
2024-11-18 09:23:29 -05:00
Peter TrippandConrad Irwin dd9077dc87 ssh: Use openbsd nc on macOS (#20751)
Co-authored-by: Conrad Irwin <conrad@zed.dev>
2024-11-15 17:27:45 -05:00
Peter Tripp f4d504f9d3 docs: Variable escaping in tasks (#20730) 2024-11-15 11:14:30 -05:00
Peter Tripp 0a008bd662 docs: Proto formatter example (#20677) 2024-11-14 11:25:37 -05:00
Peter Tripp f0000a69e0 Fix bad quote in script/determine-release-channel (#20613) 2024-11-13 12:41:50 -05:00
Peter Tripp b0e184a0cf Improve terminal.working_directory for non-project files (#18251) 2024-11-13 10:40:36 -05:00
Peter Tripp 729a5cbaa7 docs: Improve formatter docs. Examples for C/C++ (#20553) 2024-11-13 09:24:50 -05:00
Peter Tripp e649f07ee8 ci: No GitHub Actions stale check on forks (#20382) 2024-11-07 16:11:18 -05:00
Peter Tripp 35d3c67729 v0.162.x dev 2024-11-06 11:09:13 -05:00
Peter Tripp d2a975228a Add autoclosing braces for Shell Scripts (#20278)
Added support for autoclosing braces `{}` and single quotes `''` in Shell Scripts
2024-11-06 11:05:59 -05:00
Peter Tripp fa2cd0d9c2 docs: Add documentation for configuring clangd in C-only mode (#20255) 2024-11-05 16:43:31 -05:00
Peter Tripp acbf3af6e9 ci: Update issue templates. Rename defect to bug and improve log formatting (#20246) 2024-11-05 12:07:17 -05:00
Peter Tripp 5286fa5264 docs: Add redirect for /conversations (#20170)
Release Notes:

- N/A
2024-11-04 09:56:07 -05:00
Peter Tripp 675f10b8e4 docs: SSH no longer requires Zed Preview (#20003) 2024-10-30 23:28:13 -04:00
Peter Tripp ca47a9aa89 v0.161.x dev 2024-10-30 11:06:39 -04:00
Peter Tripp b1601bdef2 ci: Don't run GitHub Actions workflows on forks (#19789)
- Closes: https://github.com/zed-industries/zed/issues/19351

Release Notes:

- N/A
2024-10-27 09:04:52 -04:00
Peter Tripp 7c70335fd4 docs: Example theme_overrides for docstrings as italic (#19694) 2024-10-24 14:37:57 -04:00
Peter Tripp 618ae73b7f Switch to Anthropic -latest tags (#19615)
- Closes: https://github.com/zed-industries/zed/issues/19609

Switches us to using `-latest` tags with Anthropic models instead of
pinning to a specific date version.
See: [Anthropic Model
Docs](https://docs.anthropic.com/en/docs/about-claude/models)

This is a no-op for:
- Claude 3 Opus (`claude-3-opus-20240229`)
- Claude 3 Sonnet (`claude-3-sonnet-20240229`)
- Claude 3 Haiku (`claude-3-haiku-20240307`)

For Claude 3.5 Sonnet this will update us from
`claude-3-5-sonnet-20240620` to `claude-3-5-sonnet-20241022`. We will
also pickup any subsequent model updates automatically when Anthropic
updates the `latest` tag.

This matches the behavior for OpenAI where use `gpt-4o` as the
model_name and not `gpt-4o-2024-08-06`.
2024-10-23 15:13:52 -04:00
Peter Tripp 5fc672927f docs: Improve Markdown trailing whitespace section (#19630) 2024-10-23 13:23:01 -04:00
Peter Tripp 51fb3df0e4 docs: Improve language server configuration dotted/nested notation example (#19608) 2024-10-23 09:41:27 -04:00
Peter Tripp ed7067f870 Check for rsync before downloading updates (#19392) 2024-10-22 17:12:26 -04:00
Peter Tripp dcc277aff4 macos: Add services menu (#16959) 2024-10-22 17:08:19 -04:00
Peter Tripp 63777ace94 docs: Document upstream JSONC Prettier issues (#19552) 2024-10-22 10:43:21 -04:00
Peter Tripp 78f31410d2 keymap: Add cmd-o 'Go to symbol' for JetBrains MacOS key bindings (#19415) 2024-10-18 10:12:39 -04:00
Peter Tripp 7d89c1f584 docs: More Java extension documentation (#19390)
Follow up of: https://github.com/zed-industries/zed/pull/19113
2024-10-17 20:21:45 -04:00
Peter Tripp 1dc9b43a33 ci: Improve GitHub Action modularity (#18861)
- Closes: https://github.com/zed-industries/zed/issues/19351
- Switch to using the official [typos GitHub Action](https://github.com/crate-ci/typos/blob/master/docs/github-action.md)
- Move the typos check into `actions/check_style`
- Move Squawk Postgres migration check out of `actions/check_style` file into ci.yml
- `actions/check_style` can now be run on stateless/linux runners (previous required self-hosted MacOS runner)
- ci.yml: Split old `style` into checks into those that can run statelessly (linux) and everything else into a new `migration` group which benefit from the full git checkout available on the MacOS runners.
- ci.yml: Move `Check unused dependencies` from style to `linux_tests`
- Add `if: github.repository_owner == 'zed-industries'` to all jobs so they won't try and run on GitHub forks.
2024-10-17 12:50:19 -04:00
Peter Tripp 54badfcfd4 Make terminal.option_as_meta=false in default settings (#19364)
- This reverts the change I made in https://github.com/zed-industries/zed/pull/15535 which set `option_as_meta` to `true` in the default settings.
- `true` is a reasonable default for US Keyboards, but is terrible for many others which rely on `alt+<key>` for totally normal keystroke combinations.
2024-10-17 10:31:35 -04:00
Peter Tripp 2bfb35af35 Support uppercase extensions in image preview (#19304) 2024-10-17 08:48:18 -04:00
Peter Tripp 0619a6b75d docs: Add C++ clangd example arguments (#19308) 2024-10-16 16:07:05 -04:00
Peter Tripp 2367c100f7 zig: Bump to v0.3.1 (#19252)
Includes:
- https://github.com/zed-industries/zed/pull/18323
- https://github.com/zed-industries/zed/pull/17488
2024-10-16 08:42:45 -04:00
Peter Tripp 7067ebfa76 html: Bump to v0.1.3 (#19251)
Includes:
- https://github.com/zed-industries/zed/pull/18024
2024-10-16 08:42:27 -04:00
Peter Tripp fc5b5dc9d5 elixir: Bump to v0.1.0 (#19250)
Includes:
- https://github.com/zed-industries/zed/pull/18024
- https://github.com/zed-industries/zed/pull/17488
- https://github.com/zed-industries/zed/pull/16985
2024-10-16 08:42:07 -04:00
Peter Tripp a161521204 astro: Bump to v0.1.1 (#19249)
Includes:
- https://github.com/zed-industries/zed/pull/18024
2024-10-16 08:41:45 -04:00
Peter Tripp 62d9a52739 Glob documentation (#18789)
Leaving this unlinked for now because I'm not sure where it belongs.
Plan to write up something for regexes too.
2024-10-15 17:21:04 -04:00
Peter Tripp f2be08dce0 Add Diff language (#19129) 2024-10-15 16:02:12 -04:00
Peter Tripp a0d8cb50a7 Use multi-line regex for '\s' (#19241) 2024-10-15 15:47:43 -04:00
Peter Tripp d8f998025b ruby: Move Ruby extension to zed-extensions/ruby repo (#19098) 2024-10-15 15:41:20 -04:00
Peter Tripp cefadab4b8 docs: Formatter arguments, document {buffer_path} usage (#19156) 2024-10-13 10:25:08 -04:00
Peter Tripp 503fdfc8e4 cpp: Better icon support (#19146) 2024-10-13 04:09:27 -04:00
Peter Tripp 0426a2889e Bytes 1.7.2 merge fix (#19145) 2024-10-13 02:56:12 -04:00
Peter Tripp f9ae137d0d Improve auto-detection via shebang of TypeScript, JavaScript and Shell Script (#19114) 2024-10-13 02:35:46 -04:00
Peter Tripp 5ad96f46c5 docs: Link environment.md (#19101) 2024-10-11 17:24:56 -04:00
Peter Tripp 554d25ebfb Document extension extraction process (#19085)
Release Notes:

- N/A
2024-10-11 16:33:40 -04:00
Peter Tripp 5a88bcef9f Fix script/linux for Linux Mint (#19096)
- Closes: https://github.com/zed-industries/zed/issues/18827

Release Notes:

- N/A
2024-10-11 16:29:35 -04:00
Peter Tripp 257ad28cd4 Standardize on CursorShape::Underline not Underscore (#19028)
Currently terminal.cursor_shape uses `underline` and `cursor_shape` uses
`underscore`.
This standardizes them so they use the same settings value.

I think `underline` is the more common term and it matches the
terminology used by VSCode, Alacritty, iTerm, etc.

Note the protobuf enum `CursorShape::CursorUnderscore` remains
unchanged.

See also:
- https://github.com/zed-industries/zed/pull/18530
- https://github.com/zed-industries/zed/pull/17572

Release Notes:

- Settings: rename one `cursor_shape` from `underscore` to `underline`
(breaking change).
2024-10-11 10:44:21 +02:00
Peter TrippandMarshall Bowers 4a5b266d29 docs: Add XML (#19026)
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-10 12:56:39 -04:00
Peter Tripp fba04786c3 docs: Add gopls install instructions (#18919) 2024-10-09 14:05:35 -04:00
Peter TrippandMarshall Bowers 5dc5e1e191 Document extension bump process (#18872)
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-08 16:13:56 -04:00
Peter Tripp 7e4b786ebb dart: Bump to v0.1.1 (#18859)
- Includes https://github.com/zed-industries/zed/pull/18845
2024-10-08 14:25:29 -04:00
Peter TrippandMarshall Bowers 52287e2014 dart: Improve indentation (#18845)
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
2024-10-08 10:20:20 -04:00
Peter Tripp f4ce7b5a8e docs: Fix ollama available_models example (#18842) 2024-10-07 21:04:36 -04:00
Peter Tripp cc84197e01 ci: Make docs-only PRs only trigger docs-related tests (#18744)
This should speed up any docs-only PRs so that they don't have to run the full 5 minute battery of tests.

Release Notes:

- N/A
2024-10-06 10:28:39 -04:00
Peter Tripp bca8e34043 Fix alt-t context (#18783)
- Fix incorrect context introduced in https://github.com/zed-industries/zed/pull/18749/

Release Notes:

- N/A
2024-10-06 10:26:26 -04:00
Peter Tripp b12d06527c Fix option-t and option-shift-t in terminal (#18749) 2024-10-04 16:56:01 -04:00
Peter Tripp 0e3eca31cc docs: Linux XDG desktop secrets portals 2024-10-04 14:13:07 -04:00
Peter Tripp d5951ea0c5 Document File Scan Exclusions (#18738)
Release Notes:

- N/A
2024-10-04 12:07:43 -04:00
Peter Tripp 26b5c4de8f Rename proto language to Proto (#18559)
All the other languages are capitalized. Proto should be too.
2024-10-01 09:31:03 -04:00
Peter Tripp 8f73d46046 docs: Correct glibc requirements (#18554) 2024-09-30 21:07:10 -04:00
Peter Tripp 67cf0bcc48 Support More Linux (#18480)
- Add `script/build-docker`
- Add `script/install-cmake`
- Add `script/install-mold`
- Improve `script/linux` 
  - Add missing dependencies: `jq`, `git`, `tar`, `gzip` as required.
  - Add check for mold
  - Fix Redhat 8.x derivatives (RHEL, Centos, Almalinux, Rocky, Oracle, Amazon)
  - Fix perl libs to be Fedora only
  - Install the best `libstdc++` available on apt distros
  - ArchLinux: run `pacman -Syu` to update repos before installing. 
  - Should work on Raspbian (untested) 

This make it possible to test builds on other distros using docker:
```
./script/build-docker amazonlinux:2023
```
2024-09-30 17:46:21 -04:00
Peter Tripp 4572b10159 ci: Use BuildJet Ubuntu 20.04 runners for better glibc compatibility (#18442)
Use BuildJet Ubuntu 20.04 runners.
- Linux arm64 unchanged (glibc >= 2.35)
- Linux x64 glibc requirement becomes to >= 2.31 (from glibc >= 2.35).

Note: Ubuntu 20.04 repo cmake (3.16.3) is normally too old to build Zed, but `ubuntu-2004` [includes cmake
3.30.3](https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2004-Readme.md#tools).
2024-09-30 17:02:19 -04:00
Peter Tripp 1b0508fdca ci: Add script/determine-release-channel (#18476)
- Refactor duplicated inline script from ci.yml to
`script/determine-release-channel`
- Remove references to non-existent '-nightly' release tags

Release Notes:

- N/A
2024-09-30 16:17:21 -04:00
Peter Tripp cc28b836a5 ci: Move collab to Dockerfile-collab (#18515)
This makes it possible to have multiple Dockerfiles, each with their own
`.dockerignore`. Previously any docker builds would always include
anything inside `.dockerignore`. I believe this feature may require
`export DOCKER_BUILDKIT=1` but we use that in CI already.
2024-09-30 16:14:26 -04:00
Peter Tripp 4aa50d77c0 docs: Ollama api_url improvements (#18440) 2024-09-27 10:29:49 -04:00
Peter TrippandJoseph T. Lyons e419ce9cdb Add script to generate license dependencies as csv (#18411)
Co-authored-by: Joseph T. Lyons <JosephTLyons@gmail.com>
2024-09-26 16:21:20 -04:00
Peter Tripp 68e2be8ab5 Fix sending alt-enter in terminal (#18363) 2024-09-25 18:01:33 -04:00
Peter Tripp 1f482d4616 Ollama llama3.2 default context size (#18366)
Release Notes:

- Ollama: Added llama3.2 support
2024-09-25 18:01:12 -04:00
Peter Tripp 119948a4ae Detect txt files as Plain Text (#18334) 2024-09-25 07:41:35 -04:00
Peter Tripp dc23bb2f5f docs: Add example of TOML/taplo LSP settings (#18293) 2024-09-24 22:23:32 +00:00
Peter Tripp eefe9225ea lua: Bump to v0.1.0 (#18246)
This PR bumps the Lua extension to v0.1.0

- https://github.com/zed-industries/zed/pull/18199
- https://github.com/zed-industries/zed/pull/16955
2024-09-23 19:53:28 -04:00
Peter Tripp e05b42fb43 Add '?plain=1' to Permalinks on GitLab/GitHub for md files (#18241)
Improve our Permalinks to markdown files.
GitHub/GitLab supports the same URL syntax.
2024-09-23 15:45:00 -04:00
Peter Tripp 139e953481 docs: Switch proxy example to socks5h not socks5 (#18142)
Very rarely when you have a SOCKS proxy configured do you want local DNS.
`socks5` does local DNS. `socks5h` does remote DNS.
2024-09-20 11:52:57 -04:00
Peter Tripp 9b01d5398c Detect 'MD' extension as Markdown (#18135) 2024-09-20 09:23:11 -04:00
Peter Tripp 68f9ec1cf8 docs: Update glibc requirements for current binaries (#18101) 2024-09-19 17:22:11 -04:00
Peter Tripp dffce7176f docs: Update lsp.settings examples for yaml-language-server (#18081) 2024-09-19 12:00:13 -04:00
Peter Tripp f4d4689612 ci: Explicitly set cache-provider for swatinem/rust-cache (#18034)
- Switches the Cache Dependencies step (`swatinem/rust-cache`) of Linux
tests to use buildjet as `cache-provider`. Explicitly add 'github' (the
default cache provider) to other uses of `swatinem/rust-cache` for
consistency.

Release Notes:

- N/A
2024-09-18 18:05:30 -04:00
Peter Tripp 0b5179d07d Fix nightly linux x86 build (#18029)
Makes our nightly script for Linux x86 (broken) match the steps for Linux ARM (working).
2024-09-18 15:18:29 -04:00
Peter Tripp 37a5ecd450 Fix arm buildjet (#18023)
Run `apt-get update` before `apt-get install` on Linux. Hopefully will fix building on Linux Arm.
2024-09-18 14:28:00 -04:00
Peter Tripp 4561dd275f Move remaining self-hosted jobs to BuildJet (#18018) 2024-09-18 13:35:55 -04:00
Peter Tripp e8ccf9a901 Fix "view release notes" on dev/nightly builds (#17967) 2024-09-17 16:28:09 -04:00
Peter Tripp a942981542 Update typos-cli to v1.24.6. Add scripts/check-spelling. Fix typos (#17961) 2024-09-17 15:08:14 -04:00
Peter Tripp 8b08747861 docs: Mention how to open the Prompt Library (#17957) 2024-09-17 14:12:11 -04:00
Peter Tripp b4d2e73509 macos: Use ~/Library/Caches/Zed instead of ~/.cache/zed (#17949) 2024-09-17 13:51:11 -04:00
Peter Tripp 85f88d9aac Improve CSS highlighting for property_name (#17324) 2024-09-17 11:53:52 -04:00
Peter Tripp 190f3ecb7a Improve error message when docs need fixing with Prettier (#17907) 2024-09-17 10:06:33 -04:00
Peter Tripp cd57d5dca3 Try and fix tests (#17920)
Tests on main started breaking following
https://github.com/zed-industries/zed/commit/b63299e58dd5fa5a755a07afe6ef9b7beedab149
from:
- https://github.com/zed-industries/zed/pull/17734

First breakage:
https://github.com/zed-industries/zed/actions/runs/10894059586/job/30230118999
2024-09-16 23:16:08 -04:00
Peter Tripp 1c1921a959 Ollama: Specify keep_alive via settings (#17906) 2024-09-16 18:47:25 -04:00
Peter Tripp 1cb8372b7d Remove incorrect documentation for language-specific theme overrides (#17894)
Zed does not support this, the documentation was added in error. And if it were supported, the key would be `experimental.theme_overrides` not `theme_overrides`.
2024-09-16 12:41:33 -04:00
Peter Tripp 9f81cbf91b Regenerate terms.rtf fixing Privacy Policy link (#17877) 2024-09-16 12:17:41 -04:00
Peter Tripp a2e03701be Add perplexity extension readme (#17861)
Release Notes:

- N/A
2024-09-15 19:45:06 -04:00
722a0ced4c OpenAI o1-preview and o1-mini support (#17796)
Release Notes:

- Added support for OpenAI o1-mini and o1-preview models.

---------

Co-authored-by: Jason Mancuso <7891333+jvmncs@users.noreply.github.com>
Co-authored-by: Bennet <bennet@zed.dev>
2024-09-13 16:23:55 -04:00
Peter Tripp 3ba515b485 Add docs for search settings (#17662) 2024-09-10 16:12:45 -04:00
Peter Tripp e121e2ed62 Revert tokenizer for custom OpenAI models (#17660)
Fix for custom openai models tokenizer settings.
2024-09-10 15:38:27 -04:00
Peter Tripp 1ccd07940d assistant: Add display_name for OpenAI and Gemini (#17508) 2024-09-10 13:41:06 -04:00
Peter Tripp b2e185ca3a Ubuntu 22 (Linux arm runner) fixes (#17643)
Our GitHub Actions Linux ARM hosted runner was running Ubuntu 20 was EOL'd.

This gets builds working on the Ubuntu 22 Linux ARM runner which have spun to replace the EOL'd one. It pushes forward our Glibc requirement for Linux ARM users (was >= 2.29, now >= 2.35; sorry!) but also uses a newer version of clang/llvm (was 10, now 15; yay!).
2024-09-10 12:40:54 -04:00
Peter Tripp ba3acaca3e Minor improvements to release tooling (#17502)
- bump-version.sh: Push tag before branch; speeds up release action runs (built from tag).
- get-changes: Fetch GITHUB_ACCESS_TOKEN via `gh auth token` if env var unset.
2024-09-06 13:34:33 -04:00
Peter Tripp 7d8ccfcfb3 Add YAML LSP initialization_options (#17479)
Makes YAML language server configurable under `lsp.yaml-language-server`:
- Add support for `initialization_options` 
- Add support for custom `bin` specification
2024-09-06 11:42:36 -04:00