* 1. Terminal file jump: change the judgment point to Ctrl + left mouse click.
2. Optimize some code according to clippy.
* 1. Fix the issue where the actual Point are incorrect due to the scroll bar.
* 1. Adjust the actual number of lines and characters.
* Initial sketch of floem-editor
* Very basic phantom
* Basic wrapping + layout styling
* More phantom, more styling, more view code
* Line height, more drawing code
* More drawing logic
* Move to separate crate
* Add example; fixes
* Partial reimpl of Lapce's Document
* Downcasting Document; add basic EditorData impl
* Progress on implementing run_command
* More progress on run_command
* Editor container view
* Hook up modal and smart tab
* Receive char
* Add clicking support
* Add Ctrl+{Home,End}
* Remove usage of buffer in Cursor::yank
* Bunch of editor -> new editor functions impl
* Scroll commands and other bits
* Make buildable
* Cursor blink; remove vestiges of sticky header
* Impl compute screen lines for new doc
* Replace existing modules with floem-editor versions
* Shift over to using floem-editor (broken)
* Remove uses of original doc
* Rename doc2 -> doc
* Don't force Rc to allow swapping out Editor signals
* Add Styling::id; various minor changes
* Fix updating Lines
* Hook up styling
* Deduplicate many pieces of paint logic
* Make indentation on newline configurable
* Impl scroll commands
* Add clippy changes from non-rebased commit
* Simplify+improve view update logic; fix style sharing bug
* Stop returning SyntaxEdit on edits
This was needed so that we can avoid depending on tree-sitter when extracting the buffer + editing logic out to floem-editor
This actually makes it cheaper in the cases where we don't need the edits.
However we are factoring the delta twice now. It would be better to not do that.
* Remove Syntax usage in Buffer
* Move syntax/util.rs, because syntax won't be in floem-editor-core
* Move all editor logic out of lapce-core and into floem-editor-core
* Remove lapce deps from floem-editor
* Fix warnings
* Fix various floem-editor TODOs
* Make cursor blink at the correct times
* Move last_movement onto floem-editor
* Rename core Editor -> Action to avoid name collisions
* Avoid crash where line is out of bounds while loading file
* Return iterative ropes with deltas
* Put off some todos; Reimpl some missing select cmds
* Dispose of editor on cleanup
* Move floem-editor to floem; various changes from that
* Update to use latest floem
* Update floem; Pass cache rev
* fix: Display untracked files on a fresh git repository.
Issue #2779.
Known issue: files without history are displaying text-less diff.
* fix: Display untracked files on a fresh git repository.
Issue #2779.
Known issue: files without history are displaying text-less diff.
* fix: clippy warnings
* fix: clippy errors
---------
Co-authored-by: Alexandre Leblanc <a.leblanc@kitai.dev>
* Line-wrap impl
* Fix paint normal selection around linewrapping and phantom text
* Fix linewise selection
* Maybe fix scroll bug
* Fix breakpoint positioning
* Clippy fixes
* Docs + Fixes + Cleanup
* Make phantom text before_col more indirect
This will be useful once we stop aggressively computing the full PhantomText whenever it is accessed.
* Make over-monomorphizations over TextLayoutProvider less likely
* Fix bench
* Block cursors were rendered with a fixed width, rather than the width of the current character, when after an inlay hint and using a variable width font.
* In visual normal mode, the selection highlight didn't extend past the end of the current line when the cursor was past the end of the line.
* In visual normal mode, if there was an inlay hint after the end of the current line and the cursor was past the end of the line, the cursor was rendered after the inlay hint.
* In visual normal and block modes, when selecting backwards to the first character after an inlay hint, the selection highlight extended leftward of the cursor to include the inlay hint.
* When there were multiple cursors on the same line, only one was rendered.
* The selection highlight for visual block mode excluded the rightmost column when selecting right and up or left and down.
* When in visual block mode, when the cursor was to the left of the anchor column of the selection and past the end of the line, the cursor wasn't rendered.
* Reimplement PartialOrd in terms of Ord for some types to fix non_canonical_partial_ord_impl (previously called incorrect_partial_ord_impl_on_ord_type) clippy lints
* Fix potential incorrect order or panic when comparing FileNodeViewData objects containing invalid unicode