id = "mdfried" name = "mdfried" homepage = "https://github.com/benjajaja/mdfried" executables = ["mdfried"] [dotfiles] # The project's published documentation says this TOML file is automatically # created at ~/.config/mdfried/config.toml on first run. # https://docs.rs/crate/mdfried/latest paths = ["[configHome]/mdfried/config.toml"] secret = [] [commands] format = 1 label = "View markdown" description = "Open a markdown file, URL or github:owner/repo in the viewer. Graphics-protocol debugging and logging options are left out." quality = "ai-draft" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = true } [[commands.source]] id = "src" kind = "help" url = "https://github.com/benjajaja/mdfried/blob/master/src/main.rs" revision = "master 2026-10" evidence = """ The markdown source.\\nCan be a file path, a URL, a github repo in \\"github:[owner]/[repo]\\" format, or '-' or omit, for stdin. -d --"deep-fry" "Extra deep fried images." -w --"watch" "Watch markdown file, reload on changes." -s --"setup" "Force font setup (again)." --"print-config" "Write out a mostly complete config file example to stdout." --"no-cap-checks" "Do not query the terminal stdin for capabilities." Spelled on the command line (clap quotes long names in source): --watch --deep-fry --setup --print-config --no-cap-checks README: Use `--setup` to force the font-setup again; `mdfried --print-config` prints out a full example config """ [[commands.field]] id = "source" label = "Markdown source" description = "File path, URL, github:owner/repo, or - for stdin." type = "string" position = 0 sources = ["src"] [[commands.field]] id = "watch" label = "Watch and reload" type = "boolean" option = ["--watch", "-w"] sources = ["src"] [[commands.field]] id = "deep_fry" label = "Deep-fry images" type = "boolean" option = ["--deep-fry", "-d"] sources = ["src"] [[commands.field]] id = "setup" label = "Redo font setup" type = "boolean" option = ["--setup", "-s"] sources = ["src"] [[commands.field]] id = "no_cap_checks" label = "Skip capability checks" type = "boolean" option = ["--no-cap-checks"] sources = ["src"] [[commands.field]] id = "print_config" label = "Print example config" type = "boolean" option = ["--print-config"] sources = ["src"] [[commands.task]] id = "view" label = "View a file" fields = ["source", "watch"] required = ["source"] [[commands.task]] id = "config" label = "Print example config" fields = ["print_config"] required = ["print_config"] set = { print_config = [true] } [[commands.group]] id = "basic" label = "Basic" fields = ["source", "watch", "deep_fry"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["setup", "no_cap_checks", "print_config"]