-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename Package to CodeEditSourceEditor (#223)
<!--- IMPORTANT: If this PR addresses multiple unrelated issues, it will be closed until separated. --> ### Description - Changes the package name to CodeEditSourceEditor. - Uses the new CodeEditTextView repository instead of containing two targets for the source editor and text view. - Updates all repo names, fixes all headers (thanks @0xWDG for pointing that out in #211). - Marks the `CodeEditTextView` struct as deprecated in favor of `CodeEditSourceEditor`. - Fixes a small bug with cursor position that left out column info. ### Checklist <!--- Add things that are not yet implemented above --> - [x] I read and understood the [contributing guide](https://github.com/CodeEditApp/CodeEdit/blob/main/CONTRIBUTING.md) as well as the [code of conduct](https://github.com/CodeEditApp/CodeEdit/blob/main/CODE_OF_CONDUCT.md) - [x] The issues this PR addresses are related to each other - [x] My changes generate no new warnings - [x] My code builds and runs on my machine - [x] My changes are all related to the related issue above - [x] I documented my code
- Loading branch information
1 parent
40d8e88
commit e08a43e
Showing
113 changed files
with
159 additions
and
6,319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
<p align="center"> | ||
<img src="https://github.com/CodeEditApp/CodeEditTextView/assets/806104/b304b004-3bfc-413b-9db6-76d2af122acc" height="128"> | ||
<h1 align="center">CodeEditTextView</h1> | ||
<img src="https://github.com/CodeEditApp/CodeEditTextView/blob/main/.github/[email protected]?raw=true" height="128"> | ||
<h1 align="center">CodeEditSourceEditor</h1> | ||
</p> | ||
|
||
|
||
<p align="center"> | ||
<a aria-label="Follow CodeEdit on Twitter" href="https://twitter.com/CodeEditApp" target="_blank"> | ||
<img alt="" src="https://img.shields.io/badge/Follow%[email protected]?style=for-the-badge&logo=Twitter"> | ||
</a> | ||
<a aria-label="Join the community on Discord" href="https://discord.gg/vChUXVf9Em" target="_blank"> | ||
<img alt="" src="https://img.shields.io/badge/Join%20the%20community-black.svg?style=for-the-badge&logo=Discord"> | ||
</a> | ||
<a aria-label="Read the Documentation" href="https://codeeditapp.github.io/CodeEditTextView/documentation/codeedittextview/" target="_blank"> | ||
<a aria-label="Read the Documentation" href="https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor/" target="_blank"> | ||
<img alt="" src="https://img.shields.io/badge/Documentation-black.svg?style=for-the-badge&logo=readthedocs&logoColor=blue"> | ||
</a> | ||
</p> | ||
|
@@ -19,24 +20,24 @@ An Xcode-inspired code editor view written in Swift powered by tree-sitter for [ | |
|
||
<img width="1012" alt="social-cover-textview" src="https://user-images.githubusercontent.com/806104/194083584-91555dce-ad4c-4066-922e-1eab889134be.png"> | ||
|
||
![GitHub release](https://img.shields.io/github/v/release/CodeEditApp/CodeEditTextView?color=orange&label=latest%20release&sort=semver&style=flat-square) | ||
![Github Tests](https://img.shields.io/github/actions/workflow/status/CodeEditApp/CodeEditTextView/tests.yml?branch=main&label=tests&style=flat-square) | ||
![Documentation](https://img.shields.io/github/actions/workflow/status/CodeEditApp/CodeEditTextView/build-documentation.yml?branch=main&label=docs&style=flat-square) | ||
![GitHub Repo stars](https://img.shields.io/github/stars/CodeEditApp/CodeEditTextView?style=flat-square) | ||
![GitHub forks](https://img.shields.io/github/forks/CodeEditApp/CodeEditTextView?style=flat-square) | ||
![GitHub release](https://img.shields.io/github/v/release/CodeEditApp/CodeEditSourceEditor?color=orange&label=latest%20release&sort=semver&style=flat-square) | ||
![Github Tests](https://img.shields.io/github/actions/workflow/status/CodeEditApp/CodeEditSourceEditor/tests.yml?branch=main&label=tests&style=flat-square) | ||
![Documentation](https://img.shields.io/github/actions/workflow/status/CodeEditApp/CodeEditSourceEditor/build-documentation.yml?branch=main&label=docs&style=flat-square) | ||
![GitHub Repo stars](https://img.shields.io/github/stars/CodeEditApp/CodeEditSourceEditor?style=flat-square) | ||
![GitHub forks](https://img.shields.io/github/forks/CodeEditApp/CodeEditSourceEditor?style=flat-square) | ||
[![Discord Badge](https://img.shields.io/discord/951544472238444645?color=5865F2&label=Discord&logo=discord&logoColor=white&style=flat-square)](https://discord.gg/vChUXVf9Em) | ||
|
||
| :warning: | **CodeEditTextView is currently in development and it is not ready for production use.** <br> Please check back later for updates on this project. Contributors are welcome as we build out the features mentioned above! | | ||
| :warning: | **CodeEditSourceEditor is currently in development and it is not ready for production use.** <br> Please check back later for updates on this project. Contributors are welcome as we build out the features mentioned above! | | ||
| - |:-| | ||
|
||
## Documentation | ||
|
||
This package is fully documented [here](https://codeeditapp.github.io/CodeEditTextView/documentation/codeedittextview/). | ||
This package is fully documented [here](https://codeeditapp.github.io/CodeEditSourceEditor/documentation/codeeditsourceeditor/). | ||
|
||
## Usage | ||
|
||
```swift | ||
import CodeEditTextView | ||
import CodeEditSourceEditor | ||
|
||
struct ContentView: View { | ||
|
||
|
@@ -48,7 +49,7 @@ struct ContentView: View { | |
@State var editorOverscroll = 0.3 | ||
|
||
var body: some View { | ||
CodeEditTextView( | ||
CodeEditSourceEditor( | ||
$text, | ||
language: .swift, | ||
theme: $theme, | ||
|
@@ -87,6 +88,12 @@ Licensed under the [MIT license](https://github.com/CodeEditApp/CodeEdit/blob/ma | |
<p> CodeEdit </p> | ||
</a> | ||
</td> | ||
<td align="center"> | ||
<a href="https://github.com/CodeEditApp/CodeEditTextView"> | ||
<img src="https://github.com/CodeEditApp/CodeEditTextView/blob/main/.github/[email protected]?raw=true" height="128"> | ||
</a> | ||
<p><a href="https://github.com/CodeEditApp/CodeEditTextView">CodeEditTextView</a></p> | ||
</td> | ||
<td align="center"> | ||
<a href="https://github.com/CodeEditApp/CodeEditKit"> | ||
<img src="https://user-images.githubusercontent.com/806104/193877051-c60d255d-0b6a-408c-bb21-6fabc5e0e60c.png" height="128"> | ||
|
@@ -107,4 +114,3 @@ Licensed under the [MIT license](https://github.com/CodeEditApp/CodeEdit/blob/ma | |
</td> | ||
</tr> | ||
</table> | ||
|
37 changes: 0 additions & 37 deletions
37
Sources/CodeEditInputView/Documentation.docc/Documentation.md
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
Sources/CodeEditInputView/Extensions/NSRange+isEmpty.swift
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
Sources/CodeEditInputView/Extensions/NSTextStorage+getLine.swift
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.