-
Great tool! Could this be used to render Markdown, Mermaid, etc too? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
There are a plenty of tools out there that should provide a live preview of Markdown/Mermaid in a browser, so I don't see why not. You could use something like https://github.com/iamcco/markdown-preview.nvim more specifically, but it would require some extra setup to open a window in Kitty and then use |
Beta Was this translation helpful? Give feedback.
-
I have made some attempts to configure Kitty and Neovim for making awrit as Roughly speaking, I utilize kitten to remotely control kitty to launch awrit Initially, launch kitty listening to a specified socket using command function OpenMarkdownPreview (url)
if has_key(environ(), "KITTY_LISTEN_ON") && system("command -v awrit") != ""
"... some configuration for kitty to render better display, like `kitten ... load-config --override inactive_text_alpha=1.0`
execute "silent ! kitten @ --to " . environ()["KITTY_LISTEN_ON"] . " launch awrit " . a:url
else
execute "silent ! firefox --new-window " . a:url
endif
endfunction
let g:mkdp_browserfunc = 'OpenMarkdownPreview' The configuration above will open a window and launch awrit. Alternatively use Maybe some further configuration is needed. |
Beta Was this translation helpful? Give feedback.
There are a plenty of tools out there that should provide a live preview of Markdown/Mermaid in a browser, so I don't see why not.
You could use something like https://github.com/iamcco/markdown-preview.nvim more specifically, but it would require some extra setup to open a window in Kitty and then use
awrit
to open the preview URL