eaec04632a1b3ee973a80251353018059f624e96
t operand not working correctly when cursor is on tag (#9899)
Fix #8994 and #9844 Release notes: * Fixed the `t` object in Vim mode not working correctly when cursor was on a tag. #9844 and #8994 This mr fixes the above two problems, for #9844, because our previous logic is to only think that the minimum html tag containing the current cursor is qualified, but the approach of nvim is to get the tag after the current cursor first, followed by the tag around the current cursor, so I modified the corresponding condition For #8994, the situation is a bit more complicated, in our previous implementation, we could only get the range of the object by a `cursor position`, but there are two possible cases for the html tag: When the current cursor length is 1, nvim will return the first tag after the current cursor, as described above When the current cursor length is greater than 1, nvim will return just the smallest tag that can cover the current selection So we may need to pass the current selection to the inside of the method, and the point alone is not enough to support us in calculating these conditions
Zed
Welcome to Zed, a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Installation
You can download Zed today for macOS (v10.15+).
Support for additional platforms is on our roadmap:
- Linux (tracking issue)
- Windows (tracking issue)
- Web (tracking issue)
For macOS users, you can also install Zed using Homebrew:
brew install zed
Alternatively, to install the Preview release:
brew tap homebrew/cask-versions
brew install zed-preview
Developing Zed
- Building Zed for macOS
- Building Zed for Linux
- Building Zed for Windows
- Running Collaboration Locally
Contributing
See CONTRIBUTING.md for ways you can contribute to Zed.
Licensing
License information for third party dependencies must be correctly provided for CI to pass.
We use cargo-about to automatically comply with open source licenses. If CI is failing, check the following:
- Is it showing a
no license specifiederror for a crate you've created? If so, addpublish = falseunder[package]in your crate's Cargo.toml. - Is the error
failed to satisfy license requirementsfor a dependency? If so, first determine what license the project has and whether this system is sufficient to comply with this license's requirements. If you're unsure, ask a lawyer. Once you've verified that this system is acceptable add the license's SPDX identifier to theacceptedarray inscript/licenses/zed-licenses.toml. - Is
cargo-aboutunable to find the license for a dependency? If so, add a clarification field at the end ofscript/licenses/zed-licenses.toml, as specified in the cargo-about book.
Description
GPUI – Community Edition maintained by Oak Team
https://gpui-ce.github.io/
258 MiB
Languages
Rust
95.6%
WGSL
1.2%
Metal
1.1%
HLSL
1.1%
Python
0.6%
Other
0.3%