A-Walrus
1378b911b6
Fix some typos ( #2978 )
2 years ago
Gokul Soumya
8e8367eea6
Refactor Margin for fine grained control ( #2727 )
2 years ago
Frojdholm
402f285ba5
Improve markdown list rendering ( #2687 )
...
* Cleanup old commented code
* Implement line breaks in markdown rendering
* Implement markdown nested, numbered and multiparagraph lists
2 years ago
Frojdholm
e0532771cc
Do not add extra line breaks in markdown lists ( #2689 )
2 years ago
Gokul Soumya
bde0307c87
Allow highlighting additional spans in md renderer
3 years ago
Gokul Soumya
970a111aa3
Extract markdown code block highlighting function
3 years ago
Gokul Soumya
74a9dd51ff
Fallback to broader scope if theme scope not found ( #1714 )
3 years ago
Blaž Hrastnik
24f86017a6
fix: ui: Markdown popups stopped taking vertical padding into account
...
Fix #1688
3 years ago
Blaž Hrastnik
1ca6ba03ca
Simplify some code
3 years ago
Alex
d5ba0b5162
Allow separate styles for markup headings ( #1618 )
...
* update markdown highlighting to use separate heading themes
* remove markdown theme scopes in ui
3 years ago
Blaž Hrastnik
2af04325d8
fix: Allow multi-line prompt documentation
3 years ago
Blaž Hrastnik
e7f5ec5561
fix: There is no such thing as markup.normal, use ui.text
3 years ago
CossonLeo
d49e5323f9
Use markup scopes for the Markdown component ( #1363 )
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
3307f44ce2
ui: popup: Don't allow scrolling past the end of content
3 years ago
Blaž Hrastnik
c71c9f69e2
TODO
3 years ago
Skyler Hawthorne
05c6cb1d0b
Solarized theme: fix popup colors, adjust menu ( #1124 )
...
* fix popup colors, adjust menu
* fix hardcoded horizontal rule color
3 years ago
Blaž Hrastnik
e9dc658de4
Remove unused imports
3 years ago
Blaž Hrastnik
9dcccb45bb
ui: Stop hardcoding markdown doc colors
3 years ago
Blaž Hrastnik
dd0b15e1f1
syntax: Properly handle injection-regex for language injections
3 years ago
CossonLeo
011f9aa47f
Optimize completion doc position. ( #691 )
...
* optimize completion doc's render
* optimize completion doc's render
* optimize completion doc position
* cargo fmt
* fix panic
* use saturating_sub
* fixs
* fix clippy
* limit completion doc max width 120
3 years ago
Gokul Soumya
f9375f449c
Refactor new Rect construction ( #575 )
...
* Refactor new Rect construction
Introduces methods that can be chained to construct new Rects
out of pre-existing ones
* Clamp x and y to edges in Rect chop methods
* Rename Rect clipping functions
3 years ago
Gokul Soumya
d84f8b5fde
Show file preview in split pane in fuzzy finder ( #534 )
...
* Add preview pane for fuzzy finder
* Fix picker preview lag by caching
* Add picker preview for document symbols
* Cache picker preview per document instead of view
* Use line instead of range for preview doc
* Add picker preview for buffer picker
* Fix render bug and refactor picker
* Refactor picker preview rendering
* Split picker and preview and compose
The current selected item is cloned on every event, which is
undesirable
* Refactor out clones in previewed picker
* Retrieve doc from editor if possible in filepicker
* Disable syntax highlight for picker preview
Files already loaded in memory have syntax highlighting enabled
* Ignore directory symlinks in file picker
* Cleanup unnecessary pubs and derives
* Remove unnecessary highlight from file picker
* Reorganize buffer rendering
* Use normal picker for code actions
* Remove unnecessary generics and trait impls
* Remove prepare_for_render and make render mutable
* Skip picker preview if screen small, less padding
3 years ago
Nathan Vegdahl
efa3389b6a
Fix unused variable, parameter, and `mut` warnings in helix-term.
3 years ago
Nathan Vegdahl
702a0491db
Remove #[allow(unused)] from helix-term, and fix unused imports.
...
Lots of other warning still left. Will address in subsequent commits.
3 years ago
Keith Simmons
4418e17547
reverse the dependency between helix-tui and helix-view ( #366 )
...
* reverse the dependency between helix-tui and helix-view by moving a fiew types to view
* fix tests
* clippy and format fixes
Co-authored-by: Keith Simmons <keithsim@microsoft.com>
3 years ago
Nathan Vegdahl
e686c3e462
Merge branch 'master' of github.com:helix-editor/helix into line_ending_detection
...
Rebasing was making me manually fix conflicts on every commit, so
merging instead.
3 years ago
Nathan Vegdahl
4efd6713c5
Work on moving code over to LineEnding instead of assuming '\n'.
...
Also some general cleanup and some minor fixes along the way.
3 years ago
wojciechkepka
980e602352
Make completion window move to top when cursor is below half
3 years ago
wojciechkepka
ce97a2f05f
Add ability to change theme on editor
3 years ago
Blaž Hrastnik
87d0617f3b
Completion: Format docs tabs & highlight in the doc's native language
4 years ago
Blaž Hrastnik
094203c74e
Update deps, introduce the new tree-sitter lifetimes
4 years ago
Blaž Hrastnik
f0712479cb
Define text color (mostly) in theme.toml.
4 years ago
Blaž Hrastnik
31e6bcbeb4
Clippy lint: replace with default -> take
4 years ago
Blaž Hrastnik
e3c4edae32
Add the machinery to load syntax config from TOML.
...
It's embedded into the binary at build time for now, but it's progress.
4 years ago
Blaž Hrastnik
3f9a94fd43
ui: markdown: remove trailing blank line.
4 years ago
Blaž Hrastnik
cbcacb1063
Merge some imports.
4 years ago
Blaž Hrastnik
d8599f3a14
ui: Syntax highlight code inside markdown popups.
4 years ago
Blaž Hrastnik
80eca5c32f
ui: Use parsed markdown contents to determine sizing.
4 years ago
Blaž Hrastnik
f9b9bc04cc
ui: Account for padding on markdown renderer.
4 years ago
Blaž Hrastnik
8fe4590666
ui: popup: scroll documentation popups with c-u/c-d.
4 years ago
Blaž Hrastnik
5ea610c41d
ui: Move terminal into compositor, redo required_size hints.
4 years ago
Blaž Hrastnik
1d42b95915
ui: wip: Markdown doc renderer.
4 years ago