My personal-knowledge-system, with deeply integrated task tracking and long term goal planning capabilities.
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: dev set up for filaments!

+9 -2
+1 -1
.config/config.kdl
··· 1 1 2 - filaments_dir "{INSERT_HERE}" 2 + filaments_dir "./ZettelKasten" 3 3 4 4 keymap { 5 5
+1
.gitignore
··· 1 1 .direnv 2 + .data 2 3 3 4 # Generated by Cargo 4 5 # will have compiled files and executables
+2
flake.nix
··· 106 106 # Set any environment variables for your dev shell 107 107 env = { 108 108 RUST_SRC_PATH = "${pkgs.rustToolchain}/lib/rustlib/src/rust/library"; 109 + FIL_CONFIG = "./.config"; 110 + FIL_DATA = "./.data"; 109 111 }; 110 112 111 113 # Add any shell logic you want executed any time the environment is activated
+2
src/config.rs
··· 56 56 impl Config { 57 57 /// generates a new config with the provided `filaments_dir` 58 58 pub fn generate(filaments_dir: &Path) -> KdlDocument { 59 + 60 + 59 61 let mut default_config: KdlDocument = DEFAULT_CONFIG 60 62 .parse() 61 63 .expect("Default config should always be a valid KDL document.");
+3 -1
src/logging.rs
··· 4 4 }; 5 5 6 6 use color_eyre::eyre::Result; 7 - use tracing::Level; 7 + use tracing::{Level, info}; 8 8 use tracing_error::ErrorLayer; 9 9 use tracing_subscriber::{EnvFilter, Layer, fmt, layer::SubscriberExt, util::SubscriberInitExt}; 10 10 ··· 23 23 /// `FILAMENTS_LOG_LEVEL` env var 24 24 pub fn init() -> Result<()> { 25 25 let directory = config::get_data_dir(); 26 + 27 + info!("{directory:#?}"); 26 28 27 29 create_dir_all(&directory)?; 28 30