[][src]Constant tp_note::config::NOTE_FILENAME_LEN_MAX

pub const NOTE_FILENAME_LEN_MAX: usize = 255
    // Additional separator.
    - COPY_COUNTER_EXTRA_SEPARATOR.len()
    // Additional copy counter.
    - COPY_COUNTER_OPENING_BRACKETS.len() - 2 - COPY_COUNTER_CLOSING_BRACKETS.len()
    // Extra spare bytes, in case the user's copy counter is longer.
    - 6; // 244usize

Maximum length of a note's filename in bytes. If a filename-template produces a longer string, it will be truncated.