I know this is Wendy’s goddamit. I have made a Markdown pager and I’m currently busy with my other stuff such as my compiler, but I will add more features to it soon. I did not put much time on it and there was not much of fanfare for this, although what fare could be? I spent 5 days making an application that is only useful for me, myself and moi. But if you are terminal gang like me, use will find use for it. It can be a very useful tool for authoring markdown documents. You don’t need to be a programmer to use it.

Enjoy.

  • amzd@kbin.social
    link
    fedilink
    arrow-up
    9
    ·
    9 months ago

    Would be great to have some screenshots so people know what they’re downloading

    • Chubak@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      Fire up WSL2 and type man grep. That’s a pager showing the man page for grep. The pagers used are usually more or less (it’s literally their names) but sometimes most is used. Now this does that, but to markdown. Imagine you’re viewing a formatted markdown page, but in terminal.

  • BOFH666@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    9 months ago

    How does this handle files with long lines (width) and/or long paragraphs (height)?

    Reason for asking: MDP was always complaining about files or terminal size. A properly working alternative would be great.

    Tia

      • BOFH666@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        9 months ago

        Alright, MDP just aborts and complaints about the terminal size.

        Will take a look at this, thanks for your work!

  • siipale@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    A ‘pager’ is a utility that takes a markup text (say, Roff) and displays that text, formatted, in the terminal. The first pager was nroff(1) for the aforementioned Roff, and you may still find nroff(1) on UNIX-based systems.

    Wouldn’t it be less or more (or most) that is the pager part and roff being the part that does formatting for terminal. As far as I understand roff does the runoff of the text file. It formats the text properly and inserts all the necessary escape codes for terminal. Then that can be piped to pager which shows the text page by page.

    Looks like an interesting project. Didn’t try it but looked into the source code and I think there was not really any keybindings similar to less. I suggest adding at least g, G, C-f and C-b.

    But would it be possible for this project to utilize external pager? That would make the development easier.