Nikita Revenco
db8ac503f4
refactor: rename several variables
2024-12-25 18:21:55 +00:00
Nikita Revenco
74b5705f65
perf: use a single iteration over the views of a document
2024-12-25 18:08:58 +00:00
Michael Davis
c262fe41ab
Consistently replace line-endings in paste/replace commands
...
Previously we replaced line-endings in pasted text to the document
line-ending for some values in paste commands. We missed the `repeat`
values in paste though and didn't do any replacement in the replace
command.
Along with this change I've refactored the replace command to avoid
intermediary collections. We previously eagerly collected the values
from the input register as a `Vec<String>` but we can avoid both of
those conversions and only allocate for the conversion to a `Tendril`.
We can also switch from `str::repeat` to a manual implementation to
avoid the intermediary conversion to a String - this avoids an extra
allocation in the common case (i.e. no count).
Fixes #12329
2024-12-25 11:38:44 -05:00
dependabot[bot]
a074129f9c
build(deps): bump the rust-dependencies group with 7 updates ( #12327 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-25 10:05:50 -06:00
Denys Rybalka
52a9cef7b0
Style directories in file browser
2024-12-23 23:59:28 +01:00
Denys Rybalka
0b01885059
Add file_browser for cwd and workspace root
2024-12-23 18:59:40 +01:00
Denys Rybalka
123378462b
Do not resolve symlinks in file browser
2024-12-23 18:59:40 +01:00
Denys Rybalka
006359c37f
Distinguish dirs visually in file_browser
2024-12-23 18:59:40 +01:00
Denys Rybalka
ff833b79e7
Open file browser in cwd when no buffer path
2024-12-23 18:59:40 +01:00
Denys Rybalka
268eac8c00
Open file browser in buffer's directory
2024-12-23 18:59:40 +01:00
Denys Rybalka
7902fc5631
Add parent folder to file browser
2024-12-23 18:59:40 +01:00
Denys Rybalka
02edda12e9
Pass directory content into picker directly
2024-12-23 18:59:40 +01:00
Denys Rybalka
bb1722a528
Implement opening of folders
2024-12-23 18:59:40 +01:00
Denys Rybalka
b1dcd96ab5
Add file browser
2024-12-23 18:59:39 +01:00
Nikita Revenco
d120a35740
feat: use padding for color swatches
2024-12-23 13:57:52 +00:00
Nikita Revenco
ca5c96b982
refactor: use let else statement
2024-12-23 13:54:12 +00:00
Nikita Revenco
cd9512cbce
refactor: use let else statement
2024-12-23 13:45:57 +00:00
Nikita Revenco
c7520c3550
refactor: rename variable
2024-12-23 13:43:10 +00:00
Nikita Revenco
6db63d4632
refactor: use let else statement
2024-12-23 13:41:28 +00:00
Michael Davis
4f63a46e14
minor: Remove redundant condition in shell pipe trimming
...
`output.ends_with('\n')` implies `!output.is_empty()`
Connects #11183
2024-12-22 09:42:37 -05:00
Nikita Revenco
ac4c017165
feat: autohelp for delete, replace and add surrounds ( #12262 )
2024-12-22 08:17:44 -06:00
Nikita Revenco
ba6e6dc3dd
Colors for items in the completion menu ( #12299 )
2024-12-20 10:16:15 -06:00
Nikita Revenco
253bdeffc7
perf: use with_capacity
since we know size of the vec
2024-12-20 15:58:49 +00:00
Nikita Revenco
857467f8da
feat: add space
2024-12-20 15:07:39 +00:00
Nikita Revenco
105be47e8a
refactor: remove unused imports
2024-12-20 14:57:41 +00:00
Nikita Revenco
3f8731f003
refactor: extract ColorSwatch into a separate struct
2024-12-20 14:46:10 +00:00
Nikita Revenco
0c50ce1432
refactor: move inlay hints computation function earlier
2024-12-20 14:35:55 +00:00
Nikita Revenco
0ce04ea455
feat: move inlay_hints computations earlier
2024-12-20 14:35:03 +00:00
Nikita Revenco
0b71472406
refactor: compute_lines function
2024-12-20 14:32:32 +00:00
Gabriel Dinner-David
cc71969884
propogate the colours
2024-12-20 03:34:49 -05:00
Gabriel Dinner-David
68c52a2435
hack the text_decorations to make this work
2024-12-19 23:46:17 -05:00
Nikita Revenco
1c3caf525e
feat: basic implementation
2024-12-19 21:09:05 +00:00
Nikita Revenco
355e381626
feat: use ui.text.directory
for path completion item if its a folder ( #12295 )
2024-12-19 14:36:54 -06:00
Eduardo Rittner Coelho
9e4da4b950
Show parser availability in --health [LANG] ( #12228 )
2024-12-18 11:21:58 -06:00
Nikita Revenco
91a5d407da
Allow theming directory prompt completions ( #12205 )
2024-12-17 21:13:42 -06:00
Christian Schneider
fcded6ce1e
Trim trailing colons from paths to allow copy/pasting git grep -n output ( #9963 )
...
Co-authored-by: Christian Schneider <schneider@search.ch>
2024-12-17 13:02:06 -06:00
Pascal Kuthe
1badd9e434
implement snippet tabstop support
2024-12-17 13:34:40 -05:00
Pascal Kuthe
66fb1e67c0
add fallback onNextKey
...
adds a variant of on_next_key callbacks that are only called when no other
mapping matches a key
2024-12-17 13:34:40 -05:00
Pascal Kuthe
609c29bf7e
add DocumentFocusLost event
2024-12-17 13:34:40 -05:00
Pascal Kuthe
5537e68b5e
add changes
and ghost_transaction
to DocumentDidChange events
2024-12-17 13:34:40 -05:00
dependabot[bot]
312c64f0c2
build(deps): bump the rust-dependencies group with 10 updates ( #12277 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-16 18:48:13 -06:00
Integral
250d9fa8fe
Avoid allocating the --help
message ( #12243 )
2024-12-16 11:16:48 -06:00
Aaalibaba
3b36cf1a15
Expand tildes in :read
command ( #12271 )
2024-12-16 11:10:35 -06:00
b03983e33a
Merge remote-tracking branch 'helix-pull/pull-diagnostics'
2024-12-14 20:52:28 +01:00
SofusA
1c36972c79
Merge branch 'helix-editor:master' into pull-diagnostics
2024-12-14 16:36:41 +01:00
Takumi Matsuura
e14c346ee7
Fix panic in kill_to_end_of_line
when handling multibyte characters ( #12237 )
2024-12-13 14:04:52 -06:00
130a3b61ab
Merge remote-tracking branch 'filebrowser/add-file-browser'
2024-12-11 21:04:28 +01:00
TornaxO7
89a7cde2f0
Fix continuing comment token for first line ( #12215 )
2024-12-10 13:24:34 -06:00
TornaxO7
5005c14e99
Add config option for continue commenting ( #12213 )
...
Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
2024-12-09 17:31:41 -06:00
Nikita Revenco
9bf3262152
refactor: evaluate enable_diagnostics first
2024-12-09 15:55:43 +00:00