You are not logged in.

#1 2022-01-05 17:22:30

g0tsu
Member
From: 0x8000
Registered: 2021-12-28
Posts: 4
Website

Markdown viewer (not just another)

I've been working with markdown for many years, like anyone who share source code using a modern web platforms. It became some kind of standard for documentation writing, and cannot be ignored forever.
Those, who prefer minimalistic environments (for some reason), like me, have an extremely high standards, this is why I can't accept any of existing programs that built with, lets say  "questionable technologies". By the way it must be lightweight, freaking fast, customizable and support vimkeys ^_^

It was a long time of waiting and doubts , and finally I've deicided to make it by myself. Please welcome litemdview.

Its git repository is located here:

https://notabug.org/g0tsu/litemdview

It has no package for archlinux yet, neither for any other linux distribution. It would be nice if someone helped me with it.

To be honest it is one of those programs that I REALLY USE everyday, heh, I love this program, and hope it could be helpful for you too, it's the reason why I share it with you.

Thanks.

yochananmarqos wrote:

PKGBUILD

pkgname=litemdview
pkgver=0.0.26
pkgrel=1
pkgdesc="Suckless markdown viewer"
arch=('x86_64')
url="https://notabug.org/g0tsu/litemdview"
license=('GPL2')
depends=('gtk3' 'gtkmm3')
makedepends=('fontconfig')
source=("https://notabug.org/g0tsu/litemdview/archive/$pkgname-$pkgver.tar.gz")
sha256sums=('0aa98ed1e5769c925f10c916d69f5b11a2b7c8791813fff1d226cfedf78cb625')

build() {
  cd "$srcdir/$pkgname"
  ./bootstrap
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" install
}

Last edited by g0tsu (2022-01-05 20:56:22)

Offline

#2 2022-01-05 18:13:20

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Markdown viewer (not just another)

Sorry, but this does not build for me. I get many errors like this

main.cpp:29:1: error: narrowing conversion of '226' from 'int' to 'char' [-Wnarrowing]

also from line 34 of main.cpp and with different numbers.

Starting PKGBUILD (dependencies unchecked)

# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=litemdview
pkgver=0.0.24
pkgrel=1
pkgdesc="Suckless markdown viewer"
url="https://notabug.org/g0tsu/litemdview"
arch=('x86_64')
license=('GPL2')
depends=('glibc')
provides=('litemdview')
conflicts=('litemdview')
source=($url/archive/$pkgname-$pkgver.tar.gz)
sha256sums=('174da8f9c85deaf5fa415bb10bb75f0b401c7d239dcd3e51d2a5058ae99090c6')

build() {
  cd $pkgname
  ./bootstrap
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname
  make DESTDIR="$pkgdir" install
}

Last edited by Stefan Husmann (2022-01-05 18:14:01)

Offline

#3 2022-01-05 18:44:37

g0tsu
Member
From: 0x8000
Registered: 2021-12-28
Posts: 4
Website

Re: Markdown viewer (not just another)

Interesting, didn't know -Wnarrowing comes by default. Lets try 0.0.25 with disabled "narrowing".  Thank you for the report and for PKGBOULD. Can I suggest some small change ? May you add "strip src/litemdview" before installation please ?

Thanks.

Offline

#4 2022-01-05 18:54:44

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Markdown viewer (not just another)

g0tsu wrote:

Interesting, didn't know -Wnarrowing comes by default.

You set -Wall, which enables everything it can, so you have to disable it with -Wno-narrowing again.
You could maybe use unsigned char, though and then cast to char if necessary.

May you add "strip src/litemdview" before installation please ?

makepkg does automatically strip everything unless that is disabled in its configuration.

Last edited by progandy (2022-01-05 19:03:27)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#5 2022-01-05 19:54:52

g0tsu
Member
From: 0x8000
Registered: 2021-12-28
Posts: 4
Website

Re: Markdown viewer (not just another)

progandy wrote:

You set -Wall, which enables everything it can, so you have to disable it with -Wno-narrowing again.

You're totally right. So I did it in the 0.0.25.
Anyways -Wall is a bad idea for releases, will never use it by default, kinda emberrasing when someones gcc works better than mine smile

Thank you.

Offline

#6 2022-01-05 20:34:21

yochananmarqos
Member
Registered: 2020-02-05
Posts: 194

Re: Markdown viewer (not just another)

Improved PKGBUILD with dependencies this time. wink

pkgname=litemdview
pkgver=0.0.26
pkgrel=1
pkgdesc="Suckless markdown viewer"
arch=('x86_64')
url="https://notabug.org/g0tsu/litemdview"
license=('GPL2')
depends=('gtk3' 'gtkmm3')
makedepends=('fontconfig')
source=("https://notabug.org/g0tsu/litemdview/archive/$pkgname-$pkgver.tar.gz")
sha256sums=('0aa98ed1e5769c925f10c916d69f5b11a2b7c8791813fff1d226cfedf78cb625')

build() {
  cd "$srcdir/$pkgname"
  ./bootstrap
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR="$pkgdir" install
}

Offline

#7 2022-01-05 20:57:01

g0tsu
Member
From: 0x8000
Registered: 2021-12-28
Posts: 4
Website

Re: Markdown viewer (not just another)

Thank you !

Offline

#8 2022-01-07 12:48:08

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Markdown viewer (not just another)

It is now in AUR. Please contact me if you want to be added as contributors.

Offline

#9 2022-01-07 15:53:33

yochananmarqos
Member
Registered: 2020-02-05
Posts: 194

Re: Markdown viewer (not just another)

@Stefan: The provdies() and conflicts() are unecessary, see Package relations.

Offline

#10 2022-01-07 20:57:46

solstice
Member
Registered: 2006-10-27
Posts: 235
Website

Re: Markdown viewer (not just another)

Hi. Great work g0tsu

Anyone knows how to use litemdview as previewer of markdown file in gnome File viewer (nautilus) (or wahtever desktop I guess)? Do I need to tweak sushi config ? or something else ?

Offline

#11 2022-01-07 21:01:36

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Markdown viewer (not just another)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#12 2022-01-07 21:37:24

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: Markdown viewer (not just another)

yochananmarqos wrote:

@Stefan: The provdies() and conflicts() are unecessary, see Package relations.

Thanks, fixed.

Offline

Board footer

Powered by FluxBB