Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | graphemes: Optimize nth_next/nth_prev operation. | Blaž Hrastnik | 2021-02-24 |
| | | | | | It's used a lot more than it used to in position calculation. Instead of throwing away state between boundary calculation, reuse it. | ||
* | Improve coords_at_pos & pos_at_coords, test with graphemes. | Blaž Hrastnik | 2021-02-24 |
| | |||
* | minor: Simplify some code. | Blaž Hrastnik | 2021-02-24 |
| | |||
* | commands: Implement expand_selection. | Blaž Hrastnik | 2021-02-22 |
| | |||
* | commands: add * as selection search. | Blaž Hrastnik | 2021-02-22 |
| | |||
* | Make some Document fields read-only. | Blaž Hrastnik | 2021-02-21 |
| | |||
* | indent: use_list indentation, fix indentation bug on open_below | Blaž Hrastnik | 2021-02-19 |
| | | | | | | use std::{ time::Duration // <- pressing `o` here would use }'s indent instead of prev line } | ||
* | commands: Wire up toggle comments as ctrl-c | Blaž Hrastnik | 2021-02-19 |
| | |||
* | more lints | Blaž Hrastnik | 2021-02-18 |
| | |||
* | core: Implement comment toggling module. | Blaž Hrastnik | 2021-02-18 |
| | |||
* | treewide: &RopeSlice -> RopeSlice. It's Copy so no reason to pass by ref | Blaž Hrastnik | 2021-02-18 |
| | |||
* | transaction: Also modify map_pos to work with insert|delete order. | Blaž Hrastnik | 2021-02-18 |
| | |||
* | minor changes | Blaž Hrastnik | 2021-02-17 |
| | |||
* | Update deps, switch tendril over to crates.io | Blaž Hrastnik | 2021-02-16 |
| | |||
* | 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 |
| | |||
* | fix test | Blaž Hrastnik | 2021-02-15 |
| | |||
* | Finally: Retain horizontal position when moving vertically. | Blaž Hrastnik | 2021-02-12 |
| | |||
* | simplify. | Blaž Hrastnik | 2021-02-05 |
| | |||
* | commands: Implement select_on_matches. | Blaž Hrastnik | 2021-01-22 |
| | |||
* | nix: include rust-src so rust-analyzer works correctly. | Blaž Hrastnik | 2021-01-19 |
| | |||
* | indent: Fix edge cases, refactor test. | Blaž Hrastnik | 2021-01-10 |
| | |||
* | Address clippy lints. | Blaž Hrastnik | 2021-01-08 |
| | |||
* | indent: refactor logic to be more correct. | Blaž Hrastnik | 2021-01-08 |
| | | | | | Thanks to atom-sane-indentation, nvim-treesitter and tree-sitter-indent.el for inspiration. | ||
* | wip | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Text change generation, RPC call handling. | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Introduce Selection::point. | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Simplify old_state handling. | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Fix undo/redo not updating the syntax tree. | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Refactor: Document type as a wrapper around barebones State. | Blaž Hrastnik | 2020-12-03 |
| | |||
* | state.version tracking | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Total mess but it works: diagnostic marking. | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Reroute LSP notification events into the main app event loop. | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Move theme from view to editor, support multiple views in editor. | Blaž Hrastnik | 2020-12-03 |
| | |||
* | Bugfix | Blaž Hrastnik | 2020-10-16 |
| | |||
* | added move left&right, delete char | Jan Hrastnik | 2020-10-16 |
| | |||
* | moved prompt command matching to prompt.rs | Jan Hrastnik | 2020-10-16 |
| | |||
* | modified editor.render() to prepare for command mode rendering | Jan Hrastnik | 2020-10-16 |
| | |||
* | wip | Blaž Hrastnik | 2020-10-15 |
| | |||
* | Auto-indent on enter based on tree-sitter scopes. | Blaž Hrastnik | 2020-10-14 |
| | |||
* | Share tab width definitions. | Blaž Hrastnik | 2020-10-14 |
| | |||
* | 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 |
| | |||
* | Indent draft, linewise paste | Blaž Hrastnik | 2020-10-13 |
| | |||
* | 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 |
| |