this post was submitted on 25 Aug 2024
168 points (88.9% liked)

Linux

48624 readers
1129 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

First of all. This is not another "how do I exit vim?" shitpost.

I've been using (neo)vim for about two years and I started to notice, that I,m basically unable to use non-vim editors. I do not code a lot, but I write a lot of markown. I'd like to use dedicated tools for this, but their vim emulators are so bad. So I'm now stuck with my customized neovim, devoid of any hope of abandoning this strange addiction.

Any help or advice?

you are viewing a single comment's thread
view the rest of the comments
[–] propter_hog@hexbear.net 24 points 3 months ago (2 children)
[–] theshatterstone54@feddit.uk 13 points 3 months ago* (last edited 3 months ago) (2 children)

No joke, Emacs has the ability to render in line markdown, essentially the current line is just text, while the rest of the doc is rendered as markdown titles, links, lists, etc. It's my favourite way of editing markdown but I've never found another editor that does markdown like that. Everything else has text and rendered markdown side by side as separate panes, which I personally hate.

Edit: I stand corrected. Neovim has it too: https://github.com/MeanderingProgrammer/render-markdown.nvim

[–] lord_ryvan@ttrpg.network 2 points 3 months ago (1 children)

Sounds like what Obsidian and Logseq do? Awesome!

[–] Bitrot@lemmy.sdf.org 2 points 3 months ago

Marktext is another. Pretty lightweight and more permissive license than Obsidian.

[–] rien333@lemmy.ml 2 points 3 months ago (2 children)

No joke, Emacs has the ability to render in line markdown, essentially the current line is just text, while the rest of the doc is rendered as markdown titles, links, lists, etc.

This sounds amazing. I've been using markdown-mode for ages now though, and I've never come across this feature.

How do you enable this?

[–] theshatterstone54@feddit.uk 2 points 3 months ago* (last edited 3 months ago)

I have it in my config, will link to a specific commit in case anything changes. Look for the heading called MARKDOWN and I'd recommend grabbing all 3 subsections (MARKDOWN, Markdown Headings, Markdown Concealing). The main part is the last one iirc. Link: https://gitlab.com/theshatterstone/dotfiles/-/blob/6f00007eac475946e11fa3278ffbf526400b7e10/.config/emacs/config.org

Edit: Links from the Table of Contents don't work in Gitlab, unfortunately, so you'll have to scroll to it yourself.

[–] rien333@lemmy.ml 1 points 3 months ago* (last edited 3 months ago)

Some people over at reddit seem to suggest that the functionally you speak of doesn't exist, except in the form of a proof of concept snippet over at SO.

EDIT: Said snippet would probably be sufficient, if it handled codeblocks correctly (stuff in between ```). At the moment, it handles them miserably (maybe because they are multineline elements?)

[–] Telorand@reddthat.com 5 points 3 months ago (1 children)
[–] gomp@lemmy.ml 2 points 3 months ago* (last edited 3 months ago)

LOL you made my day :) "emacs is a part time job"