Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | add missing fn | Blaž Hrastnik | 2021-03-01 |
| | |||
* | ui: Rework command mode, implement file path completion. | Blaž Hrastnik | 2021-03-01 |
| | |||
* | clippy lints | Blaž Hrastnik | 2021-03-01 |
| | |||
* | commands: Implement X as extend line. | Blaž Hrastnik | 2021-03-01 |
| | |||
* | Bump deps. | Blaž Hrastnik | 2021-03-01 |
| | |||
* | Add a selection mode again. | Blaž Hrastnik | 2021-03-01 |
| | |||
* | ui: Make editor more resilient about being shrunk too small. | Blaž Hrastnik | 2021-03-01 |
| | |||
* | commands: Implement join_selections. | Blaž Hrastnik | 2021-02-26 |
| | |||
* | view: Reposition cursors on tree resize. | Blaž Hrastnik | 2021-02-26 |
| | |||
* | graphemes: fix nth_prev_grapheme_boundary calculation. | Blaž Hrastnik | 2021-02-26 |
| | |||
* | commands: = as range formatting (via lsp) | Blaž Hrastnik | 2021-02-26 |
| | |||
* | lsp: Hover documentation draft. | Blaž Hrastnik | 2021-02-25 |
| | |||
* | minor, fix clippy lint | Blaž Hrastnik | 2021-02-25 |
| | |||
* | commands: Implement count for a few more commands. | Blaž Hrastnik | 2021-02-25 |
| | |||
* | commands: refactor open_below to support count. | Blaž Hrastnik | 2021-02-25 |
| | |||
* | 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 |
| | |||
* | syntax: Drop the rayon dependency for threadpool. | Blaž Hrastnik | 2021-02-24 |
| | | | | We just need a small concurrent threadpool for compilation. | ||
* | flake: Packaging definition. | Blaž Hrastnik | 2021-02-22 |
| | |||
* | open_below: drop redundant collect/into_iter. | Blaž Hrastnik | 2021-02-22 |
| | |||
* | commands: Implement expand_selection. | Blaž Hrastnik | 2021-02-22 |
| | |||
* | commands: add * as selection search. | Blaž Hrastnik | 2021-02-22 |
| | |||
* | lsp: Disable snippet_support until we implement it. | Blaž Hrastnik | 2021-02-22 |
| | |||
* | lsp: Handle responses being returned after request timed out. | Blaž Hrastnik | 2021-02-22 |
| | |||
* | minor | Blaž Hrastnik | 2021-02-22 |
| | |||
* | fix clippy lint | Blaž Hrastnik | 2021-02-22 |
| | |||
* | completion: Use the language server bound to the document. | Blaž Hrastnik | 2021-02-22 |
| | |||
* | Make some Document fields read-only. | Blaž Hrastnik | 2021-02-21 |
| | |||
* | commands: Simplify some code, only calling cx.doc() once. | Blaž Hrastnik | 2021-02-21 |
| | |||
* | Allow closing individual views. | Blaž Hrastnik | 2021-02-19 |
| | |||
* | Remove unused method. | Blaž Hrastnik | 2021-02-19 |
| | |||
* | Always store the log file under home dir. | Blaž Hrastnik | 2021-02-19 |
| | |||
* | 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 |
| | |||
* | view: Disable tree.fullscreen for now to appease clippy. | 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 |
| | |||
* | Bump jsonrpc-core, lsp-types. | Blaž Hrastnik | 2021-02-18 |
| | |||
* | transaction: Also modify map_pos to work with insert|delete order. | Blaž Hrastnik | 2021-02-18 |
| | |||
* | lsp: edit events change ranges need to affect each other. | Blaž Hrastnik | 2021-02-17 |
| | |||
* | minor changes | Blaž Hrastnik | 2021-02-17 |
| | |||
* | ui: Redo selection rendering. | Blaž Hrastnik | 2021-02-17 |
| | |||
* | commands: tie in a simple :w for now. | Blaž Hrastnik | 2021-02-16 |
| | |||
* | Increase the log level in LSP and log server errors. | Blaž Hrastnik | 2021-02-16 |
| | |||
* | Update deps, switch tendril over to crates.io | Blaž Hrastnik | 2021-02-16 |
| | |||
* | Send updates to the lsp on undo/redo. | Blaž Hrastnik | 2021-02-16 |
| | |||
* | lsp: Test changeset_to_changes. | 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 } } } |