Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Make Transaction::change only rely on the rope. | Blaž Hrastnik | 2021-03-18 |
| | |||
* | Cleanup: use doc.selection() instead of doc.state.selection(). | Blaž Hrastnik | 2021-03-14 |
| | |||
* | transaction: Also modify map_pos to work with insert|delete order. | Blaž Hrastnik | 2021-02-18 |
| | |||
* | minor changes | Blaž Hrastnik | 2021-02-17 |
| | |||
* | Optimize Changeset::is_empty() | Blaž Hrastnik | 2021-02-16 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Checked the ASM output for these three options: pub enum Operation { /// Move cursor by n characters. Retain(usize), /// Delete n characters. Delete(usize), /// Insert text at position. Insert(String), } pub struct A { changes: Vec<Operation>, len: usize, } impl A { pub fn is_empty1(&self) -> bool { match self.changes.as_slice() { [] => true, [Operation::Retain(_)] => true, _ => false, } } /// `true` when the set is empty. pub fn is_empty2(&self) -> bool { let len = self.changes.len(); len == 0 || ( len == 1 && self.changes[0] == Operation::Retain(self.len) ) } pub fn is_empty3(&self) -> bool { match self.changes.as_slice() { [] | [Operation::Retain(_)] => true, _ => false } } } | ||
* | Since insert preceedes deletes, follow that ordering in Transaction::changes. | Blaž Hrastnik | 2021-02-16 |
| | | | | Produces the same output but will take the happy path. | ||
* | transaction: Use builder methods to generate compact changesets. | Blaž Hrastnik | 2021-02-16 |
| | |||
* | transaction: Merge consecutive inserts on compose. | Blaž Hrastnik | 2021-02-15 |
| | |||
* | Address clippy lints. | Blaž Hrastnik | 2021-01-08 |
| | |||
* | Text change generation, RPC call handling. | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Refactor: Document type as a wrapper around barebones State. | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Validate compose len after applying a is same as before applying b. | Blaž Hrastnik | 2020-10-14 |
| | |||
* | Fix overlapping (insert | delete) compose | Blaž Hrastnik | 2020-10-14 |
| | |||
* | Fix compose not merging certain changesets correctly. | Blaž Hrastnik | 2020-10-14 |
| | |||
* | Don't try to compose zero-width deletes. | Blaž Hrastnik | 2020-10-13 |
| | |||
* | Simplify changeset tracking. | Blaž Hrastnik | 2020-10-13 |
| | |||
* | Cleanup | Blaž Hrastnik | 2020-10-13 |
| | |||
* | Simple yank/paste registers. | Blaž Hrastnik | 2020-10-13 |
| | |||
* | Fix changeset composition, lengths don't have to match. | Blaž Hrastnik | 2020-10-13 |
| | |||
* | Hacky undo/redo integration. | Blaž Hrastnik | 2020-10-13 |
| | |||
* | Undo tree draft. | Blaž Hrastnik | 2020-10-13 |
| | | | | | We keep a tree of transactions. This allows for persistent undo by simply serializing the changesets. | ||
* | Fix transaction.invert()/.apply() using byte counts instead of char counts. | Blaž Hrastnik | 2020-10-04 |
| | |||
* | Implement Transaction::invert. | Blaž Hrastnik | 2020-10-02 |
| | |||
* | Split selection on regex, fix InputEdit generation. | Blaž Hrastnik | 2020-09-28 |
| | |||
* | Extend selection commands. | Blaž Hrastnik | 2020-09-28 |
| | |||
* | Command needs access to view information for certain changes. | Blaž Hrastnik | 2020-09-19 |
| | |||
* | More work on the UI. | Blaž Hrastnik | 2020-09-19 |
| | |||
* | Incremental parsing: rough draft. | Blaž Hrastnik | 2020-09-17 |
| | |||
* | Simplify some more code. | Blaž Hrastnik | 2020-09-13 |
| | |||
* | Avoid collect() by accepting iterators into Transaction::change. | Blaž Hrastnik | 2020-09-13 |
| | |||
* | Add 'A', 'I' commands. | Blaž Hrastnik | 2020-09-13 |
| | |||
* | Add 'o' command. | Blaž Hrastnik | 2020-09-13 |
| | |||
* | Change -> Operation, Change2 -> Change | Blaž Hrastnik | 2020-09-13 |
| | |||
* | Abstract Transaction::change from change_by_selection. | Blaž Hrastnik | 2020-09-13 |
| | |||
* | Abstract Transaction::change_by_selection, working del/backspace. | Blaž Hrastnik | 2020-09-13 |
| | |||
* | Expand transaction API. | Blaž Hrastnik | 2020-09-07 |
| | |||
* | cleanup: Make Buffer just a part of State. | Blaž Hrastnik | 2020-09-07 |
| | |||
* | Work on insert mode. | Blaž Hrastnik | 2020-09-07 |
| | |||
* | Allow unused code for the time being. | Blaž Hrastnik | 2020-06-02 |
| | |||
* | Start swapping from termwiz to crossterm + async. | Blaž Hrastnik | 2020-05-28 |
| | |||
* | Selection mapping over changesets. | Blaž Hrastnik | 2020-05-28 |
| | |||
* | changeset: Introduce map_pos. | Blaž Hrastnik | 2020-05-28 |
| | |||
* | address clippy warnings | Blaž Hrastnik | 2020-05-28 |
| | |||
* | OT: changeset: Implement compose and apply. | Blaž Hrastnik | 2020-05-26 |
| | |||
* | Implement a new core based on CodeMirror. | Blaž Hrastnik | 2020-05-25 |