summaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/consts.rs
diff options
context:
space:
mode:
authorKunal Mohan <44079328+kunalmohan@users.noreply.github.com>2022-01-04 23:24:05 +0530
committerGitHub <noreply@github.com>2022-01-04 23:24:05 +0530
commite23d06b70d827bd2a4d1c674019a0321a9f67e2d (patch)
tree8418bcab3467e44797ff94dd912df8e4c2fa3f03 /zellij-utils/src/consts.rs
parent3e0ac752ccbca5d5121b85bb0a1c8a2459c01c73 (diff)
Feature: Configurable scroll buffer (#936)
* Configurable scroll buffer * Fix unit test failures * Add scroll_buffer_size description in the default config file * Fix config file
Diffstat (limited to 'zellij-utils/src/consts.rs')
-rw-r--r--zellij-utils/src/consts.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/zellij-utils/src/consts.rs b/zellij-utils/src/consts.rs
index 416153f20..494d12a20 100644
--- a/zellij-utils/src/consts.rs
+++ b/zellij-utils/src/consts.rs
@@ -5,6 +5,7 @@ use crate::shared::set_permissions;
use directories_next::ProjectDirs;
use lazy_static::lazy_static;
use nix::unistd::Uid;
+use once_cell::sync::OnceCell;
use std::path::PathBuf;
use std::{env, fs};
@@ -12,6 +13,8 @@ pub const ZELLIJ_CONFIG_FILE_ENV: &str = "ZELLIJ_CONFIG_FILE";
pub const ZELLIJ_CONFIG_DIR_ENV: &str = "ZELLIJ_CONFIG_DIR";
pub const ZELLIJ_LAYOUT_DIR_ENV: &str = "ZELLIJ_LAYOUT_DIR";
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
+pub const DEFAULT_SCROLL_BUFFER_SIZE: usize = 10_000;
+pub static SCROLL_BUFFER_SIZE: OnceCell<usize> = OnceCell::new();
pub const SYSTEM_DEFAULT_CONFIG_DIR: &str = "/etc/zellij";
pub const SYSTEM_DEFAULT_DATA_DIR_PREFIX: &str = system_default_data_dir();