Merge branch 'tree_explore'

imgbot
trivernis 2 years ago
commit 18b30200cb
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -214,6 +214,18 @@ tab = "→"
newline = "⏎" newline = "⏎"
tabpad = "·" # Tabs will look like "→···" (depending on tab width) tabpad = "·" # Tabs will look like "→···" (depending on tab width)
``` ```
<<<<<<< HEAD
### `[editor.explorer]` Section
Sets explorer side width and style.
| Key | Description | Default |
| --- | ----------- | ------- |
| `column-width` | explorer side width | 30 |
| `style` | explorer item style, tree or list | tree |
| `position` | explorer widget position, embed or overlay | overlay |
||||||| 43027d91
=======
### `[editor.indent-guides]` Section ### `[editor.indent-guides]` Section
@ -240,3 +252,4 @@ Sets explorer side width and style.
| `column-width` | explorer side width | 30 | | `column-width` | explorer side width | 30 |
| `style` | explorer item style, tree or list | tree | | `style` | explorer item style, tree or list | tree |
| `position` | explorer widget position, embed or overlay | overlay | | `position` | explorer widget position, embed or overlay | overlay |
>>>>>>> 0e04c4c93caadb704c11a72bcf626b1f10ff2d98

@ -1 +0,0 @@
../runtime/themes

@ -1 +0,0 @@
../../../src/indent.rs

@ -5,10 +5,10 @@ use crate::{
}; };
use anyhow::{bail, ensure, Result}; use anyhow::{bail, ensure, Result};
use helix_core::Position; use helix_core::Position;
use helix_view::input::{Event, KeyEvent};
use helix_view::{ use helix_view::{
editor::Action, editor::Action,
graphics::{CursorKind, Modifier, Rect}, graphics::{CursorKind, Modifier, Rect},
input::{Event, KeyEvent},
Editor, Editor,
}; };
use std::borrow::Cow; use std::borrow::Cow;

@ -8,8 +8,10 @@ use crate::{
ctrl, key, shift, ctrl, key, shift,
}; };
use helix_core::unicode::width::UnicodeWidthStr; use helix_core::unicode::width::UnicodeWidthStr;
use helix_view::input::Event; use helix_view::{
use helix_view::{graphics::Rect, input::KeyEvent}; graphics::Rect,
input::{Event, KeyEvent},
};
use tui::{buffer::Buffer as Surface, text::Spans}; use tui::{buffer::Buffer as Surface, text::Spans};
pub trait TreeItem: Sized { pub trait TreeItem: Sized {

@ -84,6 +84,12 @@ diagnostic = { modifiers = ["underlined"] }
"ui.explorer.focus" = { modifiers = ["reversed"] } "ui.explorer.focus" = { modifiers = ["reversed"] }
"ui.explorer.unfocus" = { bg = "light-gray" } "ui.explorer.unfocus" = { bg = "light-gray" }
"ui.explorer.file" = { fg = "white" }
"ui.explorer.dir" = { fg = "blue" }
"ui.explorer.exe" = { fg = "white" }
"ui.explorer.focus" = { modifiers = ["reversed"] }
"ui.explorer.unfocus" = { bg = "light-gray" }
[palette] [palette]
yellow = "#E5C07B" yellow = "#E5C07B"

@ -76,6 +76,12 @@
"ui.explorer.focus" = { modifiers = ["reversed"] } "ui.explorer.focus" = { modifiers = ["reversed"] }
"ui.explorer.unfocus" = { bg = "bg3" } "ui.explorer.unfocus" = { bg = "bg3" }
"ui.explorer.file" = { fg = "fg" }
"ui.explorer.dir" = { fg = "blue" }
"ui.explorer.exe" = { fg = "fg" }
"ui.explorer.focus" = { modifiers = ["reversed"] }
"ui.explorer.unfocus" = { bg = "bg3" }
[palette] [palette]
bg0 = "#323437" bg0 = "#323437"

Loading…
Cancel
Save