Commit graph

  • dfb1ae2d33 Rust: Highlight 'crate' as a keyword. Blaž Hrastnik 2021-04-13 17:06:35 +09:00
  • 2a1f10d1b5 Center the new position on screen after doing a goto jump. Blaž Hrastnik 2021-04-13 16:56:03 +09:00
  • 95dd55ba94 Fix overlap calculation. Blaž Hrastnik 2021-04-10 12:01:49 +09:00
  • 7493d19098 Re-introduce clearing with bg color, seems the TUI issue was fixed. Blaž Hrastnik 2021-04-10 00:22:14 +09:00
  • 392c4a9c02 Keep primary selection as space+space. Blaž Hrastnik 2021-04-10 00:21:54 +09:00
  • 73f4abbb37 N as extend with search (for now, N should be search_prev). Blaž Hrastnik 2021-04-10 00:21:13 +09:00
  • 35b4fe4cd0 Fix range.overlap() Blaž Hrastnik 2021-04-10 00:20:12 +09:00
  • 5253f40477 nix: Switch to stable rust. Blaž Hrastnik 2021-04-09 19:07:33 +09:00
  • 978f5114d8 Horizontal scrolling! It only took a year to get around to it. Blaž Hrastnik 2021-04-09 18:48:56 +09:00
  • d692390d10 Render current line:col. Blaž Hrastnik 2021-04-09 17:56:31 +09:00
  • 865429643b <space>w for save, <space>c for close current split. Blaž Hrastnik 2021-04-09 17:46:08 +09:00
  • 4e31d1521b Add tree-sitter queries. Blaž Hrastnik 2021-04-09 17:42:49 +09:00
  • c1e5733b02 Remove the path specifier. Blaž Hrastnik 2021-04-09 17:42:37 +09:00
  • 61872de6c0 queries: rust: highlight number constants correctly. Blaž Hrastnik 2021-04-08 23:25:54 +09:00
  • 71c06c11cb Import tree sitter queries. Blaž Hrastnik 2021-04-08 23:18:25 +09:00
  • 52da68e49a Render a separator between vertical splits. Blaž Hrastnik 2021-04-08 16:54:55 +09:00
  • 9f318a8529 Fix an issue with closing nested splits. Blaž Hrastnik 2021-04-08 16:53:57 +09:00
  • 9ca2909c80 Loop around the end on regex searches. Blaž Hrastnik 2021-04-08 15:58:20 +09:00
  • 8b33ba2284 Correct the naming issue with vsplit and hsplit being swapped. Blaž Hrastnik 2021-04-08 15:52:04 +09:00
  • 58c5fec592 minor: This comment was resolved. Blaž Hrastnik 2021-04-08 14:25:04 +09:00
  • b1290ee609 Update book css styling. Blaž Hrastnik 2021-04-07 23:56:56 +09:00
  • bc4e54c0c4 Load config files from ~/.config/helix, fallback to defaults. Blaž Hrastnik 2021-04-07 23:56:20 +09:00
  • f0d49d3ca4 hack: make queries load relative to source dir for now. Blaž Hrastnik 2021-04-07 18:05:59 +09:00
  • 12961d657f Implement P as paste_before. Blaž Hrastnik 2021-04-07 17:03:29 +09:00
  • 31e6bcbeb4 Clippy lint: replace with default -> take Blaž Hrastnik 2021-04-07 16:58:23 +09:00
  • e8298a398c Fix selection rendering, it would be off by 1 if reverse. Blaž Hrastnik 2021-04-07 16:57:58 +09:00
  • 63e602bda6 Fix issues with "enum A {|}" <Enter> indent calculation. Blaž Hrastnik 2021-04-07 16:39:13 +09:00
  • 4103349be1 Update flake.lock Blaž Hrastnik 2021-04-07 16:38:17 +09:00
  • 82ff996662 Yank selection when deleting. Blaž Hrastnik 2021-04-07 15:40:15 +09:00
  • 89f81be31b Add yet more language definitions. Blaž Hrastnik 2021-04-07 14:04:13 +09:00
  • fb792c5bca Add a python language definition. Blaž Hrastnik 2021-04-07 13:51:09 +09:00
  • 3bab640491 Add c++, js, css, html language definitions. Blaž Hrastnik 2021-04-07 13:40:20 +09:00
  • 463f58dfda Fix clamping scroll in certain cases. Blaž Hrastnik 2021-04-07 13:38:50 +09:00
  • 5aed1f3c00 lsp: Gracefully fail if binary doesn't exist. Blaž Hrastnik 2021-04-07 13:38:24 +09:00
  • 9dfd6f6bbc clippy lint Blaž Hrastnik 2021-04-06 20:00:35 +09:00
  • 0e9ecccfc1 clippy: Drop or-patterns for now because they're not on stable rust yet Blaž Hrastnik 2021-04-06 19:45:14 +09:00
  • 91462af546 Allow starting hx without a file. A new blank file will be created. Blaž Hrastnik 2021-04-06 19:02:22 +09:00
  • f00cb15137 core: Improve changeset composition behavior. Blaž Hrastnik 2021-04-06 19:01:48 +09:00
  • cf7b19d711 Always update selection: Empty transactions can still change selections. Blaž Hrastnik 2021-04-06 17:29:39 +09:00
  • 015fd2ffa2 pairs: Use token utf8 lengths instead of 1. Blaž Hrastnik 2021-04-06 17:28:56 +09:00
  • 7c44443994 Handle c-n, c-p, etc. autocompletion events. Blaž Hrastnik 2021-04-06 15:34:33 +09:00
  • 95d0bba81a ui: Improve completion state handling. Blaž Hrastnik 2021-04-05 18:23:37 +09:00
  • 59a0fc7b59 w, b, e: Match kakoune's behavior in selecting by default. Blaž Hrastnik 2021-04-05 16:35:04 +09:00
  • 16350399ac Add book/ (mdbook based user guide) Blaž Hrastnik 2021-04-05 15:18:43 +09:00
  • 7d677d32ae Update deps. Blaž Hrastnik 2021-04-01 18:31:27 +09:00
  • 7865ca7ef0 Update flake. Blaž Hrastnik 2021-04-01 18:31:07 +09:00
  • ab1d11088f Import some lsp utilities. Blaž Hrastnik 2021-04-01 11:37:18 +09:00
  • 77cab5a715 Merge open_above and open_below definitions. Blaž Hrastnik 2021-04-01 11:36:59 +09:00
  • cc058ad78f Simplify some code. Blaž Hrastnik 2021-04-01 11:01:11 +09:00
  • 0dbd5b61ef Simplify code by providin cx.current() = (view, doc). Blaž Hrastnik 2021-04-01 10:39:46 +09:00
  • ceea5eacd8 clippy lint Blaž Hrastnik 2021-03-31 23:42:16 +09:00
  • 15c9a33ebc Drop doc.state. Use doc.text + doc.selections. Blaž Hrastnik 2021-03-31 23:23:13 +09:00
  • 7dfd7f51a0 Implement space-v as view same file in split. Blaž Hrastnik 2021-03-31 18:00:53 +09:00
  • 6c4093c946 Weave through view_id references so that views into one file have independent selects. Blaž Hrastnik 2021-03-31 17:17:01 +09:00
  • 9eaef6e333 Fully drop State references. Blaž Hrastnik 2021-03-31 15:45:18 +09:00
  • dfc17becd5 Move pickers under my leader key mode (space). Blaž Hrastnik 2021-03-30 18:38:26 +09:00
  • e166da2ab0 fix: A (append to line) was inserting before last char. Blaž Hrastnik 2021-03-30 18:27:45 +09:00
  • 1b5316ea74 Track document modified state. Blaž Hrastnik 2021-03-30 18:19:48 +09:00
  • 88bb7a1f38 Repeat insert command (.). Blaž Hrastnik 2021-03-30 18:19:27 +09:00
  • ebfd67ac6a Use StreamExt::select_next_some to avoid infinitely spinning on empty stream. Blaž Hrastnik 2021-03-30 16:39:24 +09:00
  • e833d65b77 Teach file picker how to find the project root (.git). Blaž Hrastnik 2021-03-29 17:04:12 +09:00
  • 8098e9bdcd Allow setting a status message. Blaž Hrastnik 2021-03-29 16:47:02 +09:00
  • 742b3a709f Store intra-files jumps (goto) on the jumplist. Blaž Hrastnik 2021-03-29 16:32:42 +09:00
  • 0083a6c325 commands: Simplify _goto. Blaž Hrastnik 2021-03-29 15:44:03 +09:00
  • ea407ccdba Implement <n>g as goto line n. Blaž Hrastnik 2021-03-29 15:29:03 +09:00
  • 626e49448c Update TODO. Blaž Hrastnik 2021-03-29 15:28:57 +09:00
  • c1f2a14453 view: document.rs cleanup Blaž Hrastnik 2021-03-29 15:22:43 +09:00
  • a323155b99 Faster dev builds on OSX if using Rust 1.51. Blaž Hrastnik 2021-03-29 15:22:07 +09:00
  • 5c2d2fda21 Wire up opening in splits via pickers. Blaž Hrastnik 2021-03-29 15:21:48 +09:00
  • aefafc25cd Replace Mode::Goto with just using on_next_key. Blaž Hrastnik 2021-03-29 15:04:29 +09:00
  • 1d96cbfbd2 Transaction: Add a changes_iter() that can convert back to a list of Changes Blaž Hrastnik 2021-03-29 14:56:00 +09:00
  • a74ff6bc03 Transaction: need to consume insert | delete properly. Blaž Hrastnik 2021-03-29 14:55:35 +09:00
  • b52474cf66 clippy lint Blaž Hrastnik 2021-03-27 12:14:58 +09:00
  • a24c3fff54 Filter the completion menu based on text entered. Blaž Hrastnik 2021-03-27 12:06:40 +09:00
  • 2a3910c1d9 wip: Async async. Delay response handling with a callback. Blaž Hrastnik 2021-03-26 16:02:13 +09:00
  • ad3325db8e minor: Remove a few unwraps. Blaž Hrastnik 2021-03-26 11:02:32 +09:00
  • cf0e191a6a Clippy lint Blaž Hrastnik 2021-03-25 17:45:52 +09:00
  • 8b28bf2533 Fix broken test. Blaž Hrastnik 2021-03-25 16:53:32 +09:00
  • a65395d94b Load theme from toml file. Blaž Hrastnik 2021-03-25 16:42:14 +09:00
  • e3c4edae32 Add the machinery to load syntax config from TOML. Blaž Hrastnik 2021-03-25 15:26:25 +09:00
  • a900159a86 Update deps. Blaž Hrastnik 2021-03-24 18:17:47 +09:00
  • 9a36d2c2a8 wip: Hooks & trigger characters for completion/signature_help. Blaž Hrastnik 2021-03-24 18:17:00 +09:00
  • 025d63bc30 Update TODO Blaž Hrastnik 2021-03-24 18:16:15 +09:00
  • 350081a3af Fix crash if pressing enter when nothing selected in completion. Blaž Hrastnik 2021-03-24 18:15:42 +09:00
  • 8657c57cf2 Trivial jumplist implementation. Blaž Hrastnik 2021-03-24 18:01:26 +09:00
  • 4b176caded Reset first_line when changing files. Blaž Hrastnik 2021-03-24 16:56:29 +09:00
  • 915fd9ebaf Restore buffer_picker. Blaž Hrastnik 2021-03-24 16:26:53 +09:00
  • 376232c543 add some TODOs Blaž Hrastnik 2021-03-24 15:00:41 +09:00
  • 06aca7691c clippy lint Blaž Hrastnik 2021-03-24 14:52:13 +09:00
  • 8a0ab447ec editor.open can now either replace the current view or open in a split. Blaž Hrastnik 2021-03-24 14:28:26 +09:00
  • b24cdd1295 Derive a separate ViewId type. Blaž Hrastnik 2021-03-24 14:03:20 +09:00
  • 8328fe926d Drop refcell use, make view simply ref doc.id. Blaž Hrastnik 2021-03-23 17:47:40 +09:00
  • 3f9a94fd43 ui: markdown: remove trailing blank line. Blaž Hrastnik 2021-03-22 23:23:51 +09:00
  • d0530fb839 Fix a scrolling crash where it would jump past the end of the buffer. Blaž Hrastnik 2021-03-22 18:06:52 +09:00
  • 73c92a0bc1 Implement m / match_brackets (using tree sitter). Blaž Hrastnik 2021-03-22 17:58:49 +09:00
  • bd607b4cbd Provide a capacity on Selection::new's normalize. Blaž Hrastnik 2021-03-22 14:50:08 +09:00
  • df306fe031 Implement open_above (O). Blaž Hrastnik 2021-03-20 00:16:34 +09:00
  • 42d07b0621 Implement replace command (r<key>). Blaž Hrastnik 2021-03-19 18:01:08 +09:00
  • bf95ee27aa Store Document on the Editor type, make View reference it. Blaž Hrastnik 2021-03-16 18:27:57 +09:00
  • 5e6716c89c Add tab_width and indent_unit config. Blaž Hrastnik 2021-03-22 13:47:39 +09:00