Commit Graph

2830 Commits (e79005ebabbb051049eef1cb435b264f35c854ee)

Author SHA1 Message Date
Marco Kurzynski f377c1cff8
added a selected-register! function for the plugin system for use with register->value etc. (#41) 2025-07-09 07:10:10 -07:00
meepleek 46abe80bdd
Add more fns to update selection ranges (#38)
* feat: add push-range & set-primary-index fns

* feat: add remove-range fn

---------

Co-authored-by: meepleek <ergocrab@gmail.com>
2025-07-09 07:05:45 -07:00
Matt Paras 8218db65e8 fix windows paths for registering additional search paths 2025-07-08 18:26:14 -07:00
Tom Schafer 7a8db551a3
add key-modifier-super function (#46) 2025-07-07 19:34:02 -07:00
Matt Paras 557aa9cc19 add warning and error 2025-06-21 14:44:15 -07:00
Matt Paras ef7ea0f519 auto convert values to strings when logging 2025-06-21 14:36:14 -07:00
Matt Paras 3ee0e81d67 special case strings when setting the status to eliminate the quotes 2025-06-21 14:34:50 -07:00
Matt Paras ef244de365 don't set the status as void when the return value is void 2025-06-21 13:36:56 -07:00
Matt Paras 45480fc6be add range and selection conversions 2025-06-21 13:09:35 -07:00
Matt Paras 1393d1452b set default name to be the id 2025-06-21 09:11:37 -07:00
Matt Paras b2c28b8c37 bump steel version 2025-06-21 08:26:57 -07:00
Matt Paras d4958e4a71 expose paste events in components 2025-06-20 08:14:21 -07:00
Matt Paras a35388a9e1 add return value for the inlay hints removal 2025-06-15 22:14:19 -07:00
Matt Paras ec38807642 add removing inlay hints by id to remove all invalidated inlay hints 2025-06-15 22:13:19 -07:00
Matt Paras 629bb38be6 adjust inlay hint api to remove just based on character index and not the completion as well 2025-06-15 17:24:21 -07:00
Nik Revenco f582c8b7bd
feat: add API for selection and ranges (#33)
* feat: add API for selection and ranges

* fix: use `no_context!` macro for declaring these functions

* chore: rename accessors to structs
2025-06-15 09:42:58 -07:00
Matt Paras 1301c93672 add rope docs 2025-06-14 15:24:17 -07:00
Matt Paras 7e0c4387d7 remove some newlines 2025-06-14 12:41:55 -07:00
Matt Paras c1b5ff2305 address warnings 2025-06-14 12:31:30 -07:00
Matt Paras 2fe135cf7d set up integration to listen to lsp notifications that aren't handled by helix 2025-06-14 09:44:08 -07:00
Matt Paras 1eecadb050 merge from master 2025-06-14 07:22:13 -07:00
Matt Paras b6b02c8c22 add docs for ropes 2025-06-13 23:34:51 -07:00
Matt Paras bf2247808c clean up doc fetching 2025-06-13 15:31:52 -07:00
yuri 1315b7e2b1
Feat: inlay hint length limit (#13742) 2025-06-13 11:09:21 -05:00
Jonas Köhnen fba1a6188a
Picker: Detect language before rendering preview (#13761) 2025-06-13 09:29:26 -05:00
Matt Paras cae10b8558 create init and helix files if they don't exist 2025-06-10 06:07:42 -07:00
Michael Davis 633c5fbf0f
Update language loader before refreshing theme in `:config-reload`
Since locals are handled during parsing instead of highlighting with
tree-house, we need to call `helix_core::syntax::Loader::set_scopes`
before parsing any documents. During `:config-reload` we previously
reloaded the `Loader` and re-parsed documents and _then_ updated the
theme. So documents were parsed before `Loader::set_scopes` was called
on the new loader.

With this change the `refresh_language_config` helper is inlined into
`refresh_config`. Updating the `Editor`'s `ArcSwap` of the loader is
done before updating the theme so that the `load_configured_theme`
helper can call `set_scopes` with on the new loader.
2025-06-08 15:05:22 -04:00
Axlefublr 637274c4d4
Add `rotate_selections_{first,last}` commands (#13615) 2025-06-06 15:08:41 -05:00
Matt Paras 8eae56f548 merge latest from master 2025-06-05 22:54:31 -07:00
Matt Paras f40100a0cd dont lock the engine when grabbing the docs 2025-06-05 21:35:27 -07:00
Matt Paras 6f4b41c9e8 keep component functions alive for the duration of the life cycle, skip rendering if the function is actually a bool 2025-06-05 16:17:27 -07:00
Ryan Mehri 6c43dc4962
fix: trim whitespace up to the last selection on insert_newline (#13673) 2025-06-03 08:45:19 -05:00
Matt Paras ba1fdac4e2 use inferred steel lsp home location 2025-06-02 18:01:15 -07:00
Matt Paras fe2ab3565f fix theme api 2025-06-01 16:18:23 -07:00
Matt Paras 3149754e85 bake in a high level theme api 2025-06-01 16:11:36 -07:00
Matt Paras bc01dda33a check if a document has been modified 2025-05-31 10:07:13 -07:00
Michael Davis 67f1fe20c3
Fix command line completion replacement for quoted items
With a directory with spaces in the name (for example
`mkdir -p 'Temp/Abc Def'`), completing `Temp/Ab` would create a
completion item `'Temp/AbAbc Def'`. Now it correctly completes
`'Temp/Abc Def'`
2025-05-31 09:56:54 -04:00
Matt Paras 9f581f802b update steel, add new time primitives 2025-05-30 17:23:20 -07:00
Matt Paras c7273d754c add document saved hook 2025-05-29 21:34:47 -07:00
Erasin Wang 733ebcdaeb
Add file indentation style for statusline (#13632) 2025-05-29 08:20:22 -05:00
Matt Paras 977fc9e786 add dynamic option config 2025-05-28 06:38:00 -07:00
Matt Paras c1da27bbab add missing bufferline option 2025-05-28 06:10:57 -07:00
Matt Paras b3d55c0ce9 clean up 2025-05-27 20:28:50 -07:00
Matt Paras 863cf60422 speed up the keymap api 2025-05-27 20:27:21 -07:00
CalebLarsen 2bd7452fe0
Make signature_help more like hover, fix overflow and lack of scrolling in signature_help (#13566)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-05-27 10:18:12 -05:00
CalebLarsen 7dcddf98c6
Append changes to history on jumps (#13619)
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2025-05-27 09:44:47 -05:00
piotrkwarcinski 85e83d9d9a Fix call to exp-picker callback 2025-05-26 22:14:55 +02:00
Axlefublr 2fbe7fc5b5
fix(doc): missing capitalization of `goto_{next,prev}_tabstop` (#13616) 2025-05-26 08:48:32 -05:00
Matt Paras fda1bbf742 add macros for language configuration and lsp configuration 2025-05-24 21:48:36 -07:00
Michael Davis 702a961517
Fix `try_restore_indent` on non-LF documents
On Windows for example the behavior of this function typically diverges
from the usual behavior on Unix. Instead of checking that the inserted
string starts with `'\n'` (untrue for for CRLF line endings) we need to
check that the first grapheme cluster in the string is a line ending.
(All line endings are single grapheme clusters.)
2025-05-24 11:42:29 -04:00