this post was submitted on 10 Feb 2024
19 points (67.3% liked)

Lemmy Shitpost

26803 readers
2850 users here now

Welcome to Lemmy Shitpost. Here you can shitpost to your hearts content.

Anything and everything goes. Memes, Jokes, Vents and Banter. Though we still have to comply with lemmy.world instance rules. So behave!


Rules:

1. Be Respectful


Refrain from using harmful language pertaining to a protected characteristic: e.g. race, gender, sexuality, disability or religion.

Refrain from being argumentative when responding or commenting to posts/replies. Personal attacks are not welcome here.

...


2. No Illegal Content


Content that violates the law. Any post/comment found to be in breach of common law will be removed and given to the authorities if required.

That means:

-No promoting violence/threats against any individuals

-No CSA content or Revenge Porn

-No sharing private/personal information (Doxxing)

...


3. No Spam


Posting the same post, no matter the intent is against the rules.

-If you have posted content, please refrain from re-posting said content within this community.

-Do not spam posts with intent to harass, annoy, bully, advertise, scam or harm this community.

-No posting Scams/Advertisements/Phishing Links/IP Grabbers

-No Bots, Bots will be banned from the community.

...


4. No Porn/ExplicitContent


-Do not post explicit content. Lemmy.World is not the instance for NSFW content.

-Do not post Gore or Shock Content.

...


5. No Enciting Harassment,Brigading, Doxxing or Witch Hunts


-Do not Brigade other Communities

-No calls to action against other communities/users within Lemmy or outside of Lemmy.

-No Witch Hunts against users/communities.

-No content that harasses members within or outside of the community.

...


6. NSFW should be behind NSFW tags.


-Content that is NSFW should be behind NSFW tags.

-Content that might be distressing should be kept behind NSFW tags.

...

If you see content that is a breach of the rules, please flag and report the comment and a moderator will take action where they can.


Also check out:

Partnered Communities:

1.Memes

2.Lemmy Review

3.Mildly Infuriating

4.Lemmy Be Wholesome

5.No Stupid Questions

6.You Should Know

7.Comedy Heaven

8.Credible Defense

9.Ten Forward

10.LinuxMemes (Linux themed memes)


Reach out to

All communities included on the sidebar are to be made in compliance with the instance rules. Striker

founded 1 year ago
MODERATORS
 

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.

top 13 comments
sorted by: hot top controversial new old
[–] [email protected] 10 points 9 months ago (1 children)

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

[–] [email protected] 1 points 9 months ago (1 children)

But I dd post an screenshot? When I was making the thread I could upload an image, and I uploaded an image of it.

[–] [email protected] 1 points 9 months ago

Okay maybe it’s kbin being weird but there is no image.

[–] [email protected] 3 points 9 months ago (1 children)

Is this a Linux thing? Read the readme and still don't get what any of it is about.

[–] [email protected] 2 points 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.

[–] [email protected] 2 points 9 months ago (1 children)

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

[–] [email protected] 1 points 9 months ago (1 children)

It does not insert a newline. It let's the terminal emulator decide.

[–] [email protected] 1 points 9 months ago (1 children)

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

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

[–] [email protected] 1 points 9 months ago

I think I need to work on sizes and line breaks more. I also need to make a border. Will see with MDP.

[–] [email protected] 1 points 9 months ago (1 children)

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.

[–] [email protected] 1 points 9 months ago

Yeah I think you're right about that one. The pagers are more/less, not nroff. I'm not sure how I can combine key in ncurses. Gotta look it up. Thanks again.

[–] [email protected] 1 points 9 months ago (1 children)

Why exactly would you want markdown from terminal?

[–] [email protected] 1 points 9 months ago

Not Markdown 'from' terminal, 'in terminal'.