tabiew 0.13.1

A lightweight TUI application to view and query tabular data files, such as CSV, TSV, and parquet.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::PathBuf;

use anyhow::anyhow;

use crate::AppResult;

pub fn theme_path() -> AppResult<PathBuf> {
    home::home_dir()
        .map(|path| path.join(".config").join("tabiew").join("theme.toml"))
        .ok_or(anyhow!("Home dir not found"))
}

pub fn config_path() -> AppResult<PathBuf> {
    home::home_dir()
        .map(|path| path.join(".config").join("tabiew").join("config.toml"))
        .ok_or(anyhow!("Home dir not found"))
}