Lucy McClane eacbbc837e java highlight support | преди 2 години | |
---|---|---|
discount | преди 2 години | |
libhighlight | преди 2 години | |
litehtml | преди 2 години | |
md-cheatsheet | преди 2 години | |
src | преди 2 години | |
stb | преди 2 години | |
themes | преди 2 години | |
xxd | преди 2 години | |
LICENSE | преди 2 години | |
Makefile.am | преди 2 години | |
README.md | преди 2 години | |
bootstrap | преди 2 години | |
configure.ac | преди 2 години |
A suckless markdown viewer.
LiteMDview is a lightweight, extremely fast markdown
viewer with lots of useful
features. One of them is ability to use your prefered text editor to edit markdown files, every time you save the file, litemdview
reloads those changes (I call it live-reload). It has a convinient navigation through local directories, has support for a basic "git-like" folders hierarchy as well as vimwiki
projects.
gecko(servo)-blink
enginesmarkdown
css themesvimwiki
supportIt is a full featured offline browser for a markdown
websites and some basic html.
Usage: litemdview file.md -p print html into stdout and exit -t of theme to use -s load external css -a print links into stdout -h show this information -v version
For instance, if I want to convert a single file into index.html
using second theme, I just do:
litemdview -t 2 -p REAMDE.md > index.html
There is -s style.css
option which makes litemdview
use the stylesheet by default.
If you want to make a permanent changes, you should copy your custom stylesheet into $HOME/.litemdview
file, and it will be loaded every time you launch litemdview
. Please note that your default theme gets number 0
and zero theme moves to 3
.
To usea a specific theme by default, you can use an alias for your sh
, for example:
~/.zshrc
alias litemdview='litemdview -t 2'
Vifm settings:
~/.vifmrc
" Markdown filetype *.md \ {View in litemdview} \ litemdview %f, \ {View in vim} \ vim %f
Key | Action |
---|---|
q | Quit |
? | Markdown cheatsheet |
o | Open address bar |
Esc | Close address bar |
Key | Action |
---|---|
h | Go back in history |
l | Go forward in history |
j,ctrl+n | Scroll down |
k,ctrl+p | Scroll up |
ctrl+f | Page down |
ctrl+b | Page up |
g | Home |
G | End |
+ | Zoom text in |
- | Zoom text out |
= | Reset zoom |
0 | Default theme |
1 | Light theme |
2 | Dark theme |
The navigation through multiple markdown
pages using links - involves
mouse. The click on mouse button2 gets you back in web history and
ctrl + mouse wheel helps to change font size for the page.
In general, clicking works as usual.
To successfully build the project you need to make sure you have a working g++
environment installed and configured. The C++
version of GTK
library
must be installed as well, it mainly consists of following list of packages:
Make sure all the dependencies are installed.
The build and installation process is simple:
./bootstrap
./configure
make
make install
The litemdview
uses a number of opensource components, such as:
discount
- markdown parserlitehtml
- html renderThe litemdview
itslef is published under GPLv2 license:
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Author: g0tsu Email: g0tsu at dnmx.0rg