-
Notifications
You must be signed in to change notification settings - Fork 77
Experimental
--- Experimental options.
---@class markview.config.experimental
---
---@field date_formats string[] List of lua patterns for detecting date in YAML.
---@field date_time_formats string[] List of lua patterns for detecting date & time in YAML.
---
---@field prefer_nvim boolean Opens text file inside Neovim.
---@field file_open_command string Command used to open files inside Neovim.
---
---@field list_empty_line_tolerance integer Maximum number of empty lines that can stay between text of a list item.
---
---@field read_chunk_size integer Number of `bytes` to check before opening a link. Used for detecting when to open files inside Neovim.
---
---@field linewise_ignore_org_indent? boolean Prevents indentation of sections from being cleared in `linewise_hybrid_mode`.A list of date string formats(used for detecting YAML properties).
date_formats = {
"^%d%d%d%d%-%d%d%-%d%d$", --- YYYY-MM-DD
"^%d%d%-%d%d%-%d%d%d%d$", --- DD-MM-YYYY, MM-DD-YYYY
"^%d%d%-%d%d%-%d%d$", --- DD-MM-YY, MM-DD-YY, YY-MM-DD
"^%d%d%d%d%/%d%d%/%d%d$", --- YYYY/MM/DD
"^%d%d%/%d%d%/%d%d%d%d$", --- DD/MM/YYYY, MM/DD/YYYY
"^%d%d%d%d%.%d%d%.%d%d$", --- YYYY.MM.DD
"^%d%d%.%d%d%.%d%d%d%d$", --- DD.MM.YYYY, MM.DD.YYYY
"^%d%d %a+ %d%d%d%d$", --- DD Month YYYY
"^%a+ %d%d %d%d%d%d$", --- Month DD, YYYY
"^%d%d%d%d %a+ %d%d$", --- YYYY Month DD
"^%a+%, %a+ %d%d%, %d%d%d%d$", --- Day, Month DD, YYYY
},A list of date & time string formats(used for detecting YAML properties).
date_formats = {
"^%a%a%a %a%a%a %d%d %d%d%:%d%d%:%d%d ... %d%d%d%d$", --- UNIX date time
"^%d%d%d%d%-%d%d%-%d%dT%d%d%:%d%d%:%d%dZ$", --- ISO 8601
},When true, opens text files inside of Neovim using experimental.file_open_command.
prefer_nvim = true
markview.nvim-experimental.prefer_nvim.mov
prefer_nvim = false
markview.nvim-experimental.no_prefer_nvim.mov
prefer_nvim = false,The command used to open new files inside Neovim. experimental.prefer_nvim must be enabled to use this.
file_open_command = "tabnew",
Number of repeating empty lines needed to terminate a list item. Any non empty lines after them will not be considered part of the list item.
list_empty_line_tolerance = 3,Number of bytes to read from a file to check if it's a text file.experimental.prefer_nvim must be enabled to use this.
read_chunk_size = 1024,Caution
Deprecated. I couldn't find use for this option and thus this was deprecated.
Prevents section indentations to be removed when using markdown.headings.org_indent.
linewise_ignore_org_indent = false