Commit graph

  • 698e4ddea4 clippy: Factor out a Completion type. Blaž Hrastnik 2021-03-22 13:16:56 +09:00
  • cbcacb1063 Merge some imports. Blaž Hrastnik 2021-03-22 12:40:07 +09:00
  • c4792efead clippy lints Blaž Hrastnik 2021-03-22 12:26:04 +09:00
  • 798dbd27c5 Selection: fail early if new() is called with no ranges. Blaž Hrastnik 2021-03-22 12:21:33 +09:00
  • 71999cce43 Implement auto-pairs behavior for open and close. Blaž Hrastnik 2021-03-22 12:18:48 +09:00
  • a32806b490 Improve completion: src/<tab> will now correctly complete to src/main.rs Blaž Hrastnik 2021-03-21 14:13:49 +09:00
  • f29f01858d Implement iter() and len() directly on Selection. Blaž Hrastnik 2021-03-19 11:14:13 +09:00
  • e9bd9e72c3 Pos conversions always operate on whole documents. Blaž Hrastnik 2021-03-18 15:23:42 +09:00
  • 175d38c88c toggle_comments needs to append to history. Blaž Hrastnik 2021-03-18 15:20:28 +09:00
  • c331721565 Finish hiding doc.state / State as an implementation detail. Blaž Hrastnik 2021-03-18 15:07:02 +09:00
  • 8ba1e15d29 Expose doc.syntax() via accessor. Blaž Hrastnik 2021-03-18 14:48:42 +09:00
  • 2b64f49f2c Document::new should just take a rope. Blaž Hrastnik 2021-03-18 14:44:32 +09:00
  • e261f3c50d Expose doc.language_server as an accessor. Blaž Hrastnik 2021-03-18 14:40:22 +09:00
  • 5237084d98 Don't publicly re-export once_cell in lsp. Blaž Hrastnik 2021-03-18 14:29:38 +09:00
  • 59e6024186 Remove State from a few more signatures. Blaž Hrastnik 2021-03-18 13:45:57 +09:00
  • dbcc099f48 Move things out of state.rs. Blaž Hrastnik 2021-03-18 13:39:34 +09:00
  • 0f6624491b Fix completion panicking if text changed before insert completed. Blaž Hrastnik 2021-03-18 13:28:42 +09:00
  • 8eaf9a432d Make Transaction::change only rely on the rope. Blaž Hrastnik 2021-03-18 13:28:27 +09:00
  • 51c15da3c3 Hold a reference to executor on the Editor type. Blaž Hrastnik 2021-03-16 23:14:51 +09:00
  • 8dc0b18e35
    Merge pull request #8 from helix-editor/gd Blaž Hrastnik 2021-03-16 23:09:04 +09:00
  • e3ec5e31ec Fix goto code before merging. Blaž Hrastnik 2021-03-16 23:05:43 +09:00
  • eadad13efa preparing for gd merge Jan Hrastnik 2021-03-16 13:55:12 +01:00
  • 4e461bea2f editor.open now checks if view already exists Jan Hrastnik 2021-03-15 21:12:41 +01:00
  • 0828d1fdea picker wip Jan Hrastnik 2021-03-14 22:24:46 +01:00
  • 15f142bc4b lsp: Use into_iter->map->collect instead of manual loop. Blaž Hrastnik 2021-03-11 13:19:53 +09:00
  • 857763c52e term: Remove stray files. Blaž Hrastnik 2021-03-11 13:16:50 +09:00
  • cf71625d4e term: Simplify goto code, address lints. Blaž Hrastnik 2021-03-11 13:15:25 +09:00
  • 4240f757c0 lsp: Fix compilation errors. Blaž Hrastnik 2021-03-11 13:01:28 +09:00
  • a5f9080a9c goto_request wip Jan Hrastnik 2021-03-10 23:35:12 +01:00
  • 3869d7713e added goto functions in helix-term Jan Hrastnik 2021-03-07 19:41:49 +01:00
  • b738ae1bc7 more goto lsp functions Jan Hrastnik 2021-03-02 23:57:18 +01:00
  • 294791dffd added picker for gd, but yet to test it. also need to load appropriate file when definition isnt in same file Jan Hrastnik 2021-02-28 00:39:13 +01:00
  • 0322c28e6b gd now works for singular definition Jan Hrastnik 2021-02-23 23:56:06 +01:00
  • 18ec8adc7f Simplify code a bit. Blaž Hrastnik 2021-02-22 12:12:56 +09:00
  • 8a68a04340 gotodefiniton now runs but doesnt return anything Jan Hrastnik 2021-02-21 23:43:28 +01:00
  • d3ddc8dea6 wip Jan Hrastnik 2021-02-21 23:22:38 +01:00
  • d8599f3a14 ui: Syntax highlight code inside markdown popups. Blaž Hrastnik 2021-03-16 16:38:09 +09:00
  • 54a7e893b7 lsp: Wire up didClose notification on editor.close. Blaž Hrastnik 2021-03-16 16:20:43 +09:00
  • eca2a73ad0 lsp: Pass through language_id on didOpenTextDocument. Blaž Hrastnik 2021-03-16 16:13:41 +09:00
  • 143cfe13e0 minor: TODO comment cleanup Blaž Hrastnik 2021-03-16 15:30:29 +09:00
  • 4f77d80e74 Clippy lint Blaž Hrastnik 2021-03-16 13:51:22 +09:00
  • 081e0ae8ae syntax: highlight_iter always returns Ok() Blaž Hrastnik 2021-03-16 13:49:22 +09:00
  • 71f899cb5b syntax: Highlight using ropes, avoiding dumping whole doc to string. Blaž Hrastnik 2021-03-16 13:45:32 +09:00
  • 80eca5c32f ui: Use parsed markdown contents to determine sizing. Blaž Hrastnik 2021-03-15 17:55:13 +09:00
  • f9b9bc04cc ui: Account for padding on markdown renderer. Blaž Hrastnik 2021-03-15 17:23:42 +09:00
  • eea339545c Add command for keeping only the primary selection. Blaž Hrastnik 2021-03-15 17:13:36 +09:00
  • dd91090a1a Implement keep_selections (filter selections on regex). Blaž Hrastnik 2021-03-15 17:09:18 +09:00
  • 872d770753 ui: Restrain diagnostic sidebar w/h based on available area. Blaž Hrastnik 2021-03-15 16:25:04 +09:00
  • 87e3cd3df2 ui: Render diagnostic errors in sideline. Blaž Hrastnik 2021-03-15 16:19:31 +09:00
  • 1abf2953cd Bump deps. Blaž Hrastnik 2021-03-15 16:19:04 +09:00
  • 9c55b3e306 state.rs cleanup Blaž Hrastnik 2021-03-15 14:40:15 +09:00
  • bb87b08fc9 Configure language servers via LanguageConfiguration. Blaž Hrastnik 2021-03-14 17:13:55 +09:00
  • 1cf887dea9 Cleanup: use doc.selection() instead of doc.state.selection(). Blaž Hrastnik 2021-03-14 10:04:03 +09:00
  • 3445abf88e syntax: Hide the TSParser internally, borrowing when needed. Blaž Hrastnik 2021-03-13 11:06:02 +09:00
  • 6cbfb050e2 lsp: Emit didSave notifications. Blaž Hrastnik 2021-03-12 16:20:56 +09:00
  • b7dd7310c4 syntax: Reuse parser instances. highlight_iter() no longer needs &mut. Blaž Hrastnik 2021-03-12 14:46:23 +09:00
  • 9dcfe25e4a Use diagnostic.severity to distinguish between error colors. Blaž Hrastnik 2021-03-11 16:31:49 +09:00
  • c7ccb432ef pass clippy lint Blaž Hrastnik 2021-03-11 16:15:54 +09:00
  • 4acf301022 Implement the f/t/F/T find/till family of commands. Blaž Hrastnik 2021-03-11 16:14:52 +09:00
  • 62c991230f find-till (f) prototype, on_next_key mode implementation. Blaž Hrastnik 2021-03-11 10:44:38 +09:00
  • 90f9cd6d62 search: draft f/t Blaž Hrastnik 2021-03-10 17:50:46 +09:00
  • 8fe4590666 ui: popup: scroll documentation popups with c-u/c-d. Blaž Hrastnik 2021-03-08 17:32:13 +09:00
  • ddcf5156c0 ui: menu: Adjust scroll via required_size area caching. Blaž Hrastnik 2021-03-08 17:13:45 +09:00
  • 5ea610c41d ui: Move terminal into compositor, redo required_size hints. Blaž Hrastnik 2021-03-08 17:00:32 +09:00
  • 05aa0d6991 minor: dead code Blaž Hrastnik 2021-03-05 17:55:06 +09:00
  • 1d42b95915 ui: wip: Markdown doc renderer. Blaž Hrastnik 2021-03-05 16:07:46 +09:00
  • a5c4314940 commands: Improve scroll functions. Blaž Hrastnik 2021-03-04 16:13:26 +09:00
  • 565fb94afe commands: Correct another case that always used primary(). Blaž Hrastnik 2021-03-04 14:12:19 +09:00
  • 7e4830215e commands: w/b/e need to apply to all selections. Blaž Hrastnik 2021-03-04 14:07:35 +09:00
  • dd6db43013 ui: Adjust selection colors. Blaž Hrastnik 2021-03-03 17:56:22 +09:00
  • 4c6611f96b commands: Stop select_regex from breaking when no matches. Blaž Hrastnik 2021-03-03 17:55:56 +09:00
  • a21d96e729 ui: Scrollable popup menu, with scrollbar indicator. Blaž Hrastnik 2021-03-03 17:28:50 +09:00
  • 513effd972 ui: unsafe theme_ref is no longer needed. Blaž Hrastnik 2021-03-03 12:35:57 +09:00
  • 6238be230f Update tree-sitter grammars. Blaž Hrastnik 2021-03-02 18:32:03 +09:00
  • 8b2cbb53fd minor: fix hover key Blaž Hrastnik 2021-03-02 18:25:47 +09:00
  • bd0f6c1dfc clippy lint Blaž Hrastnik 2021-03-02 18:25:40 +09:00
  • 0b85c16be9 ui: Share popup code with menu. Blaž Hrastnik 2021-03-02 18:24:24 +09:00
  • 11c4e0b053 ui: Calculate popup rendering and sizing. Blaž Hrastnik 2021-03-02 17:58:15 +09:00
  • 8f4ff4c646 editor: We still want to be able to calculate cursor pos. Blaž Hrastnik 2021-03-02 15:44:09 +09:00
  • 32f9a2d1d6 add missing fn Blaž Hrastnik 2021-03-01 18:19:08 +09:00
  • 857bce0e30 ui: Rework command mode, implement file path completion. Blaž Hrastnik 2021-03-01 18:02:31 +09:00
  • a16c6e2585 clippy lints Blaž Hrastnik 2021-03-01 17:37:31 +09:00
  • 2088c45075 commands: Implement X as extend line. Blaž Hrastnik 2021-03-01 14:41:02 +09:00
  • 4102992c46 Bump deps. Blaž Hrastnik 2021-03-01 14:33:02 +09:00
  • ec4dd0a176 Add a selection mode again. Blaž Hrastnik 2021-03-01 14:31:34 +09:00
  • 00808afe3c ui: Make editor more resilient about being shrunk too small. Blaž Hrastnik 2021-03-01 14:23:10 +09:00
  • 2c9b02039b commands: Implement join_selections. Blaž Hrastnik 2021-02-26 17:21:59 +09:00
  • 6336c1da20 view: Reposition cursors on tree resize. Blaž Hrastnik 2021-02-26 15:53:19 +09:00
  • ad58286dc7 graphemes: fix nth_prev_grapheme_boundary calculation. Blaž Hrastnik 2021-02-26 15:53:01 +09:00
  • 1ae7c43391 commands: = as range formatting (via lsp) Blaž Hrastnik 2021-02-26 15:52:43 +09:00
  • 7162632eb7 lsp: Hover documentation draft. Blaž Hrastnik 2021-02-25 18:07:47 +09:00
  • 8289bd1cb0 minor, fix clippy lint Blaž Hrastnik 2021-02-25 16:52:32 +09:00
  • 01907b3497 commands: Implement count for a few more commands. Blaž Hrastnik 2021-02-24 17:29:28 +09:00
  • 5fa1ba6b1c commands: refactor open_below to support count. Blaž Hrastnik 2021-02-25 16:47:37 +09:00
  • 6bd16a7320 graphemes: Optimize nth_next/nth_prev operation. Blaž Hrastnik 2021-02-24 17:12:44 +09:00
  • f118e7580f Improve coords_at_pos & pos_at_coords, test with graphemes. Blaž Hrastnik 2021-02-24 16:08:17 +09:00
  • 87a6d4e736 minor: Simplify some code. Blaž Hrastnik 2021-02-24 16:07:39 +09:00
  • c6456d04b9 syntax: Drop the rayon dependency for threadpool. Blaž Hrastnik 2021-02-24 13:13:49 +09:00
  • 41c0d5828f flake: Packaging definition. Blaž Hrastnik 2021-02-22 17:02:59 +09:00
  • def949e509 open_below: drop redundant collect/into_iter. Blaž Hrastnik 2021-02-22 17:01:57 +09:00