Skip to content

Conversation

@underthestars-zhy
Copy link

Description

  1. Preference Tab View
  2. New Tabs

Releated Issue

Checklist (for drafts):

  • I read and understood the contributing guide as well as the code of conduct
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • Review requested

Screenshots (if appropriate):

CleanShot 2022-03-23 at 19 14 39@2x
CleanShot 2022-03-23 at 19 14 36@2x

xinix909 pushed a commit to xinix909/CodeTransfer that referenced this pull request Sep 7, 2024
### Description

Bumps both `STTextView` and `TextFormation` to their latest versions.
This version of `TextFormation` changes how whitespaces are handled by
filters, so there were some small modifications that needed to be made
to accommodate. This also slightly adjusts the `DeleteWhitespaceFilter`
to match other editor's functionality.

`DeleteWhitespaceFilter` now deletes only the leading whitespace, and
only to the nearest column, instead of just a number of spaces. It will
also jump to the rightmost side of the whitespace when deleting.

The other half of this PR is an implementation for undo/redo. This adds
a `CEUndoManager` (with the prefix b/c AppKit declares that type) class
that implements an undo/redo stack and operation grouping. It provides
methods for performing undo/redo operations, registering text mutations
from the editor, grouping operations, and clearing the undo stack. The
class also automatically groups certain mutations. See the class
documentation for more info there.

### Related Issues

* Closes CodeEditApp#201 
* Closes CodeEditApp#203 

### Checklist

- [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

### Screenshots


https://github.com/CodeEditApp/CodeEditTextView/assets/35942988/35c64ed6-590d-493a-8f91-d918fef363a5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant