pub struct NoteConfig {
pub add_title: bool,
pub add_alias: bool,
pub extension: String,
pub default_directory: String,
pub use_date_directories: bool,
pub date_format: String,
}Expand description
Note creation and file naming configuration
Controls how new notes are created, named, and initially populated with content.
Fields§
§add_title: boolWhether to include note title in the filename
When true: “1a2 - My Note Title.md” When false: “1a2.md”
add_alias: boolWhether to add note title as an alias in frontmatter
Enables title-based search even with ID-only filenames.
extension: StringFile extension for new notes
default_directory: StringDefault directory for new notes (relative to vault root)
If empty, notes are created in the same directory as the current file.
use_date_directories: boolWhether to create notes in date-based subdirectories
date_format: StringDate format for directory names (when use_date_directories is true)
Trait Implementations§
Source§impl Clone for NoteConfig
impl Clone for NoteConfig
Source§fn clone(&self) -> NoteConfig
fn clone(&self) -> NoteConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoteConfig
impl Debug for NoteConfig
Source§impl Default for NoteConfig
impl Default for NoteConfig
Source§impl<'de> Deserialize<'de> for NoteConfig
impl<'de> Deserialize<'de> for NoteConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NoteConfig
impl RefUnwindSafe for NoteConfig
impl Send for NoteConfig
impl Sync for NoteConfig
impl Unpin for NoteConfig
impl UnsafeUnpin for NoteConfig
impl UnwindSafe for NoteConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more