-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #793 from squidowl/pane-split-direction
Control default pane split direction
- Loading branch information
Showing
6 changed files
with
61 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# `[pane]` | ||
|
||
Pane settings for Halloy. A pane contains a [buffer](../configuration//buffer.md). | ||
|
||
## `split_axis` | ||
|
||
Default axis used when splitting a pane (i.e. default orientation of the divider between panes). | ||
|
||
```toml | ||
# Type: string | ||
# Values: "horizontal", "vertical" | ||
# Default: "horizontal" | ||
|
||
[pane] | ||
split_axis = "vertical" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
use serde::Deserialize; | ||
|
||
#[derive(Debug, Clone, Deserialize, Default)] | ||
pub struct Pane { | ||
/// Default axis used when splitting a pane. | ||
#[serde(default)] | ||
pub split_axis: SplitAxis, | ||
} | ||
|
||
#[derive(Debug, Copy, Clone, Deserialize, Default)] | ||
#[serde(rename_all = "kebab-case")] | ||
pub enum SplitAxis { | ||
#[default] | ||
Horizontal, | ||
Vertical, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters