Omnikar
c95317a8ec
Merge branch 'master' into help-command
3 years ago
Ludwig Stecher
4429993842
Add `PageUp`, `PageDown`, `Ctrl-u`, `Ctrl-d`, `Home`, `End` keyboard shortcuts to file picker ( #1612 )
...
* Add `PageUp`, `PageDown`, `Ctrl-u`, `Ctrl-d`, `Home`, `End` keyboard shortcuts to file picker
* Refactor file picker paging logic
* change key mapping
* Add overlay component
* Use closure instead of margin to calculate size
* Don't wrap file picker in `Overlay` automatically
3 years ago
Kirawi
23907a063c
use PathBuf::to_string_lossy() instead of to_str() ( #1655 )
3 years ago
Blaž Hrastnik
bd549d8a20
Merge remote-tracking branch 'origin/master' into debug
3 years ago
Blaž Hrastnik
1bcb624ae6
Instant is more suitable than SystemTime for spinners
3 years ago
Matouš Dzivjak
fdb9a1677b
feat(editor): add config for search wrap_around ( #1516 )
...
* feat(editor): add config for search wrap_around
Fixes: https://github.com/helix-editor/helix/issues/1489
* Move search settings into separate config
* Disable linter
3 years ago
Gokul Soumya
bf773db451
Show infobox with register contents
3 years ago
Blaž Hrastnik
e7f5ec5561
fix: There is no such thing as markup.normal, use ui.text
3 years ago
Blaž Hrastnik
36b975c4ce
ui: menu: Don't allocate scrollbar space if options fit
3 years ago
Blaž Hrastnik
f10a06f4de
ui: Only render menu scrollbar if it doesn't fit
3 years ago
Blaž Hrastnik
094a0aa3f9
Render code actions as a menu, allow adding padding to popup
3 years ago
Blaž Hrastnik
f7f55143a1
Improve code action picker by displaying it inline
3 years ago
Blaž Hrastnik
62561e9d23
Stop collecting highlight_iter events then turning back into iter
3 years ago
Blaž Hrastnik
5aead46f4b
Remove some unnecessary clippy tags
3 years ago
Blaž Hrastnik
2a7ae963e1
Automatically commit changes to history if not in insert mode
...
Fixes #1500
3 years ago
CossonLeo
d49e5323f9
Use markup scopes for the Markdown component ( #1363 )
3 years ago
Benjamin
4044c70eb2
Fix picker won't scroll down when it hits the bottom #1544 ( #1567 )
3 years ago
Blaž Hrastnik
e2d2f19fd0
Merge pull request #1154 from sudormrfbin/cursor-shape-new
...
Change cursor shape on mode change
3 years ago
Blaž Hrastnik
add3be8528
Slicing micro-optimization
3 years ago
Blaž Hrastnik
11c3ba9350
Speed up ensure_next_boundary during render
...
This code:
let start = ensure_grapheme_boundary_next(text, text.byte_to_char(start));
let end = ensure_grapheme_boundary_next(text, text.byte_to_char(end));
Would convert byte to char index, but then internally immediately convert back
to byte index, operate on it, then convert it to char index.
This change reduces the amount of time spent in ensure_grapheme_boundary from
29% to 2%.
3 years ago
Blaž Hrastnik
53d881f172
Store theme scopes on the loader, this way theme isn't passed around
3 years ago
Blaž Hrastnik
6728e44490
syntax: Split parsing and highlighting
3 years ago
Skyler Hawthorne
96d4ca5f73
Dependabot/cargo/pulldown cmark 0.9.1 ( #1533 )
...
* build(deps): bump pulldown-cmark from 0.8.0 to 0.9.1
Bumps [pulldown-cmark](https://github.com/raphlinus/pulldown-cmark ) from 0.8.0 to 0.9.1.
- [Release notes](https://github.com/raphlinus/pulldown-cmark/releases )
- [Commits](https://github.com/raphlinus/pulldown-cmark/compare/v0.8.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: pulldown-cmark
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* cmark 0.9 fixes
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Blaž Hrastnik
e7eab95b94
Update to rust 1.58, fix a bunch of optional lints
3 years ago
Mathis Brossier
f5b0821860
Fix panics when resizing ( #1408 )
...
* Change buffer.get & buffer.get_mut to return Option, Implement Trait Index & IndexMut to panic
* Prevent FilePicker from drawing outside buffer (rust panics)
* apply suggestion
* add function in_bounds to avoid useless calculations
Co-authored-by: mathis <mathis.brossier@universite-paris-saclay.fr>
3 years ago
Gokul Soumya
449624965b
Merge branch 'master' into cursor-shape-new
3 years ago
Blaž Hrastnik
3e4f81547c
fix: Use std::path::MAIN_SEPARATOR to determine completion
...
Refs #1439
3 years ago
Blaž Hrastnik
bed9aced5f
Revert "Convert Windows style path separator in completers to Unix style ( #1389 )"
...
This reverts commit 49444f9c05
.
3 years ago
Omnikar
c039c9b6fd
Merge branch 'master' into help-command
3 years ago
Kirawi
93a948d889
switch redundant current! usage to doc! ( #1416 )
3 years ago
Omnikar
d18d745392
Implement `:help <keybind>` for non-branching key sequences
3 years ago
Omnikar
835d5152e5
Implement `:help topics` and document "Words vs. WORDS"
...
`:help topics` will open a fuzzy picker of files in
`runtime/help/topics` for non-command-related help topics.
3 years ago
Omnikar
3dcd18d621
Merge branch 'master' into help-command
3 years ago
ath3
49444f9c05
Convert Windows style path separator in completers to Unix style ( #1389 )
3 years ago
Omnikar
eda195e715
Support `:help` for typable commands
3 years ago
Omnikar
4c02ab0994
Move `runtime/help/commands/` to `runtime/help/static-commands/`
3 years ago
Omnikar
9bcc8a6e74
Merge branch 'master' into help-command
3 years ago
Tamo
a306a1052a
Update settings at runtime ( #798 )
...
* feat: Update settings at runtime
fix the clippy warning
* update the documentation
* use to_value instead of to_vec+from_value
* drop the equal
* remove an useless comment
* apply suggestion
3 years ago
Matouš Dzivjak
4b0b1a5657
feat(ui): file encoding in statusline ( #1355 )
...
* feat(ui): file encoding in statusline
Display file encoding in statusline if the encoding
isn't UTF-8.
* Re-export encoding_rs from core
From there it can be imported by other mods
that rely on it.
3 years ago
Gabriel Berto
5d7b5db8ab
Resolve completion item ( #1315 )
...
Co-authored-by: Gabriel Berto <gabriel.berto@pottencial.com.br>
3 years ago
BB
60f3225c7f
Truncate the start of file paths in the StatusLine ( #1351 )
...
* Truncate the start of file paths in the StatusLine
* cargo fmt
Co-authored-by: Bódi Balázs <97936@4ig.hu>
3 years ago
Omnikar
de6fb00ea0
Move command help files into `runtime/help/commands/`
3 years ago
Omnikar
46d9f49cf9
Merge branch 'master' into 'help-command'
3 years ago
Gokul Soumya
c0bbadcaaf
Manually draw all block cursors
3 years ago
Kirawi
02fc52f6d5
Apply recent nightly suggestions ( #1286 )
...
array iterators are now implicit
3 years ago
Gokul Soumya
d4fb1d0633
Merge branch 'master' into cursor-shape-new
3 years ago
Gokul Soumya
016640f4fb
Remove ui.cursor.primary and hashmap lookups
3 years ago
Midnight Exigent
e188926138
Fix panic when scrolling through completion popup ( #1260 )
...
* fix(completion_popup): Fixes #1256
* Update helix-term/src/ui/completion.rs
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
3 years ago
Blaž Hrastnik
730d3be201
Add ui.gutter to theme all gutters (i.e. set bg)
3 years ago
Omnikar
98ce2a301d
Load alt default theme if true color is not supported
...
* Move `runtime/themes/base16_default_terminal.toml` to
`base16_theme.toml` alongside `theme.toml`
* Use `terminfo` crate to detect whether the terminal supports true
color and, if the user has no theme configured and their terminal does
not support true color, load the alt default theme instead of the
normal default.
Remove `terminfo` dependency, use `COLORTERM` env instead
Prevent user from switching to an unsupported theme
Add `true-color-override` option
If the terminal is wrongly detected to not support true color,
`true-color-override = true` will override the detection.
Rename `true-color-override` to `true-color`
3 years ago