[][src]Struct tp_note::config::Args

pub struct Args {
    pub batch: bool,
    pub config: Option<String>,
    pub debug: bool,
    pub view: bool,
    pub path: Option<PathBuf>,
    pub version: bool,

tp-note is a note-taking-tool and a template system, that consistently synchronizes the note's meta-data with its filename. tp-note collects various information about its environment and the clipboard and stores them in variables. New notes are created by filling these variables in predefined and customizable Tera-templates. In case <path> points to an existing tp-note-file, the note's meta-data is analysed and, if necessary, its filename is modified. For all other file types, tp-note creates a new note that annotates the file <path> points to. If <path> is a directory (or, when omitted the current working directory), a new note is created in that directory. After creation, tp-note launches an external editor of your choice. Although the note's structure follows pandoc-conventions, it is not tied to any specific markup language.


batch: bool

Batch made: does not launch editor or viewer

config: Option<String>

Loads alternative configuration file

debug: bool

Debug: shows templates and its variables

view: bool

Launches editor in read-only mode

path: Option<PathBuf>
as new note location or to annotate
version: bool

Prints version and exit

Trait Implementations

impl Debug for Args[src]

impl PartialEq<Args> for Args[src]

impl StructOpt for Args[src]

impl StructOptInternal for Args[src]

impl StructuralPartialEq for Args[src]

Auto Trait Implementations

impl RefUnwindSafe for Args

impl Send for Args

impl Sync for Args

impl Unpin for Args

impl UnwindSafe for Args

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,