Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling Bufferline #8362

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Added ui.bufferline.marker key to style the underflow and overflow …
…markers
  • Loading branch information
CedricMeu committed Jun 21, 2024
commit fab4fa7894067ea975c65b966d175331f2c610a3
3 changes: 2 additions & 1 deletion book/src/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,9 @@ These scopes are used for theming the editor interface:
| `ui.statusline.select` | Statusline mode during select mode ([only if `editor.color-modes` is enabled][editor-section]) |
| `ui.statusline.separator` | Separator character in statusline |
| `ui.bufferline` | Style for the buffer line |
| `ui.bufferline.active` | Style for the active buffer in buffer line |
| `ui.bufferline.active` | Style for the active buffer in buffer line |
| `ui.bufferline.background` | Style for bufferline background |
| `ui.bufferline.marker` | Style for bufferline underflow and overflow markers |
| `ui.popup` | Documentation popups (e.g. Space + k) |
| `ui.popup.info` | Prompt for multiple key options |
| `ui.window` | Borderlines separating splits |
Expand Down
4 changes: 2 additions & 2 deletions helix-term/src/ui/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -722,8 +722,8 @@ impl EditorView {
// Add under and overflow markers.
let markers = editor
.theme
.try_get("ui.bufferline")
.unwrap_or_else(|| editor.theme.get("ui.bufferline.active"));
.try_get("ui.bufferline.marker")
.unwrap_or_else(|| editor.theme.get("ui.bufferline"));

if mark_underflow {
let _ = surface.set_string(viewport.left(), viewport.top(), " < ", markers);
Expand Down